Atomikos Forum

Spring Context Shutdown-Propagator Thread, IllegalStateException

Hi,

i've configured my Jms ConnectionFactory like shown in the examples.
I am using Atomikos Essentials with Standalone TxManager, using Springs UserTransaction Examples.

Works all fine, but at spring context shutdown, i'lll see this exception:

ERROR [Atomikos:54] org.apache.activemq.broker.BrokerService: Failed to start ActiveMQ JMS Message Broker. Reason: java.lang.IllegalStateException: Shutdown in progress
java.lang.IllegalStateException: Shutdown in progress
    at java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:39)
    at java.lang.Runtime.addShutdownHook(Runtime.java:192)
    at org.apache.activemq.broker.BrokerService.addShutdownHook(BrokerService.java:1735)
    at org.apache.activemq.broker.BrokerService.start(BrokerService.java:462)
    at org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:123)
    at org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:53)
    at org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51)
    at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80)
    at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:237)
    at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:252)
    at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:224)
    at org.apache.activemq.ActiveMQXAConnectionFactory.createXAConnection(ActiveMQXAConnectionFactory.java:59)
    at com.atomikos.datasource.xa.jms.JmsTransactionalResource.refreshXAConnection(JmsTransactionalResource.java:88)
    at com.atomikos.datasource.xa.XAResourceTransaction.forceRefreshXAConnection(XAResourceTransaction.java:482)
    at com.atomikos.datasource.xa.XAResourceTransaction.testOrRefreshXAResourceFor2PC(XAResourceTransaction.java:461)
    at com.atomikos.datasource.xa.XAResourceTransaction.commit(XAResourceTransaction.java:956)
    at com.atomikos.icatch.imp.CommitMessage.send(CommitMessage.java:94)
    at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage.java:86)
    at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.java:62)
    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)


The context is in shutdown mode, but the Thread Pool still wants to do some "work".
I've configured all destroy and init method on the beans like mentioned in the wiki.

I've set

com.atomikos.icatch.force_shutdown_on_vm_exit=false

taken from the known problems:

http://www.atomikos.com/Documentation/KnownProblems#Spring_s_MessageListenerCont_AN1

Using the J2EE class does not have any effect.

So what can i do to get rid of those exceptions?
Torsten Krah Send private email
Tuesday, October 20, 2009
 
 
Hi,

Try setting forceShutdown ( false ) on your atomikos config (cf UserTransactionManager), and make sure to shutdown/close the transaction core before you close any resources / queues.

HTH
Guy Pardon Send private email
Tuesday, October 20, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics