i had similar problem to which i found solution described here
http://www.nabble.com/activemq-throws-exception-on-tomcat-stop-log4j-related.-tf3574193s2354.html#a9988187
(make sure to close open connections)

Suchitha Koneru (sukoneru) wrote:
> 
> Hello active mq users,
>                  I am using active mq  4.0 version. Should I configure
> log4j properties for active MQ .
> I did not confiure one so far ?
>  
> I have an embedded broker, which is started as a servlet listener in
> web.xml of Tomcat 5.5 
>  
> <listener>
> <listener-class>com.cpnm.common.messagng.ActiveMQBrokerListener</listener-class>
> </listener>
>  
> When I shut down tomcat, I get the following exceptions 
> here active mq is trying  to create a   logger instance , which is
> becoming null for some reason
> Please  suggest a solution for this. 
>  
>  
> Exception in thread "ActiveMQ Transport: tcp:///127.0.0.1:1517"
> java.lang.NullPointerException
>         at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
>         at org.apache.log4j.Logger.getLogger(Logger.java:103)
>         at
> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
>         at
> org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(Log4JLogger.java:239)
>         at
> org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:83)
>         at
> org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:63)
>         at
> org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:114)
>         at
> org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
>         at
> org.apache.activemq.transport.TransportLogger.onCommand(TransportLogger.java:58)
>         at
> org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
>         at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143)
>         at java.lang.Thread.run(Thread.java:595)
> Exception in thread "ActiveMQ Transport: tcp:///127.0.0.1:1516"
> java.lang.NullPointerException
>         at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
>         at org.apache.log4j.Logger.getLogger(Logger.java:103)
>         at
> org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
>         at
> org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(Log4JLogger.java:239)
>         at
> org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:83)
>         at
> org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:63)
>         at
> org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:114)
>         at
> org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122)
>         at
> org.apache.activemq.transport.TransportLogger.onCommand(TransportLogger.java:58)
>         at
> org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:87)
>         at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:143)
>         at java.lang.Thread.run(Thread.java:595)
> Exception in thread "Timer-1" java.lang.NullPointerException
>         at
> com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.isLoggable(Log4jMLog.java:252)
>         at
> com.mchange.v2.resourcepool.BasicResourcePool$CullTask.run(BasicResourcePool.java:1285)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> thank you,
> Suchitha.
>  
> 
> 

-- 
View this message in context: 
http://www.nabble.com/active-mq-exceptions-%28when-tomcat-server-is-stopped%29-tf3367534s2354.html#a9988188
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to