See Thread at:
http://www.techienuggets.com/Detail?tx=11907 Posted on behalf of a User
I'm having a similar problem... Using JBoss 4.2.1.GA and Java 1.5.0_05.
2008-01-12 18:50:34,823 WARN [com.arjuna.ats.jta.logging.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
2008-01-12 18:50:34,823 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N]
[com.arjuna.ats.arjuna.coordinator.BasicAction_50] - Prepare phase of action
-3f57f496:bde:478619a6:d1e4e received heuristic decision:
TwoPhaseOutcome.HEURISTIC_HAZARD
2008-01-12 18:50:34,823 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N]
[com.arjuna.ats.arjuna.coordinator.BasicAction_36] - BasicAction.End() - prepare phase of
action-id -3f57f496:bde:478619a6:d1e4e failed.
2008-01-12 18:50:34,838 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N]
[com.arjuna.ats.arjuna.coordinator.BasicAction_37] - Received heuristic:
TwoPhaseOutcome.HEURISTIC_HAZARD .
2008-01-12 18:50:34,838 WARN [com.arjuna.ats.arjuna.logging.arjLoggerI18N]
[com.arjuna.ats.arjuna.coordinator.BasicAction_38] - Action Aborting
2008-01-12 18:50:34,870 ERROR [org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackException in method: public abstract int
com.company.TransactionInterfaceRemote.submitDocument(org.jdom.Document) throws
com.company.TransactionException,java.rmi.RemoteException, causedBy:
javax.transaction.HeuristicMixedException
at
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commit(TransactionImple.java:250)
at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:501)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:361)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
In Response To:
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)