3 Replies Latest reply on Mar 9, 2005 6:58 AM by Shilpa T

    Strange exception using topics

    Andrea Vettori Newbie

      Hi,

      I'm using a Topic to send events from an e-commerce site to the processing back-end.

      I'm getting this error on JBoss 3.2.3/embedded tomcat 5 on java 1.4.1:

      org.jboss.mq.SpyXAException: - nested throwable: (org.jboss.mq.SpyJMSException: Cannot process a transaction; - nested throwable: (java.lang.NullPointerException))
      at org.jboss.mq.SpyXAResource.commit(SpyXAResource.java:105)
      at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:307)
      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:633)
      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:433)
      at org.jboss.mq.SpySession.run(SpySession.java:298)
      at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: org.jboss.mq.SpyJMSException: Cannot process a transaction; - nested throwable: (java.lang.NullPointerException)
      at org.jboss.mq.Connection.send(Connection.java:932)
      at org.jboss.mq.SpyXAResourceManager.commit(SpyXAResourceManager.java:127)
      at org.jboss.mq.SpyXAResource.commit(SpyXAResource.java:103)
      ... 7 more
      Caused by: java.lang.NullPointerException
      at org.jboss.mq.pm.TxManager.releaseList(TxManager.java:234)
      at org.jboss.mq.pm.TxManager.rollbackTx(TxManager.java:150)
      at org.jboss.mq.server.JMSDestinationManager.transact(JMSDestinationManager.java:451)
      at org.jboss.mq.server.JMSServerInterceptorSupport.transact(JMSServerInterceptorSupport.java:186)
      at org.jboss.mq.server.TracingInterceptor.transact(TracingInterceptor.java:438)
      at org.jboss.mq.server.JMSServerInvoker.transact(JMSServerInvoker.java:186)
      at org.jboss.mq.il.jvm.JVMServerIL.transact(JVMServerIL.java:328)
      at org.jboss.mq.Connection.send(Connection.java:928)
      ... 9 more

      The error occours between the message is sent and the first MDB subcribed to the topic is called. Also the first bean completes its onMessage method anyway (it sends an email) but other MDB subcribed to the same Topic don't receive the message. Note that I find the above stack trace two times so I think it happens in the call of the subcribed MDBs.

      Since there is no line of my code in the stack trace, I don't know where can I find the problem that's causing this.

      Anyone can suggest something ?

      Thank you

        • 1. Re: Strange exception using topics
          Andrea Vettori Newbie

          I've tested under 3.2.4RC1 and seemed to work but after a few messages now I have :

          09:52:21,354 ERROR [SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.PingMsg3414928[msgType: m_ping, msgID: -2147483637, error: null]
          org.jboss.mq.SpyJMSException: Could not pong; - nested throwable: (java.io.IOException: Client is not connected)
          at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:838)
          at org.jboss.mq.server.JMSServerInterceptorSupport.ping(JMSServerInterceptorSupport.java:309)
          at org.jboss.mq.server.TracingInterceptor.ping(TracingInterceptor.java:859)
          at org.jboss.mq.server.JMSServerInvoker.ping(JMSServerInvoker.java:309)
          at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:189)
          at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:350)
          at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
          at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
          at java.lang.Thread.run(Thread.java:536)
          Caused by: java.io.IOException: Client is not connected
          at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:220)
          at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:204)
          at org.jboss.mq.il.uil2.UILClientIL.pong(UILClientIL.java:67)
          at org.jboss.mq.server.JMSDestinationManager.ping(JMSDestinationManager.java:834)
          ... 8 more
          09:52:21,358 WARN [SocketManager] Failed to send error reply
          java.io.IOException: Client is not connected
          at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:220)
          at org.jboss.mq.il.uil2.SocketManager.access$800(SocketManager.java:32)
          at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:358)
          at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
          at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
          at java.lang.Thread.run(Thread.java:536)


          The server is not multihomed or behind NAT and it is running Linux.

          Any hint ?

          • 2. Re: Strange exception using topics
            Adrian Brock Master

            The error says the client has disconnected.
            Look for previous errors where the client disconnected.

            Regards,
            Adrian

            • 3. Re: Strange exception using topics
              Shilpa T Newbie

              Any solution to the above problem. Please share.