java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ClassCastException on DB Adapter
    via by user12180448,
  • Container Managed transactions
    via by 426437,
    • java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource. This exception is considered not retriable, likely due to a modelling mistake. This polling process will shut down, unless the fault is r elated to processing a particular row, in which case polling will continue but the row will be rejected (faulted). at oracle.tip.adapter.db.exceptions.DBResourceException.createNonRetriableException(DBResourceException.java:650) at oracle.tip.adapter.db.exceptions.DBResourceException.createEISException(DBResourceException.java:616) at oracle.tip.adapter.db.exceptions.DBResourceException.inboundReadException(DBResourceException.java:457) at oracle.tip.adapter.db.InboundWork.handleException(InboundWork.java:827) at oracle.tip.adapter.db.InboundWork.run(InboundWork.java:468) at oracle.tip.adapter.db.inbound.InboundWorkWrapper.run(InboundWorkWrapper.java:43) at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77) at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183) at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30) Caused by: java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory cannot be cast to javax.sql.DataSource at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:107) at oracle.toplink.jndi.JNDIConnector.connect(JNDIConnector.java:84) at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:153) at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connectInternal(DatasourceAccessor.java:273) at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connectInternal(DatabaseAccessor.java:230) at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:350) at oracle.toplink.internal.sessions.DatabaseSessionImpl.connect(DatabaseSessionImpl.java:230) at oracle.toplink.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:612) at oracle.tip.adapter.db.inbound.SequencingPollingStrategy.initializePollingStrategy(SequencingPollingStrategy.java:170) at oracle.tip.adapter.db.inbound.PollingStrategy.initialize(PollingStrategy.java:134) at oracle.tip.adapter.db.inbound.AbstractSequencingPollingStrategy.initialize(AbstractSequencingPollingStrategy.java:201) at oracle.tip.adapter.db.InboundWork.initPollingStrategy(InboundWork.java:384) at oracle.tip.adapter.db.InboundWork.init(InboundWork.java:298) at oracle.tip.adapter.db.InboundWork.run(InboundWork.java:464) ... 4 more
    No Bugmate found.