Atomikos Forum

wrong state: TERMINATED

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
Giancarlo Frison Send private email
Wednesday, December 22, 2010
 
 
Try increasing the timeout - the transaction has timed out already it seems.
Guy Pardon Send private email
Wednesday, December 22, 2010
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics