United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6755573 : Draggable applet restart from desktop fails

Details
Type:
Bug
Submit Date:
2008-10-03
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2008-10-27
Component:
deploy
OS:
linux
Sub-Component:
plugin
CPU:
x86
Priority:
P4
Resolution:
Duplicate
Affected Versions:
6u10
Fixed Versions:

Related Reports
Duplicate:
Relates:
Relates:

Sub Tasks

Description
FULL PRODUCT VERSION :
6u10 b32

ADDITIONAL OS VERSION INFORMATION :
Linux jenny 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
Using the sample draggable applet example at https://jdk6.dev.java.net/plugin2/ the desktop icon is created.

When executing the desktop icon this output is received:

java.net.MalformedURLException: no protocol: "file://///home/jamesu/.java/deployment/cache/6.0/21/49f35ad5-607a6371"
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set Firefox 3 to use libnpjp2.so from java 6u10 b32.  Drag the applet at https://jdk6.dev.java.net/plugin2/ out of the window and allow the desktop icon to be created.

Close the browser and the applet.

Double-click on the icon and note that the applet does not restart.

View the icon properties and execute the command at a command prompt to receive the MalformedURLException.


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I was expecting the applet to restart.
ACTUAL -
The applet failed to restart.

ERROR MESSAGES/STACK TRACES THAT OCCUR :

java.net.MalformedURLException: no protocol: "file://///home/jamesu/.java/deployment/cache/6.0/21/49f35ad5-607a6371"
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)
Exception in thread "main" java.lang.NullPointerException
at sun.plugin2.applet.viewer.JNLP2Viewer.run(Unknown Source)
at sun.plugin2.applet.viewer.JNLP2Viewer.main(Unknown Source)


REPRODUCIBILITY :
This bug can be reproduced always.

                                    

Comments
EVALUATION

close as duplicate of 6761053
                                     
2008-10-20
EVALUATION

This is not a duplicate of 6761053. Re-opening.
                                     
2008-10-20
EVALUATION

When ran the testcase in 6u10 b33, the reported exception was not thrown. It was fixed probably fixed by some of earlier putbacks. Instead, it threw the same exception as 6761053. 

Will test it again with a binary that contains the 6761053 fix.
                                     
2008-10-20
EVALUATION

Verified the CR is not reproducible with the latest 6u12 nightly build (contains the fix to 6761053).
                                     
2008-10-27



Hardware and Software, Engineered to Work Together