activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manohar7033 <sailwith.mano...@gmail.com>
Subject producer is getting stuck
Date Tue, 21 Jan 2014 12:06:40 GMT
Hi,

I have an issue while sending messages to ActiveMQ. I assume that, the
following statement stands true.

"producer internally receieves a receipt from the broker which  unblocks the
send() method."

I guess in my case, i am not receiving receipt from the broker, hence my
sender method could not get unblocked.

Please find below the sender thread stack trace, that got stuck.

"bonusMiddleTierQueue" daemon prio=10 tid=0x5e974800 nid=0x5a9a waiting on
condition [0x4ed9d000]
   java.lang.Thread.State: WAITING (parking)
	at sun.misc.Unsafe.park(Native Method)
	- parking to wait for  <0x9a6afc28> (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:1987)
	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:87)
	at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1282)
	at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1760)
	- locked <0x8bbccbd8> (a java.lang.Object)
	at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:231)
	at
org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:269)
	at
org.springframework.jms.connection.CachedMessageProducer.send(CachedMessageProducer.java:121)
	at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:589)
	at org.springframework.jms.core.JmsTemplate.doSend(JmsTemplate.java:569)
	at org.springframework.jms.core.JmsTemplate$4.doInJms(JmsTemplate.java:546)
	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466)
	at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:543)
	at
org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:620)
	at
org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:607)
	at
org.springframework.integration.jms.JmsSendingMessageHandler.handleMessage(JmsSendingMessageHandler.java:62)
	at
org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:103)
	at
org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:90)
	at
org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:43)
	at
org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:116)
	at
org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:94)
	at
com.partygaming.events.persistentqueue.SendContextForPGEvent.sendToEventsChannel(SendContextForPGEvent.java:44)
	at
com.partygaming.events.persistentqueue.PersistentQueueManager.sendToEventsChannel(PersistentQueueManager.java:98)
	at
com.partygaming.events.persistentqueue.SendEventToBroker.run(SendEventToBroker.java:74)
	at java.lang.Thread.run(Thread.java:619)

Can anyone please confirm and what could be the possibilities of this issue?

Regards,
Manohar



--
View this message in context: http://activemq.2283324.n4.nabble.com/producer-is-getting-stuck-tp4676567.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message