Hi,
I am having two session beans: first an EJB OmsSubscriptionDataSourceBean which is called via remote interface. The OmsSubscriptionDataSourceBean calls the inquireOrders method of the second EJB OrderManagerBean. The inquire method uses JPA to query the database and then calls OmsSubscriptionDataSourceBean.publish to put data into a JMS queue.
Mostly it works but sometimes we get surprising exceptions (full log is attached)
[#|2008-07-31T17:50:39.460+0200|SEVERE|sun-appserver9.1|javax.resourceadapter.mqjmsra.outbound.connection|_ThreadID=34;_ThreadName=p: thread-pool-1; w: 15;_RequestID=f77d2cd5-eddd-444a-8cbc-1f1e0ac32071;|prepareTransaction (XA) on JMSService:jmsdirect failed for connectionId:1736730816179668736 due to unkown JMSService server error.|#]
[#|2008-07-31T17:50:39.460+0200|WARNING|sun-appserver9.1|javax.enterprise.system.core.transaction|_ThreadID=34;_ThreadName=p: thread-pool-1; w: 15;java.lang.RuntimeException: javax.transaction.xa.XAException;prepare;_RequestID=f77d2cd5-eddd-444a-8cbc-1f1e0ac32071;|JTS5031: Exception [java.lang.RuntimeException: javax.transaction.xa.XAException] on Resource [prepare] operation.|#]
[#|2008-07-31T17:50:39.462+0200|SEVERE|sun-appserver9.1|javax.resourceadapter.mqjmsra.outbound.connection|_ThreadID=34;_ThreadName=p: thread-pool-1; w: 15;_RequestID=f77d2cd5-eddd-444a-8cbc-1f1e0ac32071;|rollbackTransaction (XA) on JMSService:jmsdirect failed for connectionId:1736730816179668736:transactionId=1736730816304525313 due to unkown JMSService server error.|#]
[#|2008-07-31T17:50:39.462+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.core.transaction|_ThreadID=34;_ThreadName=p: thread-pool-1; w: 15;org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe;rollback;_RequestID=f77d2cd5-eddd-444a-8cbc-1f1e0ac32071;|JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [rollback] operation.|#]
[#|2008-07-31T17:50:39.465+0200|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=34;_ThreadName=p: thread-pool-1; w: 15;OrderManagerBean;|EJB5018: An exception was thrown during an ejb invocation on [OrderManagerBean]|#]
[#|2008-07-31T17:50:39.465+0200|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=34;_ThreadName=p: thread-pool-1; w: 15;|
javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [rollback] operation. vmcid: 0x0 minor code: 0 completed: No
javax.transaction.SystemException: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [rollback] operation. vmcid: 0x0 minor code: 0 completed: No
at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:321)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.commit(J2EETransactionManagerImpl.java:1030)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:397)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3792)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3585)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:83)
at $Proxy78.inquireOrders(Unknown Source)
at com.macd.xConnect.ejbeans.equity.subscriptiondatasource.InquireCommandRegistry$1.inquire(InquireCommandRegistry.java:61)
at com.macd.xConnect.ejbeans.equity.subscriptiondatasource.OmsSubscriptionDataSourceBean.inquire(OmsSubscriptionDataSourceBean.java:107)
Any hints what's wrong?
Many thanks
Reiner
[Message sent by forum member 'reiner_nix' (reiner_nix)]
http://forums.java.net/jive/thread.jspa?messageID=290875