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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
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: [hidden email]
        ReportedBy: [hidden email]


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: [hidden email]
For additional commands, e-mail: [hidden email]