tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45603] New: StandardWrapper.getRootCause(ServletException) omitting important information
Date Fri, 08 Aug 2008 20:26:00 GMT

           Summary: StandardWrapper.getRootCause(ServletException) omitting
                    important information
           Product: Tomcat 6
           Version: 6.0.16
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Servlet & JSP API

StandardWrapper.getRootCause(ServletException) skips up to 20 exceptions even
if they define getCause(), and in the process omits plenty of information
important for debugging.

For example, I have a servlet that takes an XML document an input. If an
exception is thrown, it wraps it in a second exception which contains a copy of
the request XML document (helping me to reproduce the problem). Unfortunately
StandardWrapper.getRootCause(ServletException) skips the outer exception and
instead only shows me the bottom-most exception. This tells me where the
problem occurred but not what input triggered it...

Please consider modifying StandardWrapper.getRootCause(ServletException) to
return the first exception to return a non-null getCause(), essentially
removing the "loops" variable from the algorithm.

Please consider copying the Servlet API 2.5 reference implementation in
Glassfish that maps "rootCause" into "cause" in ServletException. This approach
leads to fewer problems than the various workarounds that have been implemented
over the years.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message