Atomikos Forum

Trying to understand "Cannot rollback() inside an XASession"

I am using XA transactions with Spring 2.5, Atomikos 3.3.2, Sybase 15.0, Hibernate 3.2.6, and ActiveMQ 5.1.0.  The behavior of the system seems correct except I'm seeing the error below in the tm.out and I don't fully understand why they are occurring.

Does the exception really mean the session can't rollback?  If not why use XA at all?  Does it mean I have something incorrectly configured?

-fazle

08-10-21 21:25:09,686 [QuartzScheduler_Worker-4] getCompositeTransaction()  returning instance with id tm0000100001
08-10-21 21:25:09,686 [QuartzScheduler_Worker-4] JDBC ConnectionProxy: delegating prepareStatement to connection com.sybase.jdbc3.jdbc.SybConnectionProxy@83bbb6
08-10-21 21:25:09,718 [QuartzScheduler_Worker-4] getCompositeTransaction()  returning instance with id tm0000100001
08-10-21 21:25:09,718 [QuartzScheduler_Worker-4] getCompositeTransaction()  returning instance with id tm0000100001
08-10-21 21:25:09,749 [QuartzScheduler_Worker-4] JMS: driver complains while enforcing XA mode - ignore if no later errors:
javax.jms.TransactionInProgressException: Cannot rollback() inside an XASession
    at org.apache.activemq.ActiveMQXASession.rollback(ActiveMQXASession.java:76)
    at com.atomikos.jms.DefaultJtaConnection.forceConnectionIntoXaMode(Unknown Source)
    at com.atomikos.jms.JtaQueueConnection.createQueueSession(Unknown Source)
    at com.atomikos.jms.JtaQueueConnection.createSession(Unknown Source)
    at org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:200)
    at org.springframework.jms.core.JmsTemplate.access$500(JmsTemplate.java:76)
    at org.springframework.jms.core.JmsTemplate$JmsTemplateResourceFactory.createSession(JmsTemplate.java:912)
    at org.springframework.jms.connection.ConnectionFactoryUtils.doGetTransactionalSession(ConnectionFactoryUtils.java:282)
    at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:425)
    at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:485)
    at com.cithaeron.messaging.jobs.MessageProcessor$1.doInTransactionWithoutResult(MessageProcessor.java:98)
    at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
    at com.cithaeron.messaging.jobs.MessageProcessor.execute(MessageProcessor.java:76)
    at com.cithaeron.messaging.jobs.MessageJob.execute(MessageJob.java:26)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Fazle Khan Send private email
Wednesday, October 22, 2008
 
 
Hi,

This is a patch for oracle. Like it says, ignore the error stack trace if you have no other issues.

ActiveMQ complains about the oracle patch but the rest should be OK.
Guy Pardon Send private email
Wednesday, October 22, 2008
 
 

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

Other recent topics Other recent topics