Atomikos Forum |
|
Hi all,
I cannot figure out why I encountered this terrible problem on a spring-restlet based application, encapsulated with atomikos essentials. The stack is: Caused by: java.sql.SQLException: Unable to register transaction context listener at org.apache.commons.dbcp.managed.TransactionContext.addTransactionContextListener(TransactionContext.java:119) at org.apache.commons.dbcp.managed.ManagedConnection.updateTransactionStatus(ManagedConnection.java:104) at org.apache.commons.dbcp.managed.ManagedConnection.checkOpen(ManagedConnection.java:60) at org.apache.commons.dbcp.DelegatingConnection.getMetaData(DelegatingConnection.java:343) at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:285) ... 49 more Caused by: java.lang.IllegalStateException: wrong state: TERMINATED at com.atomikos.icatch.imp.CoordinatorImp.registerSynchronization(CoordinatorImp.java:632) at com.atomikos.icatch.imp.TransactionStateHandler.registerSynchronization(TransactionStateHandler.java:121) at com.atomikos.icatch.imp.CompositeTransactionImp.registerSynchronization(CompositeTransactionImp.java:440) at com.atomikos.icatch.jta.TransactionImp.registerSynchronization(TransactionImp.java:256) at org.apache.commons.dbcp.managed.TransactionContext.addTransactionContextListener(TransactionContext.java:107) ... 53 more Could you tell me why the transaction state is TERMINATED before initializing it? Thanks a lot |