You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/05/27 23:23:48 UTC

DO NOT REPLY [Bug 35112] New: - LogConfigurationException double wrapped

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