aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Exception during 2 Phase Commit..Urgent... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Exception during 2 Phase Commit..Urgent..." Watch "Exception during 2 Phase Commit..Urgent..." New topic
Author

Exception during 2 Phase Commit..Urgent...

Mohsin Kayal
Greenhorn

Joined: Oct 22, 2005
Posts: 23
we have the following exception while running our enterprise application.

E WTRN0078E: An attempt by the transaction manager to call start on a transactional resource has resulted in an error. The error code was XAER_RMERR. The exception stack trace follows: javax.transaction.xa.XAException: XA operation failed, see errorCode
at com.ibm.mq.MQXAResource.start(MQXAResource.java:427)
at com.ibm.ejs.jms.JMSManagedSession$JMSXAResource.start(JMSManagedSession.java:1212)
at com.ibm.ejs.j2c.XATransactionWrapper.start(XATransactionWrapper.java:1267)
at com.ibm.ws.Transaction.JTA.JTAResourceBase.start(JTAResourceBase.java:164)
at com.ibm.ws.Transaction.JTA.RegisteredResources.startRes(RegisteredResources.java:389)
at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1903)
at com.ibm.ws.Transaction.JTA.TranManagerSet.enlist(TranManagerSet.java:494)
at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:602)
at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
at com.ibm.ejs.jms.JMSManagedSession.interactionPending(JMSManagedSession.java:968)
at com.ibm.ejs.jms.JMSManagedSession.enlist(JMSManagedSession.java:811)
at com.ibm.ejs.jms.JMSSessionHandle.enlist(JMSSessionHandle.java:953)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:466)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:449)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:372)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

[1/3/06 16:10:39:142 AST] 29d91af8 XATransaction E J2CA0030E: Method enlist caught javax.transaction.SystemException: Failed to start the transaction association.
at com.ibm.ws.Transaction.JTA.TransactionImpl.enlistResource(TransactionImpl.java:1917)
at com.ibm.ws.Transaction.JTA.TranManagerSet.enlist(TranManagerSet.java:494)
at com.ibm.ejs.j2c.XATransactionWrapper.enlist(XATransactionWrapper.java:602)
at com.ibm.ejs.j2c.ConnectionEventListener.interactionPending(ConnectionEventListener.java:745)
at com.ibm.ejs.jms.JMSManagedSession.interactionPending(JMSManagedSession.java:968)
at com.ibm.ejs.jms.JMSManagedSession.enlist(JMSManagedSession.java:811)
at com.ibm.ejs.jms.JMSSessionHandle.enlist(JMSSessionHandle.java:953)
at com.ibm.ejs.jms.listener.ServerSession.onMessage(ServerSession.java:466)
at com.ibm.ejs.jms.listener.ServerSession.dispatch(ServerSession.java:449)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ejs.jms.listener.ServerSessionDispatcher.dispatch(ServerSessionDispatcher.java:37)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:91)
at com.ibm.ejs.container.MDBWrapper.onMessage(MDBWrapper.java:127)
at com.ibm.ejs.jms.listener.ServerSession.run(ServerSession.java:372)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)


We are using :

IBM Websphere Application Server 5.1
IBM Websphere MQ 5.3
Oracle 9i
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
I've seen similar things in Weblogic. In my case it turned out to be that XA transaction handling wasn't configured correctly; I was mucking around with database connection pool/datasource performance options and causing XA to get confused. I think might also see problems like this if you are doing an XA commit but one of the resources in play is only supporting a local transaction. Very fussy stuff to track down.


Reid - SCJP2 (April 2002)
 
jQuery in Action, 2nd edition
 
subject: Exception during 2 Phase Commit..Urgent...