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 2003/08/05 14:21:37 UTC

DO NOT REPLY [Bug 22131] New: - setting the log level to debug throws NPE

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22131

setting the log level to debug throws NPE

           Summary: setting the log level to debug throws NPE
           Product: Commons
           Version: 1.5 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Digester
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: r1akhil@in.ibm.com


Using Log4J:
set the log4j.rootCategory=DEBUG

Use SetProperties rule 
get NPE on calling digester.parse()
at following line:
org.apache.commons.digester.SetPropertiesRule.begin(SetPrpertiesRule.java:256)

This is becuase the code within log.isDebugEnabled(){...}
uses top.getClass()... but 'top' can also be null becuase it peeked from 
digester