Here is some more information about my issue: I am using AMQ 5.2 and Camel 2.0. AMQ runs as a standalone application and I configure Camel and the AMQ component via the Spring applicationContext.xml.
After stopping Tomcat, I get the following exception and Tomcat hangs: > 27.08.2009 16:05:01 org.apache.coyote.http11.Http11Protocol pause > INFO: Pausing Coyote HTTP/1.1 on http-8080 > 27.08.2009 16:05:02 org.apache.catalina.core.StandardService stop > INFO: Stopping service Catalina > Exception in thread "InactivityMonitor WriteCheck" > java.lang.NullPointerException > at > org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(Log4JLogger.java:224) > at > org.apache.activemq.transport.InactivityMonitor$2.run(InactivityMonitor.java:98) > at > org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > Exception in thread "InactivityMonitor ReadCheck" > java.lang.NullPointerException > at > org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(Log4JLogger.java:224) > at > org.apache.activemq.transport.InactivityMonitor$1.run(InactivityMonitor.java:71) > at > org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > After stopping AMQ, I get more exceptions, but Tomcat shuts down: > 27.08.2009 16:05:13 org.apache.coyote.http11.Http11Protocol destroy > INFO: Stopping Coyote HTTP/1.1 on http-8080 > Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" > java.lang.NullPointerException > at > org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:286) > at > org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:243) > at > org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:189) > at java.lang.Thread.run(Thread.java:619) > Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" > Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" > Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" > Exception in thread "ActiveMQ Transport: tcp://localhost/127.0.0.1:61616" > java.lang.NullPointerException > at > org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:286) > at > org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:243) > at > org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:189) > at java.lang.Thread.run(Thread.java:619) > java.lang.NullPointerException > at > org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:286) > at > org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:243) > at > org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:189) > at java.lang.Thread.run(Thread.java:619) > java.lang.NullPointerException > at > org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:286) > at > org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:243) > at > org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:189) > at java.lang.Thread.run(Thread.java:619) > java.lang.NullPointerException > at > org.apache.activemq.transport.InactivityMonitor.stopMonitorThreads(InactivityMonitor.java:286) > at > org.apache.activemq.transport.InactivityMonitor.onException(InactivityMonitor.java:243) > at > org.apache.activemq.transport.TransportSupport.onException(TransportSupport.java:96) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:189) > at java.lang.Thread.run(Thread.java:619) > -- View this message in context: http://www.nabble.com/Garceful-shutdown-bug-in-2.0M3--tp25113519p25168710.html Sent from the Camel - Users mailing list archive at Nabble.com.
