commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35112] New: - LogConfigurationException double wrapped
Date Fri, 27 May 2005 21:23:48 GMT
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: commons-dev@jakarta.apache.org
        ReportedBy: w-zwicky@cecer.army.mil


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message