Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 98146 invoked from network); 8 Jul 2008 20:07:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Jul 2008 20:07:23 -0000 Received: (qmail 68164 invoked by uid 500); 8 Jul 2008 20:07:23 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 68059 invoked by uid 500); 8 Jul 2008 20:07:22 -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 68048 invoked by uid 99); 8 Jul 2008 20:07:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 13:07:22 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jul 2008 20:06:30 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KGJSd-00080P-CX for users@activemq.apache.org; Tue, 08 Jul 2008 13:06:51 -0700 Message-ID: <18347930.post@talk.nabble.com> Date: Tue, 8 Jul 2008 13:06:51 -0700 (PDT) From: gupabhi To: users@activemq.apache.org Subject: Connection.start() blocking infinitely MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: abhi.gupta@morganstanley.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm using JMS with ActiveMQ in my junit tests and sometimes it hangs inexplicabily. I have noticed that this is followed by a NullPointerExcpetion detailed here: [[http://www.nabble.com/NullPointerException--on-ActiveMQConnection.close-tt18345477.html][link] Are the two related ? Following is part of the stack trace where con.start() is being called. Any help or pointers will be appreciated. Thanks, Abhi Here is part of the stack trace where this ishappening: "bmlcTimeoutConfig-1" prio=6 tid=0x0b2f3c00 nid=0x870 waiting on condition [0x0bfcf000..0x0bfcfb94] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x02e80790> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925) at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:317) at org.apache.activemq.transport.FutureResponse.getResult(FutureResponse.java:40) at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:76) at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1172) at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1262) - locked <0x02e80868> (a org.apache.activemq.ActiveMQConnection) at org.apache.activemq.ActiveMQConnection.start(ActiveMQConnection.java:453) at m.t.i.j.JMSTransactionItemFactory.createResource(JMSTransactionItemFactory.java:123) at m.t.i.j.JMSTransactionItemFactory.createTransactionItem(JMSTransactionItemFactory.java:123) at m.t.t.handleUnboundResource(Transaction.java:234) at org.springframework.transaction.support.TransactionSynchronizationManager.getResource(TransactionSynchronizationManager.java:137) at org.springframework.jms.connection.ConnectionFactoryUtils.doGetTransactionalSession(ConnectionFactoryUtils.java:250) at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:279) -- View this message in context: http://www.nabble.com/Connection.start%28%29-blocking-infinitely-tp18347930p18347930.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.