JDK-6755573 : Draggable applet restart from desktop fails
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2008-10-03
  • Updated: 2011-02-16
  • Resolved: 2008-10-27
Related Reports
Duplicate :  
Relates :  
Relates :  
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 Verified the CR is not reproducible with the latest 6u12 nightly build (contains the fix to 6761053).
27-10-2008

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.
20-10-2008

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

EVALUATION close as duplicate of 6761053
20-10-2008