Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8019270

Logger.getAnonymousLogger throws NullPointerException when executing applet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 7u25
    • core-libs

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

            dfuchs Daniel Fuchs
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: