You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Jess (JIRA)" <ji...@apache.org> on 2011/09/08 02:38:08 UTC

[jira] [Commented] (AMQ-3421) Deadlock when queue fills up

    [ 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.<init>(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