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

NPE in XYZApp.newBackBuffer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • deploy
    • b08
    • generic, sparc
    • solaris_8, solaris_9

        Run demo applet MolucularViewer, example3.html, on Solaris in Mozilla with jdk1.5.0
        Reload applet several time, try to reload applet while it is not yet painted. The following exceptions occur sometimes:

        java.lang.Exception: Token[NOTHING], line 1
        at XYZChemModel.<init>(XYZApp.java:140)
        at XYZApp.run(XYZApp.java:331)
        at java.lang.Thread.run(Thread.java:595)

        java.lang.NullPointerException
        at XYZApp.newBackBuffer(XYZApp.java:300)
        at XYZApp.init(XYZApp.java:316)
        at sun.applet.AppletPanel.run(AppletPanel.java:373)
        at java.lang.Thread.run(Thread.java:595)

        java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at java.security.AccessController.checkPermission(AccessController.java:427)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
        at sun.applet.AppletSecurity.checkAccess(AppletSecurity.java:138)
        at java.lang.Thread.checkAccess(Thread.java:1209)
        at java.lang.Thread.setPriority(Thread.java:956)
        at XYZApp.run(XYZApp.java:329)
        at java.lang.Thread.run(Thread.java:595)

        NPE happens because an Image, returned from createImage, is null. This happens becaue peer at this time is null. This seems weird - in init applet should always have peer.
        ###@###.### 2004-06-11

              mafishersunw Margarita Fisher (Inactive)
              domsunw Dom Dom (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: