United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6603034 Regression: AppletViewer throws NPE with jdk 6u4 b03 latest nightly build
JDK-6603034 : Regression: AppletViewer throws NPE with jdk 6u4 b03 latest nightly build

Details
Type:
Bug
Submit Date:
2007-09-11
Status:
Resolved
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2007-09-12
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P1
Resolution:
Fixed
Affected Versions:
6u3
Fixed Versions:
6u4 (b03)

Related Reports

Sub Tasks

Description
Install latest jdk 6u4 b03 nightly build, run appletviewer on any demo applet and you'll see the following NPE.
This problem is applicable to all platforms.

D:\testclasses>"F:\Program Files\Java\jdk1.6.0_04\bin"\appletviewer "F:\ProgramFiles\Java\jdk1.6.0_04\demo\applets\Clock\example1.html"
Exception in thread "main" java.lang.NullPointerException
        at sun.applet.AppletPanel.init(AppletPanel.java:213)
        at sun.applet.AppletViewer.<init>(AppletViewer.java:177)
        at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.jav
a:82)
        at sun.applet.AppletViewer.parse(AppletViewer.java:1122)
        at sun.applet.AppletViewer.parse(AppletViewer.java:1056)
        at sun.applet.Main.run(Main.java:138)
        at sun.applet.Main.main(Main.java:80)

                                    

Comments
EVALUATION

This is caused by the fix for 6574554.

The problem is due to the loader is null in the AppletPanel.init.
To fix the problem, we create the loader in AppletPanel.init and in AppletPanel.createAppletThread, we create the loader only if it is null.

This problem is not applicable to running applets in a browser because the loader is created before the AppletPanel.init is called.
                                     
2007-09-11



Hardware and Software, Engineered to Work Together