Mantis - Resin
Viewing Issue Advanced Details
4327 minor always 12-14-10 14:55 02-18-11 15:04
alex  
ferg  
normal  
closed 4.0.13  
fixed  
none    
none 4.0.16  
0004327: Can't enlist transaction ActiveMQ Exception
rep on behalf of: danc (forum.caucho.com)
We are using apache-activemq-5.4.1-fuse-01-00
[00:07:37.066] {ActiveMQ Session Task} Failed to enlist resource ManagedPoolItem[ActiveMQManagedConnectionFactory-1,24,ActiveMQManagedConnection] in transaction because of exception:
                                       javax.transaction.xa.XAException
                                       javax.transaction.xa.XAException
                                        at org.apache.activemq.TransactionContext.start(TransactionContext.java:312)
                                        at org.apache.activemq.ra.LocalAndXATransaction.start(LocalAndXATransaction.java:136)
                                        at com.caucho.env.dbpool.ManagedPoolItem.start(ManagedPoolItem.java:759)
                                        at com.caucho.transaction.TransactionImpl.enlistResource(TransactionImpl.java:378)
                                        at com.caucho.transaction.UserTransactionImpl.begin(UserTransactionImpl.java:277)
                                        at com.caucho.transaction.UserTransactionProxy.begin(UserTransactionProxy.java:142)
                                        at com.caucho.ejb.util.XAManager.beginRequired(XAManager.java:162)
                                        at com.example.cvs.repository.controller.LookupMDBeanForCollectors__MessageProxy.onMessage(LookupMDBeanForCollectors__MessageProxy.java:121)
                                        at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1088)
                                        at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:127)
                                        at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:197)
                                        at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
                                        at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
                                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                                        at java.lang.Thread.run(Thread.java:619)
[00:07:37.068] {ActiveMQ Session Task} Failed to begin UserTransaction due to: javax.transaction.SystemException: Failed to enlist resource ManagedPoolItem[ActiveMQManagedConnectionFactory-1,24,ActiveMQManagedConnection] in transaction because of exception:
                                       javax.transaction.xa.XAException
                                       javax.transaction.SystemException: Failed to enlist resource ManagedPoolItem[ActiveMQManagedConnectionFactory-1,24,ActiveMQManagedConnection] in transaction because of exception:
                                       javax.transaction.xa.XAException
                                        at com.caucho.transaction.TransactionImpl.enlistResource(TransactionImpl.java:387)
                                        at com.caucho.transaction.UserTransactionImpl.begin(UserTransactionImpl.java:277)
                                        at com.caucho.transaction.UserTransactionProxy.begin(UserTransactionProxy.java:142)
                                        at com.caucho.ejb.util.XAManager.beginRequired(XAManager.java:162)
                                        at com.example.cvs.repository.controller.LookupMDBeanForCollectors__MessageProxy.onMessage(LookupMDBeanForCollectors__MessageProxy.java:121)
                                        at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1088)
                                        at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:127)
                                        at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:197)
                                        at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
                                        at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
                                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                                        at java.lang.Thread.run(Thread.java:619)
[00:07:37.069] {ActiveMQ Session Task} java.lang.IllegalStateException: Rolling back transaction from failed begin.
                                        at com.caucho.transaction.UserTransactionImpl.begin(UserTransactionImpl.java:290)
                                        at com.caucho.transaction.UserTransactionProxy.begin(UserTransactionProxy.java:142)
                                        at com.caucho.ejb.util.XAManager.beginRequired(XAManager.java:162)
                                        at com.example.cvs.repository.controller.LookupMDBeanForCollectors__MessageProxy.onMessage(LookupMDBeanForCollectors__MessageProxy.java:121)
                                        at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1088)
                                        at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:127)
                                        at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:197)
                                        at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)
                                        at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)
                                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                                        at java.lang.Thread.run(Thread.java:619)
Today 03:21 AM

Notes
(0005072)
ferg   
02-18-11 15:04   
ejb/7006