[jboss-cvs] JBossAS SVN: r60077 - branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Jan 28 00:06:59 EST 2007
Author: bstansberry at jboss.com
Date: 2007-01-28 00:06:59 -0500 (Sun, 28 Jan 2007)
New Revision: 60077
Modified:
branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/BatchReplicationClusteredSessionValve.java
Log:
[JBAS-4035] Don't mask exceptions
Modified: branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/BatchReplicationClusteredSessionValve.java
===================================================================
--- branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/BatchReplicationClusteredSessionValve.java 2007-01-28 04:54:39 UTC (rev 60076)
+++ branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/BatchReplicationClusteredSessionValve.java 2007-01-28 05:06:59 UTC (rev 60077)
@@ -113,10 +113,17 @@
}
catch (Exception exn)
{
- exn.printStackTrace();
+ 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