activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suchitha Koneru \(sukoneru\)" <sukon...@cisco.com>
Subject active mq exceptions (when tomcat server is stopped)
Date Thu, 08 Mar 2007 06:30:53 GMT
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.
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message