[jboss-user] [Messaging, JMS & JBossMQ] - Exception while using jmsXA connection factory

wzedan do-not-reply at jboss.com
Tue Sep 4 07:24:23 EDT 2007


Hi,

I am using JBoss 4.2.0 , with the bundled MQ server. 

The scenario is as the following:

Container Managed Transactions is used.

An MDB is listening on a secured queue , when it recieves a message it sends another message to a number of secured queues.

In the first MDB , i lookup jmsXA as the connection factory , and try a connection to it . When an exception is thrown , a exception related to 2 phase commiting is thrown.

Thanks in advance.

14:23:09,312 INFO  [Server] JBoss (MX MicroKernel) [4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)] Started in 28s:203ms
14:23:19,562 WARN  [loggerI18N] [com.arjuna.ats.internal.jta.resources.arjunacore.preparefailed] [com.arjuna.ats.internal.jta.resources.arjunacore.preparefailed] XAResourceRecord.prepare - prepare failed with exception XAException.XAER_RMERR
14:23:19,562 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_50] - Prepare phase of action a0a0a0a:a89:46dd4006:95 received heuristic decision: TwoPhaseOutcome.HEURISTIC_HAZARD
14:23:19,562 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_36] - BasicAction.End() - prepare phase of action-id a0a0a0a:a89:46dd4006:95 failed.
14:23:19,640 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_37] - Received heuristic: TwoPhaseOutcome.HEURISTIC_HAZARD .
14:23:19,640 WARN  [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.BasicAction_38] - Action Aborting
14:23:19,718 ERROR [StdServerSession] failed to commit/rollback
javax.transaction.HeuristicMixedException
	at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1264)
	at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
	at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
	at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:351)
	at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:891)
	at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
	at org.jboss.mq.SpySession.run(SpySession.java:323)
	at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
	at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
	at java.lang.Thread.run(Thread.java:595)


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080823#4080823

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080823



More information about the jboss-user mailing list