United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6657116 NullPointerException thrown on launching applets
JDK-6657116 : NullPointerException thrown on launching applets

Details
Type:
Bug
Submit Date:
2008-01-30
Status:
Resolved
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2008-03-05
Component:
deploy
OS:
linux
Sub-Component:
plugin
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6u4
Fixed Versions:
6u10 (b13)

Related Reports
Backport:
Relates:
Relates:
Relates:

Sub Tasks

Description
OPERATING SYSTEM(S):
Linux

FULL JDK VERSION(S):
java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode)

DESCRIPTION:
Testcase launches applets from demo folder.Tested with mozilla seamonkey 1.0.3.

STEPS TO REPRODUCE:

1. Install the sdk rpm.
2. Link the plugin with the browser, cd to firefox/plugins directory and execute the below command:
	>>ln -s ~/jdk6_04/jre/plugin/i386/ns7/libjavaplugin_oji.so .
3. Enable java console 
       a) Launch the control panel by executing the command : >> ~/jdk6_04/jre/bin/ControlPanel
       b) Go to Advanced tab - > Java Console and select show console radio button.
4. Launch the applets from demo folder,in the browser

The following exception is thrown in the java console.

Exception in thread "Thread-17" java.lang.NullPointerException
	at sun.plugin.util.AnimationPanel.createTranslucentImage(AnimationPanel.java:231)
	at sun.plugin.util.AnimationPanel.createGradientShapeImage(AnimationPanel.java:243)
	at sun.plugin.util.AnimationPanel.initBackground(AnimationPanel.java:343)
	at sun.plugin.util.AnimationPanel.preloadResources(AnimationPanel.java:508)
	at sun.plugin.util.AnimationPanel.doPaint(AnimationPanel.java:564)
	at sun.plugin.util.AnimationPanel.run(AnimationPanel.java:1062)
	at java.lang.Thread.run(Thread.java:619)

The problem is intermittent.

Expected Result:
The exception should not be thrown.

Observed Result:
Intermittent problem exception is thrown in the java console.

                                    

Comments
EVALUATION

The NullPointerException exists in both old and new plugin. It is harmless and only shown in java console. 

We may want to catch the exception and only show it in console when trace is on.
                                     
2008-02-02



Hardware and Software, Engineered to Work Together