JDK-6657116 : NullPointerException thrown on launching applets
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u4
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2008-01-30
  • Updated: 2010-09-17
  • Resolved: 2008-03-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u10 b13Fixed 7Fixed
Related Reports
Relates :  
Relates :  
Relates :  
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.
02-02-2008