[jboss-dev-forums] [JBoss Messaging Development] - Failed to invoke

wangdu gyalpo do-not-reply at jboss.com
Fri Oct 15 11:28:49 EDT 2010


wangdu gyalpo [http://community.jboss.org/people/wgyalpo] created the discussion

"Failed to invoke"

To view the discussion, visit: http://community.jboss.org/message/566742#566742

--------------------------------------------------------------
Hi there,

I have developed a prototype of a system for handling scores of light-weight requests using jboss queue and mdb consumer. The mdb processes the messages and is the place where the reply is created and sent to another queue from which a standalone jboss messaging consumer (this is also the same where the requests are generated) recieves and hands it further to the client. the version i am using is JBoss 5.1.0 GA.
Everythings works fine, creating connections, sessions etc. even the messages are send and recieved correctly. However, sometimes, once in a while, in the middle of messages passing, the jboss messaging crashes with the following error log:

org.jboss.jms.exception.MessagingJMSException: Failed to invoke    at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:271)    at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:205)    at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)    at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(ClientSessionDelegate.java:499)    at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeTarget(ClientSessionDelegate$send_6145266547759487588.java)    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)    at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:661)    at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleSend_16032330.invoke(SessionAspect_z_handleSend_16032330.java)    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)    at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)    at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)    at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)    at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)    at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)    at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:269)    at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect_z_handleSend_16032330.invoke(ProducerAspect_z_handleSend_16032330.java)    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)    at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)    at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)    at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)    at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)    at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:207)    at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:145)    at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:136)    at wangdu.intern.jms.JMSRequestMessageProducer.sendMessage(JMSRequestMessageProducer.java:71)    at wangdu.intern.jms.JMSRequestMessageProducer.setJMSMessage(JMSRequestMessageProducer.java:112)    at wangdu.intern.xmlrpcserver.Calculator.add(Calculator.java:39)    at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:115)    at org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.execute(ReflectiveXmlRpcHandler.java:106)    at org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:46)    at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:86)    at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:200)    at org.apache.xmlrpc.webserver.Connection.run(Connection.java:208)    at org.apache.xmlrpc.util.ThreadPool$Poolable$1.run(ThreadPool.java:68)Caused by: java.lang.RuntimeException: java.lang.InterruptedException    at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:768)    at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:426)    at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:165)    at org.jboss.remoting.Client.invoke(Client.java:1724)    at org.jboss.remoting.Client.invoke(Client.java:629)    at org.jboss.remoting.Client.invoke(Client.java:617)    at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)    ... 38 moreCaused by: java.lang.InterruptedException    at EDU.oswego.cs.dl.util.concurrent.Semaphore.attempt(Semaphore.java:120)    at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1048)    at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:762)    ... 44 more

It looks to me that the error is due to some error in handling the threads. It would be nice if any of you could give me pointer or if you had similar problems to let me know how have you addressed it.

thanks!
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/566742#566742]

Start a new discussion in JBoss Messaging Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2043]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101015/79c80b25/attachment.html 


More information about the jboss-dev-forums mailing list