-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b08
-
generic, sparc
-
solaris_8, solaris_9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2128994 | 5.0u6 | Nishant Patel | P4 | Resolved | Fixed | b03 |
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
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
- backported by
-
JDK-2128994 NPE in XYZApp.newBackBuffer
-
- Resolved
-
- duplicates
-
JDK-5068154 gets NullPointerException when loading applet
-
- Closed
-
-
JDK-5054449 example3.html of MoleculeViewer throws NullPointerException
-
- Closed
-
- relates to
-
JDK-5005196 Java2Demo throws NPE when dereferencing null returned from createImage()
-
- Closed
-