4 Replies Latest reply on Jan 30, 2007 7:39 AM by erez.axis

    Connection failure - No pong received

    erez.axis

      Hi all.


      I have a cluster of 4 nodes. If my master node fails, the other nodes try to reconnect, but the following error appears in my log. I would appreciate any comments any of you may have on this issue.


      The log says:

      2007-01-29 17:04:48,910 WARN [org.jboss.mq.Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error and reconnect
      org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
      at org.jboss.mq.Connection$PingTask.run(Connection.java:1323)
      at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.io.IOException: ping timeout.
      ... 3 more

        • 1. Re: Connection failure - No pong received
          brian.stansberry

          The JMS server failed over, which is an abnormal situation. It's appropriate for code that functions as a JMS client to log a WARN or even an ERROR about this.

          The integration layer that MDB's use to connect to the JMS server deal with the situation by automatically reconnecting to the new JMS server once it has started. I believe (but am not sure) that if you obtains connections through the JMS resource adapter (i.e. java:/JmsXA) you get automatic reconnect behavior as well. If you see WARN/ERROR messages in the log for a brief period during server failover, that's normal. If they continue after the new JMS server is operating, that's a problem.

          In some earlier AS releases, the severity level of some logging messages during the failover was higher than necessary (although some WARN/ERROR logging is appropriate.) I believe those issues were fixed in 4.0.3.

          • 2. Re: Connection failure - No pong received
            erez.axis

            This message appears in the log several times, but not for a brief period. It appears again and again (and doesn't seem to stop at all...)

            It does seem that the servers work okay, as they should, but I would still like to know how to stop this message from appearing in the logs...

            • 3. Re: Connection failure - No pong received
              brian.stansberry

              If you have your own JMS clients (i.e. not MDBs), see http://wiki.jboss.org/wiki/Wiki.jsp?page=JMSConnectionExceptionListener.

              If all you have are MDBs, and the logging doesn't ever stop, there's some other issue, for which the JMS forums are a better resource. Before posting, be sure to search thoroughly in case it's already answered somewhere and if you post be sure to mention the AS version.

              • 4. Re: Connection failure - No pong received
                erez.axis

                Hi.

                Thanks, the ExceptionListener did the trick.

                Thanks a lot.