0 Replies Latest reply on Nov 13, 2006 10:55 AM by hskiran

    java.io.IOException: Client is not connected

    hskiran

      Hello members,

      I am getting the following exception during following scenarios:

      1. If the date/time on the JBOSS server machine changes (example during day light saving time changes)
      2.When network connection abrubtly disconnects and reconnects.

      I am using 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023).

      In the error message it is mentioned ""use javax.jms.Connection.setExceptionListener() to handle this error and reconnect". I wrote the ExceptionListener, but what does it mean "reconnect" ? How it can be done programatically.

      Exception as follows:

      [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Setting up the UILClientIL Connection
      org.jboss.mq.Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error and reconnect
      org.jboss.mq.SpyJMSException: Cannot ping the JMS server; - nested throwable: (java.io.IOException: Client is not connected)
      at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:66)
      at org.jboss.mq.SpyJMSException.rethrowAsJMSException(SpyJMSException.java:51)
      at org.jboss.mq.Connection.pingServer(Connection.java:887)
      at org.jboss.mq.Connection$PingTask.run(Connection.java:1327)
      at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.io.IOException: Client is not connected
      at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:238)
      at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:224)
      at org.jboss.mq.il.uil2.UILServerIL.ping(UILServerIL.java:462)
      at org.jboss.mq.Connection.pingServer(Connection.java:883)


      Thanks and Regards,
      Shahsi Kiran