United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6800992 Offline Application Start does not work. Bug 6507009 again since 1.6.0_10
JDK-6800992 : Offline Application Start does not work. Bug 6507009 again since 1.6.0_10

Details
Type:
Bug
Submit Date:
2009-02-04
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2009-12-09
Component:
deploy
OS:
windows_xp
Sub-Component:
webstart
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
6u18 (b03)

Related Reports
Backport:
Duplicate:
Relates:
Relates:

Sub Tasks

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.
                                     
2009-09-24



Hardware and Software, Engineered to Work Together