Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 740 invoked from network); 13 Apr 2007 23:27:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Apr 2007 23:27:49 -0000 Received: (qmail 55801 invoked by uid 500); 13 Apr 2007 23:27:56 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 55552 invoked by uid 500); 13 Apr 2007 23:27:55 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 55543 invoked by uid 99); 13 Apr 2007 23:27:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 16:27:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2007 16:27:47 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HcVAs-0006z7-RF for users@activemq.apache.org; Fri, 13 Apr 2007 16:27:26 -0700 Message-ID: <9988187.post@talk.nabble.com> Date: Fri, 13 Apr 2007 16:27:26 -0700 (PDT) From: lgestrin To: users@activemq.apache.org Subject: Re: activemq throws exception on tomcat stop log4j related. In-Reply-To: <9987434.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: lgestrin@markettools.com References: <9987434.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Apparently, i did not release the listener appropriately. I was stopping connection insteadof closing. Once that was fixed, the problem went way. lgestrin wrote: > > Hello, > i am experiencing same problem that was described in this thread > http://www.nabble.com/active-mq-exceptions-%28when-tomcat-server-is-stopped%29-tf3367534s2354.html#a9369314 > > tomcat version 5.5.17 > activemq version 4.1.0 > > i am using activemq package to send/recieve messages in webapp - the > broker is configured as separate service. > > when tomcat stops, in ~ 1 sec there is an exception in std.out > > > INFO: Stopping Coyote HTTP/1.1 on http-80 > Apr 13, 2007 2:54:04 PM org.apache.catalina.core.AprLifecycleListener > lifecycleEvent > INFO: Failed shutdown of Apache Portable Runtime > Exception in thread "ActiveMQ Transport: > tcp://MVQAWEB3623/10.9.30.32:61616" java.lang.NullPointerException > at org.apache.log4j.LogManager.getLogger(LogManager.java:188) > at org.apache.log4j.Logger.getLogger(Logger.java:104) > at > org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:283) > at > org.apache.commons.logging.impl.Log4JLogger.isDebugEnabled(Log4JLogger.java:293) > at > org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:85) > at > org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:65) > at > org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:133) > at > org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:122) > at > org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84) > at > org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137) > at java.lang.Thread.run(Thread.java:595) > Disconnected from server > > I made sure to close all open connections/listeners on appication stop, > but it had no effect. > > I also copied log4j.properties from activemq distribution to > WEB-INF/classes but it had no effect. > > webapplication is using commons-logging that wraps log4j - i dont know if > it can have anything to do with it. > > > > -- View this message in context: http://www.nabble.com/activemq-throws-exception-on-tomcat-stop-log4j-related.-tf3574193s2354.html#a9988187 Sent from the ActiveMQ - User mailing list archive at Nabble.com.