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(
        at org.apache.commons.dbcp.managed.ManagedConnection.updateTransactionStatus(
        at org.apache.commons.dbcp.managed.ManagedConnection.checkOpen(
        at org.apache.commons.dbcp.DelegatingConnection.getMetaData(
        ... 49 more
Caused by: java.lang.IllegalStateException: wrong state: TERMINATED
        at com.atomikos.icatch.imp.CoordinatorImp.registerSynchronization(
        at com.atomikos.icatch.imp.TransactionStateHandler.registerSynchronization(
        at com.atomikos.icatch.imp.CompositeTransactionImp.registerSynchronization(
        at com.atomikos.icatch.jta.TransactionImp.registerSynchronization(
        at org.apache.commons.dbcp.managed.TransactionContext.addTransactionContextListener(
        ... 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