JDK-8019270 : Logger.getAnonymousLogger throws NullPointerException when executing applet
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.logging
  • Affected Version: 7u25
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: windows_7
  • Submitted: 2013-06-27
  • Updated: 2013-06-27
  • Resolved: 2013-06-27
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
1.7.0_25

ADDITIONAL OS VERSION INFORMATION :
Windows 7 Professional Service Pack 1 64 bits (Versi?n 6.1.7601)

EXTRA RELEVANT SYSTEM CONFIGURATION :
Proved in IE10.0.9200 and Firefox 15.0.1

A DESCRIPTION OF THE PROBLEM :
When running an applet FOR THE SECOND TIME IN A BROWSER SESSION, Logger.getAnonymousLogger() throws  NullPointerException.

it doesn't happen first time but second time and subsequent.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create an applet.
In the init method call Logger.getAnonymousLogger()
Run in a Browser (I think any browser would do the work)

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
applet showed and working
ACTUAL -
applet fails and stop working. It even doesn't show.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.NullPointerException
    at java.util.logging.Logger.doSetParent(Unknown Source)
    at java.util.logging.Logger.getAnonymousLogger(Unknown Source)
    at java.util.logging.Logger.getAnonymousLogger(Unknown Source)
    at prueba.PruApplet.init()
...

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Quite simple. Don't have time to do it.
---------- END SOURCE ----------
Comments
Yes - it looks like a dup of JDK-8017174.
27-06-2013

This is likely a dup of JDK-8017174
27-06-2013