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

           Summary: Using Anonymous Loggers with JULI causes NPE
           Product: Tomcat 5
           Version: 5.5.9
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P4
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


This issue is not related with Tomcat 5, but with the JULI ClassLoaderLogManager
implementation in Tomcat.

Using an Anonymous Logger, we get NPE:

Exception in thread "main" java.lang.NullPointerException
        at java.util.logging.Logger.doSetParent(Logger.java:1360)
        at java.util.logging.Logger.getAnonymousLogger(Logger.java:314)
        at com.pararede.test.juli.Main.main(Main.java:11)

Sample Code:
=== START HERE ===
package com.pararede.test.juli;

import java.util.logging.*;

public class Main {
    
    public Main() {
    }
    
    public static void main(String[] args) {
        Logger.getAnonymousLogger().log(Level.INFO , "some log");
    }    
}
=== END HERE ===

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