Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EF82D895C for ; Thu, 8 Sep 2011 00:38:33 +0000 (UTC) Received: (qmail 48399 invoked by uid 500); 8 Sep 2011 00:38:33 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 48319 invoked by uid 500); 8 Sep 2011 00:38:33 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 48311 invoked by uid 99); 8 Sep 2011 00:38:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2011 00:38:32 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Sep 2011 00:38:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DE69E874BD for ; Thu, 8 Sep 2011 00:38:08 +0000 (UTC) Date: Thu, 8 Sep 2011 00:38:08 +0000 (UTC) From: "Jess (JIRA)" To: dev@activemq.apache.org Message-ID: <1731614041.590.1315442288907.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1560868324.15586.1311860109900.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (AMQ-3421) Deadlock when queue fills up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13099681#comment-13099681 ] Jess commented on AMQ-3421: --------------------------- I am seeing the same NullPointerException stacktrace from above. Threads are hanging at: at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:196) at org.apache.activemq.transport.failover.FailoverTransport.oneway(FailoverTransport.java:516) at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40) at org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60) at org.apache.activemq.ActiveMQConnection.doAsyncSendPacket(ActiveMQConnection.java:1266) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1260) at org.apache.activemq.ActiveMQSession.(ActiveMQSession.java:250) at org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:319) at sun.reflect.GeneratedMethodAccessor331.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.springframework.jms.connection.SingleConnectionFactory$SharedConnectionInvocationHandler.invoke(SingleConnectionFactory.java:550) at $Proxy77.createSession(Unknown Source) at org.springframework.jms.support.JmsAccessor.createSession(JmsAccessor.java:196) at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:457) at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:534) > Deadlock when queue fills up > ---------------------------- > > Key: AMQ-3421 > URL: https://issues.apache.org/jira/browse/AMQ-3421 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.5.0 > Environment: Tomcat 6.0.29, Spring 3.0.5, Oracle Java 6, Centos 5 > Reporter: Robert Elliot > Priority: Critical > Attachments: JStack Output.rtf, jmsMessageQueues.xml > > > We are running a queue to do asynch audit updates, configured via Spring 3.0.5. > When the queue fills up Tomcat locks up with all catalina threads waiting on an object monitor in Spring. This object monitor is held by the "ActiveMQ Connection Executor: vm://localhost#2986" thread which is itself blocked for ever awaiting the stopped CountDownLatch at TransportConnection.stop(TransportConnection.java:930). > There are no "ActiveMQ Task" threads running, which suggests that either the task created by stopAsync has completed or did not run. > A code review leaves us baffled as to how this latch cannot have counted down, but it hasn't. Could Tomcat possibly be silently discarding the thread that was meant to do the stop without throwing an exception?! It seems unlikely but (as I understand it) TaskRunnerFactory is breaking the Servlet spec by running up its own Threads. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira