Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6808031
Votes 32
Synopsis Application short cut does not work
Category javawebstart:jnlp_file
Reported Against
Release Fixed
State 11-Closed, duplicate of 6826530, bug
Priority: 3-Medium
Related Bugs
Submit Date 20-FEB-2009
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 :
 customer  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.
Posted Date : 2009-02-20 06:21:21.0
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 01-APR-2009
SylvesterMeyknecht
Very important to us


Submitted On 03-APR-2009
Frank_Hill
On our 230 PC's the error occurs daily - a very nerving bug; for user and supporter


Submitted On 17-APR-2009
Very important to us as well, please fix. 


Submitted On 07-MAY-2009
James_Gifford
Again, also very important to us. Please fix!

The problem is making Java Web Start very difficult to use - the whole point behind Web Start is to make deployment of web apps possible; now our app launching mechanism breaks every time we update it...


Submitted On 21-MAY-2009
kalaroo1
Our product uses "java-vm-args" to specify the max heap instead but experiences the same failure.

<j2se version="1.6" java-vm-args="-Xmx512M -noverify"/>



PLEASE NOTE: JDK6 is formerly known as Project Mustang