Details
Description
The exception occures in RA during rollback and causes message loss
javax.transaction.xa.XAException: The connection is already closed
at org.apache.activemq.TransactionContext.toXAException(TransactionContext.java:619)
at org.apache.activemq.TransactionContext.rollback(TransactionContext.java:420)
at org.apache.activemq.ra.LocalAndXATransaction.rollback(LocalAndXATransaction.java:129)
at oracle.j2ee.connector.transaction.XAResourceWrapper.rollback(XAResourceWrapper.java:156)
at com.evermind.server.TransactionEnlistment.rollback(TransactionEnlistment.java:76)
at com.evermind.server.ApplicationServerTransaction.rollbackResource(ApplicationServerTransaction.java:580)
at com.evermind.server.ApplicationServerTransaction.rollbackResources(ApplicationServerTransaction.java:567)
at com.evermind.server.ApplicationServerTransaction.rollback(ApplicationServerTransaction.java:544)
at com.evermind.server.ApplicationServerTransaction.rollback(ApplicationServerTransaction.java:527)
at com.evermind.server.ApplicationServerTransactionManager.rollback(ApplicationServerTransactionManager.java:439)
at com.evermind.server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:129)
at com.evermind.server.ejb.MessageDrivenHome.afterDelivery(MessageDrivenHome.java:968)
at oracle.j2ee.connector.messageinflow.MessageEndpointBaseState.afterDelivery(MessageEndpointBaseState.java:93)
at oracle.j2ee.connector.messageinflow.MessageEndpointWaitingForAfterDeliveryState.afterDelivery(MessageEndpointWaitingForAfterDeliveryState.java:30)
at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.afterDelivery(MessageEndpointImpl.java:202)
at org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.afterDelivery(MessageEndpointProxy.java:126)
at org.apache.activemq.ra.MessageEndpointProxy.afterDelivery(MessageEndpointProxy.java:65)
at org.apache.activemq.ra.ServerSessionImpl.afterDelivery(ServerSessionImpl.java:216)
at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:751)
at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:165)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.activemq.ConnectionClosedException: The connection is already closed
at org.apache.activemq.ActiveMQConnection.checkClosed(ActiveMQConnection.java:1245)
at org.apache.activemq.ActiveMQConnection.checkClosedOrFailed(ActiveMQConnection.java:1232)
at org.apache.activemq.TransactionContext.rollback(TransactionContext.java:404)
... 23 more