JDK-6923172 : Renaming desktop shortcut causes application to fail to launch after two updates
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6,6u10,6u18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2010-02-04
  • Updated: 2011-02-09
  • Resolved: 2010-10-20
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 7
7 b115Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Window XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
We have a Web Start application that gets updates frequently. We have our application place a desktop shortcut for easier launching. Many of our clientele rename their desktop shortcut. This works correctly until we deploy a new version. The first time they get an update the application downloaded correctly.  The second time we sent an update the renamed desktop shortcut stops working



STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Download a Web Start application that places a desktop shortcut. Rename this shortcut. Update the Web Start application. re-launch by clicking on the shortcut. Application launches correctly. Update the Web Start application again.  re-launch by clicking on the shortcut. Application fails to launch

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The Web Start application should update the resources that changed, and launch the application successfully
ACTUAL -
A dialog titled "Application Error" with the text "Unable to launch the application. With two buttons [Ok] and [Details]


ERROR MESSAGES/STACK TRACES THAT OCCUR :
CouldNotLoadArgumentException[ Could not load file/URL specified: C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\40\39b28f28-37d1a1c7]
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
You must go into the Java Application Cache, remove the application, and download it from the webpage again.

Comments
EVALUATION will add arg to javaws to supply the url (if there is one) This way, if the cached file cannot be found, the shortcut can launch from the url.
31-08-2010