https://issues.apache.org/bugzilla/show_bug.cgi?id=56291

            Bug ID: 56291
           Summary: EnhancdedThrowableRender does not handle
                    java.lang.NoClassDefFoundError's
           Product: Log4j
           Version: 1.2.17
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
          Assignee: log4j-dev@logging.apache.org
          Reporter: steve.har...@immi.gov.au

Created attachment 31414
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31414&action=edit
StackTrace.

We currently run an environment with Websphere 7.0 backends ( IBM 1.6 JDK ) and
Tomcat 6 front ends ( Oracle 1.6 jdk) and we have just had a case where the
backend has thrown an exception which has bubbled up to our web servers, and
has been logged with the EnhancedThrowableRender. 

This has resulted in a java.lang.NoClassDefFoundError from the findClass method
of the EnhancedThrowableRender,  as this is an Error rather than an Exception
this has bypassed the catch Exception block of the doRenderMethod, so rather
than defaulting back to the DefaultThrowableRender it has crashed the
application. 

I would have expected that the doRenderMethod should be catching Throwable
rather than Exception, or at least the NoClassDefFoundError.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to