JDK-6808031 : Application short cut does not work
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u12
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2009-02-20
  • Updated: 2011-02-16
  • Resolved: 2009-09-01
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
Windows Vista

A DESCRIPTION OF THE PROBLEM :
When setting the max-heap-size iin the j2se element it is not possible to start the application via the shortcut (start via "jawaws <url>" works fine). This worked fine for all JRE since 1.4.2 to J6u11

We have more than 2000 clients using our WebStart application each day. Please help!

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
(1) add a max-heap-size attribute to the <j2se> or <java> element of the jnlp file e.g. <j2se version="1.5+"  max-heap-size="256m"/>
(2) start application one time via "javaws <jnlp-url>"
(3) let javaws create a shortcut (if not automaticly created)
(4) try to start application via shortcut

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
the application should start normaly
ACTUAL -
 exception is thrown, that a file could not be found


ERROR MESSAGES/STACK TRACES THAT OCCUR :

java.io.FileNotFoundException: C:\Dokumente und Einstellungen\sf\Anwendungsdaten\Sun\Java\Deployment\cache\6.0\38\4458bca6-1c53c6b8 (Das System kann die angegebene Datei nicht finden)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(Unknown Source)
	at java.io.FileInputStream.<init>(Unknown Source)
	at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
	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.

---------- BEGIN SOURCE ----------
<jnlp codebase="http://localhost:8080/amparex" href="http://localhost:8080/amparex/start.jnlp?jnlpfile=true" spec="1.0+">
    <information>
        <title>AMPAREX</title>
        <vendor>AMPAREX</vendor>
    </information>
    <resources>
        <j2se version="1.5+" initial-heap-size="40m" max-heap-size="256m"/>
        <jar href="lib/fw/fw_client.jar" version="1.5.50"/>
    </resources>
    <application-desc main-class="de.mtf.impulse.fw.client.application.DummyFrame"/>
</jnlp>
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
(1) start via shortcut is impossible, application starts only with "javaws <jnlp-url>"
or
(2) uninstall J6u12 and install an older release

Release Regression From : 6u11
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.