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/07 04:30:01 UTC

DO NOT REPLY [Bug 34792] New: - setUpHandlers leaves handlers null pointer

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=34792>.
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=34792

           Summary: setUpHandlers leaves handlers null pointer
           Product: Commons
           Version: 1.0.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Logging
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: ms419@freezone.co.uk


These errors occur because the "handler" field is null -


     [...]
     [java] There were 3 errors:
     [java] 1)
testSerializable(org.apache.commons.logging.jdk14.CustomConfigTestCase)java.lang.NullPointerException
     [java]    at
org.apache.commons.logging.jdk14.CustomConfigTestCase.checkLogRecords
(CustomConfigTestCase.java:215)
     [java]    at
org.apache.commons.logging.jdk14.CustomConfigTestCase.testExceptionMessages
(CustomConfigTestCase.java:139)
     [java]    at
org.apache.commons.logging.jdk14.CustomConfigTestCase.testSerializable
(CustomConfigTestCase.java:186)
     [java]    at java.lang.reflect.Method.invoke0 (Method.java)
     [java]    at java.lang.reflect.Method.invoke (Method.java:255)
     [...]


The "handler" field is probably null due to an error in gnu classpath

Anyway, a ClassCastException in setUpHandlers is probably more helpful than
NullPointerExceptions in checkLogRecords -
http://www.sfu.ca/~jdbates/tmp/commons-logging/patch

Thanks for your work on these terrific tools!

Jack

-- 
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