[jboss-cvs] JBossAS SVN: r78549 - branches/Branch_4_2/cluster/src/main/org/jboss/invocation/jrmp/interfaces.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Sep 15 14:46:07 EDT 2008


Author: scottmarlownovell
Date: 2008-09-15 14:46:07 -0400 (Mon, 15 Sep 2008)
New Revision: 78549

Modified:
   branches/Branch_4_2/cluster/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java
Log:
Fix for JBAS-5943 - JRMPInvokerProxyHA should not failover if PooledInvokerProxy.invoke() throws java.rmi.ConnectException with cause of java.io.EOFException.

Modified: branches/Branch_4_2/cluster/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java
===================================================================
--- branches/Branch_4_2/cluster/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java	2008-09-15 16:55:50 UTC (rev 78548)
+++ branches/Branch_4_2/cluster/src/main/org/jboss/invocation/jrmp/interfaces/JRMPInvokerProxyHA.java	2008-09-15 18:46:07 UTC (rev 78549)
@@ -256,6 +256,12 @@
          catch (java.rmi.ConnectException e)
          {
             lastException = e;
+            if(e.getCause() != null && e.getCause() instanceof java.io.EOFException)
+            {
+               // don't failover as we may of reached the target
+               invocationHasReachedAServer (invocation);
+               throw e;
+            }
          }
          catch (java.rmi.ConnectIOException e)
          {




More information about the jboss-cvs-commits mailing list