[jboss-cvs] JBossAS SVN: r60078 - branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Jan 28 00:07:36 EST 2007


Author: bstansberry at jboss.com
Date: 2007-01-28 00:07:36 -0500 (Sun, 28 Jan 2007)
New Revision: 60078

Modified:
   branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session/BatchReplicationClusteredSessionValve.java
Log:
[JBAS-4035] Don't mask exceptions

Modified: branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session/BatchReplicationClusteredSessionValve.java
===================================================================
--- branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session/BatchReplicationClusteredSessionValve.java	2007-01-28 05:06:59 UTC (rev 60077)
+++ branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session/BatchReplicationClusteredSessionValve.java	2007-01-28 05:07:36 UTC (rev 60078)
@@ -115,8 +115,15 @@
          {
             log_.error("Caught exception rolling back transaction", exn);
          }
+         
          // We will need to alert Tomcat of this exception.
-         throw new RuntimeException("JBossCacheManager.processSessionRepl(): failed to replicate session.", e);
+         if (e instanceof IOException)
+            throw (IOException) e;
+         if (e instanceof ServletException)
+            throw (ServletException) e;
+         if (e instanceof RuntimeException)
+            throw (RuntimeException) e;
+         throw new RuntimeException(e);
       }
    }
 




More information about the jboss-cvs-commits mailing list