2 Replies Latest reply on Jun 30, 2003 8:04 PM by sankas75

    Message Acknowledgement Exception

    sankas75 Newbie

      Hi,
      We are seeing some JMS exceptions during message acknowlegement. Currently we have moved to the JBoss 3.2.1 version. This happens only when we restart our JBoss server and our MessageListeners reconnect back and try to start a connection and send a message back to the JBoss server. I am enclosing the stack trace below. I hope the JBoss gurus have an explaination for this behaviour.
      org.jboss.mq.SpyJMSException: Cannot enable the connection with the JMS server; - nested throwable: (java.io.IOExce
      ption: Client is not connected)
      at org.jboss.mq.Connection.start(Connection.java:582)
      at com.company.core.analysis.RunAnalysisListener.processAnalysis(RunAnalysisListener.java:277)
      at com.company.core.analysis.RunAnalysisListener.processMessage(RunAnalysisListener.java:196)
      at com.company.core.analysis.RunAnalysisListener.receiveMessage(RunAnalysisListener.java:135)
      at com.company.core.analysis.RunAnalysisListener.onException(RunAnalysisListener.java:85)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:726)
      at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:145)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:394)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:331)
      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:225)
      at org.jboss.mq.il.uil2.SocketManager.sendMessage(SocketManager.java:189)
      at org.jboss.mq.il.uil2.UILServerIL.setEnabled(UILServerIL.java:157)
      at org.jboss.mq.Connection.start(Connection.java:578)
      ... 9 more
      Setting analysis to failed....
      org.jboss.mq.SpyJMSException: Cannot acknowlege a message; - nested throwable: (java.io.IOException: Client is not
      connected)
      at org.jboss.mq.Connection.send(Connection.java:907)
      at org.jboss.mq.SpySession.doAcknowledge(SpySession.java:603)
      at org.jboss.mq.SpyMessage.doAcknowledge(SpyMessage.java:544)
      at org.jboss.mq.SpyMessage.acknowledge(SpyMessage.java:468)
      at com.company.core.analysis.RunAnalysisListener.reStartConnection(RunAnalysisListener.java:160)
      at com.company.core.analysis.RunAnalysisListener.processMessage(RunAnalysisListener.java:208)
      at com.company.core.analysis.RunAnalysisListener.receiveMessage(RunAnalysisListener.java:135)
      at com.company.core.analysis.RunAnalysisListener.onException(RunAnalysisListener.java:85)
      at org.jboss.mq.Connection.asynchFailure(Connection.java:726)
      at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:145)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:394)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:331)
      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:225)
      at org.jboss.mq.il.uil2.SocketManager.sendMessage(SocketManager.java:189)
      at org.jboss.mq.il.uil2.UILServerIL.acknowledge(UILServerIL.java:221)
      at org.jboss.mq.Connection.send(Connection.java:903)
      ... 12 more