[hornetq-commits] JBoss hornetq SVN: r8499 - trunk/src/main/org/hornetq/core/remoting/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Dec 2 06:56:32 EST 2009


Author: jmesnil
Date: 2009-12-02 06:56:32 -0500 (Wed, 02 Dec 2009)
New Revision: 8499

Modified:
   trunk/src/main/org/hornetq/core/remoting/impl/RemotingConnectionImpl.java
Log:
log any unexpected Throwable thrown when receiving a packet

Modified: trunk/src/main/org/hornetq/core/remoting/impl/RemotingConnectionImpl.java
===================================================================
--- trunk/src/main/org/hornetq/core/remoting/impl/RemotingConnectionImpl.java	2009-12-02 10:48:11 UTC (rev 8498)
+++ trunk/src/main/org/hornetq/core/remoting/impl/RemotingConnectionImpl.java	2009-12-02 11:56:32 UTC (rev 8499)
@@ -342,7 +342,14 @@
          {
             public void run()
             {
-               doBufferReceived(packet);
+               try
+               {
+                  doBufferReceived(packet);
+               }
+               catch (Throwable t)
+               {
+                  log.error("Unexpected error", t);
+               }
             }
          });
       }



More information about the hornetq-commits mailing list