JBoss version : 4.0.1SP1

I have a JMS Client that register to exceptionListener. But I got ping timeout 
exception even though successfully reconnect to server.

Here is part of my code:

  | private class ExceptionListenerImpl implements ExceptionListener {
  |     public void onException(JMSException ex) {
  |       currentThread = Thread.currentThread();
  |       logger.info("JMS provider failure detected: " + ex.getMessage());
  | 
  |       boolean restartInvoker = true;
  |       while (restartInvoker && running) {
  |        logger.debug("Trying to reconnect to JMS provider");
  |     
  |        try {
  |              try {
  |       Thread.sleep(reconnectInterval);
  |             } catch (InterruptedException ie) {
  |       return;
  |             }
  |                              
  |           // Reboot container
  |           stopConnection();
  |           createConnection();
  |           
  |           restartInvoker = false;
  |           logger.debug("Successfully reconnect to JMS");
  |       } catch (Exception e) {
  |           logger.error("Reconnect failed: JMS provider failure detected " + 
  e.getMessage());
  |       }
  |   }
  |   currentThread = null;
  | }
  | }
  | 

Here is the error:
org.jboss.mq.SpyJMSException: Connection Failed; - nested throwable: 
(java.io.IOException: ping time
out.)
        at org.jboss.mq.Connection.asynchFailure(Connection.java:436)
        at org.jboss.mq.Connection$PingTask.run(Connection.java:1385)
        at 
EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: ping timeout.
        at org.jboss.mq.Connection$PingTask.run(Connection.java:1377)
        ... 2 more


Refered to this page : 
http://wiki.jboss.org/wiki/Wiki.jsp?page=IGetIOExceptionPingTimeoutHowDoIFixIt 
and added log4j.category.org.jboss.mq=TRACE#org.jboss.logging.XLevel to get the 
trace.

Seems like the old connection 
(ConnectionToken:ID:8/e6705f73a40518b6c1840f7c417e267e) is still running 
although I have successfully reconnected to the server with a new connection 
(ConnectionToken:4/2fe5a18970c262e7de045654896421c7). Am I right?

Here is the trace:

TRACE: 2005-08-17 18:35:55,975 [Connection] PING 1124274955975 [EMAIL PROTECTED]
oken:4/2fe5a18970c262e7de045654896421c7 rcvstate=STARTED]
...
TRACE: 2005-08-17 18:35:55,985 [Connection] PONG serverTime=1124274955975 
[EMAIL PROTECTED]
ConnectionToken:4/2fe5a18970c262e7de045654896421c7 rcvstate=STARTED]

TRACE: 2005-08-17 18:35:09,629 [Connection] Notified of failure 
reason=Connection Failed Connection@
29232906[token=ConnectionToken:ID:8/e6705f73a40518b6c1840f7c417e267e 
rcvstate=STOPPED]
java.io.IOException: ping timeout.
        at org.jboss.mq.Connection$PingTask.run(Connection.java:1377)
        at 
EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
        at java.lang.Thread.run(Unknown Source)
WARN : 2005-08-17 18:35:09,629 [Connection] Connection failure:
org.jboss.mq.SpyJMSException: Connection Failed; - nested throwable: 
(java.io.IOException: ping time
out.)
        at org.jboss.mq.Connection.asynchFailure(Connection.java:436)
        at org.jboss.mq.Connection$PingTask.run(Connection.java:1385)
        at 
EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.java:364)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: ping timeout.
        at org.jboss.mq.Connection$PingTask.run(Connection.java:1377)
        ... 2 more


I really have no idea on how to fix this problem. Please help. Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3890353#3890353

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3890353


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to