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.