activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trym <t...@sigmat.dk>
Subject Glassfish and ActiveMQ XATransactions
Date Fri, 15 Jul 2011 05:16:58 GMT
 
I'm using

- Sun GlassFish Enterprise Server v2.1.1 ((v2.1 Patch06)(9.1_02 Patch12))
- activemq-rar-5.4.2-fuse-02-00.rar
- XATransaction for activemq-rar

I experience the exception below and I suspect that it is because activemqra
cannot get hold of the activemq connection after a XATransaction is started.
I would have expected that activemqra would roll back the transaction in
this case.

Currently the started transaction hangs in Glassfish untill its timed out.
This is especially bad when a db transaction is part of the XATransaction 
because then the db connection is unavailable.

I have no idea about what to do, so I don't get hanging transactions?

Any help or comments are welcome.

Best regards Trym

    [#|2011-07-14T15:24:50.946+0200|INFO|sunappserver2.1|
javax.enterprise.system.container.ejb.mdb |_ThreadID=26;_ThreadName=p:
mdb-threadpool; w: 6;|javax.ejb.EJBException 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 [commit one phase] 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 [commit one phase] 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:1029)
        at
com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:398)
        at
com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3826)
        at
com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3605)
        at
com.sun.ejb.containers.MessageBeanContainer.afterMessageDeliveryInternal(MessageBeanContainer.java:1226)
        at
com.sun.ejb.containers.MessageBeanContainer.afterMessageDelivery(MessageBeanContainer.java:1197)
        at
com.sun.ejb.containers.MessageBeanListenerImpl.afterMessageDelivery(MessageBeanListenerImpl.java:79)
        at
com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:139)
        at $Proxy65.afterDelivery(Unknown Source)
        at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.afterDelivery(MessageEndpointProxy.java:128)
        at
org.apache.activemq.ra.MessageEndpointProxy.afterDelivery(MessageEndpointProxy.java:69)
        at
org.apache.activemq.ra.ServerSessionImpl.afterDelivery(ServerSessionImpl.java:224)
        at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:897)
        at
org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
        at
com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:77)
        at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    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 [commit one phase]
operation.  vmcid: 0x0  minor code: 0  completed: No
        at
com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3837)
        at
com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3605)
        at
com.sun.ejb.containers.MessageBeanContainer.afterMessageDeliveryInternal(MessageBeanContainer.java:1226)
        at
com.sun.ejb.containers.MessageBeanContainer.afterMessageDelivery(MessageBeanContainer.java:1197)
        at
com.sun.ejb.containers.MessageBeanListenerImpl.afterMessageDelivery(MessageBeanListenerImpl.java:79)
        at
com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:139)
        at $Proxy65.afterDelivery(Unknown Source)
        at
org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.afterDelivery(MessageEndpointProxy.java:128)
        at
org.apache.activemq.ra.MessageEndpointProxy.afterDelivery(MessageEndpointProxy.java:69)
        at
org.apache.activemq.ra.ServerSessionImpl.afterDelivery(ServerSessionImpl.java:224)
        at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:897)
        at
org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:169)
        at
com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:77)
        at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    |#]


--
View this message in context: http://activemq.2283324.n4.nabble.com/Glassfish-and-ActiveMQ-XATransactions-tp3669217p3669217.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message