DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35112>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35112

           Summary: LogConfigurationException double wrapped
           Product: Commons
           Version: 1.0.4
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Logging
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


LogFactoryImpl.getLogConstructor() double-wraps when it throws
LogConfigurationException.  In other words, when it throws
LogConfigurationException, it wraps that exception in *another*
LogConfigurationException.  In fact, the full message is:

org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPointerException)
(Caused by org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPointerException))

Feel free to track that mess down, but this report is just for this one instance
of wrapping.

The wrapping occurs on line 397.  You can fix it either by ensuring the "throw
new" calls are outside the "catch Throwable", or you can add an extra catch:

catch (LogConfigurationException ex) { throw ex; }
catch (Throwable t) { throw new LogConfigurationException(t); }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to