You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by fm...@apache.org on 2008/01/07 16:58:49 UTC
svn commit: r609650 -
/incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
Author: fmeschbe
Date: Mon Jan 7 07:58:48 2008
New Revision: 609650
URL: http://svn.apache.org/viewvc?rev=609650&view=rev
Log:
Use getRootCause because ServletException might be properly setup for Exception chaining
Modified:
incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
Modified: incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java?rev=609650&r1=609649&r2=609650&view=diff
==============================================================================
--- incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java (original)
+++ incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspServletWrapperAdapter.java Mon Jan 7 07:58:48 2008
@@ -51,8 +51,8 @@
// rethrow as is
throw se;
} catch (ServletException se) {
- if (se.getCause() != null) {
- throw new SlingException(se.getMessage(), se.getCause());
+ if (se.getRootCause() != null) {
+ throw new SlingException(se.getMessage(), se.getRootCause());
}
throw new SlingException(se);
}