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

class load failed due to NullPointerException in CPCallbackHandler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u25
    • deploy
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_25"
      Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      Our webstart-enabled application had been open for a while. The user tried to close the application, triggering the code in our window close handler, which then threw an unexpected NullPointerException when the VM tried to load a class required by the handler.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      The issue was seen once and has not been reproduced.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The handler code should run (implicitly loading classes as necessary).
      ACTUAL -
      The handler code failed with a NullPointerException when the VM tried to load a needed class.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.lang.NullPointerException
      at com.sun.deploy.security.CPCallbackHandler.isAuthenticated(Unknown Source)
      at com.sun.deploy.security.CPCallbackHandler.access$1500(Unknown Source)
      at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at xxx.xxx.XXXFrame.close(XXXFrame.java:501)

      REPRODUCIBILITY :
      This bug can be reproduced rarely.

            van Vivi An (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: