You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/07/07 16:17:18 UTC

DO NOT REPLY [Bug 35648] New: - Using Anonymous Loggers with JULI causes NPE

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: bruno.antunes@pararede.com


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