[hornetq-commits] JBoss hornetq SVN: r11977 - trunk/hornetq-core/src/main/java/org/hornetq/core/replication.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Jan 5 09:07:03 EST 2012


Author: borges
Date: 2012-01-05 09:07:02 -0500 (Thu, 05 Jan 2012)
New Revision: 11977

Modified:
   trunk/hornetq-core/src/main/java/org/hornetq/core/replication/ReplicationEndpoint.java
Log:
Fix coding error: if executed cast would always fail.

Modified: trunk/hornetq-core/src/main/java/org/hornetq/core/replication/ReplicationEndpoint.java
===================================================================
--- trunk/hornetq-core/src/main/java/org/hornetq/core/replication/ReplicationEndpoint.java	2012-01-05 14:06:46 UTC (rev 11976)
+++ trunk/hornetq-core/src/main/java/org/hornetq/core/replication/ReplicationEndpoint.java	2012-01-05 14:07:02 UTC (rev 11977)
@@ -226,7 +226,9 @@
       catch (Exception e)
       {
          ReplicationEndpoint.log.warn(e.getMessage(), e);
-         response = new HornetQExceptionMessage((HornetQException)e);
+         response =
+                  new HornetQExceptionMessage(new HornetQException(HornetQException.INTERNAL_ERROR,
+                                                                   "unhandled error during replication", e));
       }
 
       channel.send(response);



More information about the hornetq-commits mailing list