Announcement Announcement Module
Collapse
No announcement yet.
Bitronix throwing exception on shutdown Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bitronix throwing exception on shutdown

    Hi,

    I have Bitronix and Spring managing the transactions for the db and ActiveMQ. On shutdown there are all sorts of exceptions being thrown when Spring and Bitronix try to delist resources.

    This is in a standalone context. I register the queues and connection factory with Spring etc. Everything else goes well of course, just the shutdown. Has anyone seen this before and have some solution? I have added the shutdown hook to Spring and Bitronix without any luck. Here is a small excerpt from the stack trace:

    javax.jms.JMSException: Transport disposed.
    at org.apache.activemq.util.JMSExceptionSupport.creat e(JMSExceptionSupport.java:62)
    at org.apache.activemq.ActiveMQConnection.doAsyncSend Packet(ActiveMQConnection.java:1216)
    at org.apache.activemq.ActiveMQConnection.asyncSendPa cket(ActiveMQConnection.java:1208)
    at org.apache.activemq.ActiveMQSession.asyncSendPacke t(ActiveMQSession.java:1762)
    at org.apache.activemq.ActiveMQSession.sendAck(Active MQSession.java:1918)
    at org.apache.activemq.ActiveMQMessageConsumer$3.run( ActiveMQMessageConsumer.java:631)
    at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.jav a:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: org.apache.activemq.transport.TransportDisposedIOE xception: Transport disposed.
    at org.apache.activemq.transport.vm.VMTransport.onewa y(VMTransport.java:74)
    at org.apache.activemq.transport.MutexTransport.onewa y(MutexTransport.java:40)
    at org.apache.activemq.transport.ResponseCorrelator.o neway(ResponseCorrelator.java:60)
    at org.apache.activemq.ActiveMQConnection.doAsyncSend Packet(ActiveMQConnection.java:1214)
    ... 10 more
    14:37:11,890 WARN bitronix.tm.BitronixTransaction:314 - error delisting resource: an XAResourceHolderState with uniqueName=activemq XAResource=org.apache.activemq.TransactionContext@ 13e7cb9 (started) with XID a Bitronix XID [737072696E672D62746D0000012337CF89640000036F : 737072696E672D62746D0000012337CF896400000371]
    bitronix.tm.internal.BitronixSystemException: unknown XAResource org.apache.activemq.TransactionContext@13e7cb9, it does not belong to a registered resource
    at bitronix.tm.BitronixTransaction.delistResource(Bit ronixTransaction.java:99)
    at bitronix.tm.BitronixTransaction.delistUnclosedReso urces(BitronixTransaction.java:309)
    at bitronix.tm.BitronixTransaction.commit(BitronixTra nsaction.java:157)
    at bitronix.tm.BitronixTransactionManager.commit(Bitr onixTransactionManager.java:96)
    at org.springframework.transaction.jta.JtaTransaction Manager.doCommit(JtaTransactionManager.java:1034)
    at org.springframework.transaction.support.AbstractPl atformTransactionManager.processCommit(AbstractPla tformTransactionManager.java:731)
    at org.springframework.transaction.support.AbstractPl atformTransactionManager.commit(AbstractPlatformTr ansactionManager.java:700)
    at org.springframework.jms.listener.AbstractPollingMe ssageListenerContainer.receiveAndExecute(AbstractP ollingMessageListenerContainer.java:255)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.invokeL istener(DefaultMessageListenerContainer.java:976)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.execute OngoingLoop(DefaultMessageListenerContainer.java:9 68)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.run(Def aultMessageListenerContainer.java:870)
    at java.lang.Thread.run(Thread.java:619)

    Thanks in advance

    Michael
Working...
X