13 Replies Latest reply: May 3, 2012 5:12 AM by varsha g RSS

javax.jms.JMSException: Timed out waiting for response when sending packet 71

varsha g Newbie

Hi,

      I'm using  jboss-as-7.1.2.Final-SNAPSHOT with hornetQ server version 2.2.15.Final

 

      When I loaded the 10 000 messages to jms Queue with the help of jmeter. After some  period of time server gets hang. After this I'm getting the following Warning,

 

12:53:27,183 ERROR [stderr] (http-localhost-127.0.0.1-8080-927)javax.jms.JMSException: Timed out waiting for response when sending packet 71

12:53:38,066 ERROR [stderr] (http-localhost-127.0.0.1-8080-433)     at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:302)

12:53:38,080 ERROR [stderr] (http-localhost-127.0.0.1-8080-433)     at org.hornetq.core.client.impl.ClientProducerImpl.doSend(ClientProducerImpl.java:287)

12:53:38,082 ERROR [stderr] (http-localhost-127.0.0.1-8080-433)     at org.hornetq.core.client.impl.ClientProducerImpl.send(ClientProducerImpl.java:142)

12:53:38,083 ERROR [stderr] (http-localhost-127.0.0.1-8080-433)     at org.hornetq.jms.client.HornetQMessageProducer.doSend(HornetQMessageProducer.java:451)

12:53:38,084 ERROR [stderr] (http-localhost-127.0.0.1-8080-433)     at org.hornetq.jms.client.HornetQMessageProducer.send(HornetQMessageProducer.java:199)

12:53:38,105 ERROR [stderr] (http-localhost-127.0.0.1-8080-433)     at com.ecomm.ultimatesms.messaging.feedback.feedback.processRequest(feedback.java:132)

12:53:38,252 ERROR [stderr] (http-localhost-127.0.0.1-8080-433)     at com.ecomm.ultimatesms.messaging.feedback.feedback.doGet(feedback.java:35)

12:53:31,627 WARN  [com.arjuna.ats.jta] (Thread-19 (HornetQ-client-global-threads-19745255)) ARJUNA016039: onePhaseCommit on < formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0:ffff0a0000a0:6b75d696:4f9e3b6d:3386, node_name=1, branch_uid=0:ffff0a0000a0:6b75d696:4f9e3b6d:3387, subordinatenodename=null, eis_name=unknown eis name > (DelegatingSession [session=ClientSessionImpl [name=eb1ab864-9293-11e1-a78e-39cba28f0b89, username=null, closed=false, factory = ClientSessionFactoryImpl [serverLocator=ServerLocatorImpl [initialConnectors=[org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0], discoveryGroupConfiguration=null], connectorConfig=org-hornetq-core-remoting-impl-invm-InVMConnectorFactory?server-id=0, backupConfig=null], metaData=(resource-adapter=inbound,jms-session=,)]@74eb8a]) failed with exception XAException.XA_RETRY: javax.transaction.xa.XAException

    at org.hornetq.core.client.impl.ClientSessionImpl.commit(ClientSessionImpl.java:1337)

    at org.hornetq.core.client.impl.DelegatingSession.commit(DelegatingSession.java:163)

    at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelOnePhaseCommit(XAResourceRecord.java:667)

    at com.arjuna.ats.arjuna.coordinator.BasicAction.onePhaseCommit(BasicAction.java:2285)

    at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1468)

    at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:98)

    at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:164)

    at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)

    at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:117)

    at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

    at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.afterDelivery(MessageEndpointInvocationHandler.java:72) [jboss-as-ejb3-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]

    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) [:1.6.0_26]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_26]

 

 

     I've attached my producer as named feedback.java , consumer as named MessageDrivenBean.java and standalone-full.xml configuration file.

 

What is the cause of the above exception ?

Is this exception due to the server gets hang?

why server gets hang after some period of time ?

How to resolve this?

 

 

Steps to test the war.

 

1) Download the Test.war file from attachment.

 

2) Deploy the war on jboss7.1.2.

 

3) unzip the jmeter.

 

4) Download the test.jmx file from attachment.

 

5) To excute below command, firstly select the bin directory of jmeter

 

     ./jmeter -n -t <path for jmx file>

 

Example:->

 

linux-t0cw:/home/jmeter/apache-jmeter-2.6/bin # ./jmeter -n -t <path for jmx file>

 

 

Thanks in Advance.