JDK-6800992 : Offline Application Start does not work. Bug 6507009 again since 1.6.0_10
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2009-02-04
  • Updated: 2011-02-16
  • Resolved: 2009-12-09
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 6 JDK 7
6u18 b03Fixed 7Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
jre 1.6.0_10, 1.6.0_11_b03

ADDITIONAL OS VERSION INFORMATION :
Windows XP SP3, Windows Vista

EXTRA RELEVANT SYSTEM CONFIGURATION :
No special configuration required.

A DESCRIPTION OF THE PROBLEM :
The bug number 6507009 occurs again since JRE 1.6.0_10. Running a downloaded Webstart application offline does not work using the runtimes mentioned above.
The problem does not occur with JRE 1.6.0_07.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.) Add the the demo application 'Notepad.jar' contained in the JDK 1.6.0_07 to an arbitrary web server.
2.) Add a JNLP-file 'Notepad.jnlp' with the following content to the same directory (correct the 'codebase' to fit your webserver needs):

<jnlp spec="1.5+" codebase="http://myserver.com/javaws/" href="Notepad.jnlp">
  <information>
    <title>Notepad Demo Application</title>
    <vendor>None</vendor>
    <homepage href="null"/>
    <description>Shows that Webstart 1.6.0_11 does not work for offline start</description>
    <offline-allowed/> 
  </information>
  <resources>
    <j2se version="1.5.0_14+" />
    <jar href="Notepad.jar"/>
  </resources>
  <application-desc main-class="Notepad"/>
</jnlp> 

3.) Install JRE or JDK 1.6.0_11 on a Windows XP or Vista computer.
4.) On the command line run
    javaws http://myserver.com/javaws/Notepad.jnlp

This downloads and runs the notepad demo application.

5.) On the command line run javaws -viewer

This shows, that the application was downloaded and is present in the application cache.

5.) Pull out the notwork cable or deaktivate the LAN connection. If you like, restart the computer.
6.) On the command line run again
    javaws http://myserver.com/javaws/Notepad.jnlp

The application should run offline now, but an error is shown, that the JNLP-file cannot be downloaded.

7.) Uninstall every JDK above 1.6.0_07 (1.6.0_10 and/or 1.6.0_11)
8.) Install JDK 1.6.0_07.
9.) Repeat steps 4, 5, 6.
In step 6, the application starts offline without any problem.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Offline application does not start. Same error as in bug 6507009.
ACTUAL -
Same error as in bug 6507009.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
See bug 6507009.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
No workaround possible using the above runtimes. Everything works well using JRE 1.6.0_07.

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

Comments
EVALUATION Problem: javaws <jnlp http url> does not work offline, even if all resources are in cache. Fix: Try to look up JNLP in cache if connection to JNLP http url failed. If cached JNLP allows offline, continue to launch using cached resource. Otherwise fail.
24-09-2009