换成atomikos后报java.lang.AbstractMethodError: oracle.jdbc.driver.LogicalConnection.createClob()Ljava/sq

c3p0数据源换成atomikos管理事务后,启动报异常信息。但不影响程序启动。

[RMI TCP Connection(2)-127.0.0.1 2016-01-07 15:07:23.479][WARN ]Slf4jLogger.java(24)  Error delegating 'createClob' call
java.lang.AbstractMethodError: oracle.jdbc.driver.LogicalConnection.createClob()Ljava/sql/Clob;
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at com.atomikos.jdbc.AtomikosConnectionProxy.invoke(AtomikosConnectionProxy.java:161)
 at com.sun.proxy.$Proxy14.createClob(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 
[RMI TCP Connection(2)-127.0.0.1 2016-01-07 15:07:23.870][INFO ]Slf4jLogger.java(16)  Logfile closed: D:\program\tomcat\tomcat-7.0.27\bin\.\tmlog7.log
[RMI TCP Connection(2)-127.0.0.1 2016-01-07 15:07:23.940][INFO ]Slf4jLogger.java(16)  sys: refreshed XAResource
[RMI TCP Connection(2)-127.0.0.1 2016-01-07 15: Error in recovery
javax.transaction.xa.XAException
 at oracle.jdbc.xa.OracleXAResource.recover(OracleX07:23.956][WARN ]Slf4jLogger.java(24) AResource.java:526)
 at com.atomikos.datasource.xa.XATransactionalResource.recover(XATransactionalResource.java:579)
 at com.atomikos.datasource.xa.XATransactionalResource.endRecovery(XATransactionalResource.java:669)
 at com.atomikos.icatch.imp.TransactionServiceImp.recover(TransactionServiceImp.java:604)
 at com.atomikos.datasource.xa.XATransactionalResource.setRecoveryService(XATransactionalResource.java:495)
 at com.atomikos.icatch.system.Configuration.installRecoveryService(Configuration.java:252)
 at com.atomikos.icatch.imp.TransactionServiceImp.prepareConfigurationForPresumedAbortIfNecessary(TransactionServiceImp.java:627)
 at com.atomikos.icatch.imp.TransactionServiceImp.recover(TransactionServiceImp.java:562)
 at com.atomikos.icatch.imp.TransactionServiceImp.init(TransactionServiceImp.java:711)
 
[RMI TCP Connection(2)-127.0.0.1 2016-01-07 15:08:51.371][WARN ]Slf4jLogger.java(24)  atomikos connection pool 'bpm': error creating proxy of connection an AtomikosXAPooledConnection with a SessionHandleState with 0 context(s)
com.atomikos.datasource.pool.CreateConnectionException: an AtomikosXAPooledConnection with a SessionHandleState with 0 context(s): connection is erroneous
 at com.atomikos.jdbc.AtomikosXAPooledConnection.testUnderlyingConnection(AtomikosXAPooledConnection.java:116)
 at com.atomikos.datasource.pool.AbstractXPooledConnection.createConnectionProxy(AbstractXPooledConnection.java:70)
 at com.atomikos.datasource.pool.ConnectionPool.borrowConnection(ConnectionPool.java:164)
 at com.atomikos.jdbc.AbstractDataSourceBean.getConnection(AbstractDataSourceBean.java:323)
 at com.atomikos.jdbc.AbstractDataSourceBean.getConnection(AbstractDataSourceBean.java:375)

原因:oracle的jdbc包版本问题

ojdbc14.jar换成oracle 11g的ojdbc6.jar就ok了。

你可能感兴趣的:(ORACLE)