0 Replies Latest reply on Jan 16, 2009 2:25 PM by Ashwin Desai

    XAException thrown intermittently with error code XAER_DUPID

    Ashwin Desai Newbie

      Hi,

      I am using single node JBoss 4.0.4 GA installation with Sonic MQ 6.x. The application sends JMS messages at a high rate using container managed transactions.

      I see these errors in the log intermittently. On debugging further, it appears that the transaction is being registered with the ResourceManager (Sonic) twice in these case which leads to the enlist() failing.

      I was wondering if anyone has seen a similar exception and fixed the problem.

      Thanks in advance.
      - Ash

      Exception:

      Jan 15 15:43:31 appsrv[13727]: Caused by: [javax.jms.JMSException]: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=TPC-E9-23.phaedrus.sandvine.com/327830, BranchQual=, localId=327830])

      Jan 15 15:43:31 appsrv[13727]: Trace:
      Jan 15 15:43:31 appsrv[13727]: com.sonicsw.sonicmq.j2ee.jmsra.impl.sonic.SonicXAConnectionAdapter.createXASession(SonicXAConnectionAdapter.java:72)

      caused by
      Jan 15 15:43:31 appsrv[13727]: WARN [org.jboss.tm.TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=TPC-E9-23.phaedrus.sandvine.com/327830, BranchQual=, localId=327830] errorCode=XAER_DUPID

      Jan 15 15:43:31 appsrv[13727]: javax.transaction.xa.XAException
      Jan 15 15:43:31 appsrv[13727]: at progress.message.jimpl.xa.XAResource.start(Unknown