United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6744967 Cannot launch cached Java Web Start applications while system is offline
JDK-6744967 : Cannot launch cached Java Web Start applications while system is offline

Details
Type:
Bug
Submit Date:
2008-09-04
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-10-02
Component:
deploy
OS:
windows_xp,windows
Sub-Component:
webstart
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b33)

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.6.0_10-rc"
Java(TM) SE Runtime Environment (build 1.6.0_10-rc-b28)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

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

A DESCRIPTION OF THE PROBLEM :
I can launch my Web Start application offline from the Java Cache Viewer without any problems. It even appears to be offline - that is, it doesn't download any updates. It only does that when the application is subsequently launched online. However, if I try to launch the application from the command line using the command:

javaws -offline http://localhost/myapp.jnlp

It failed with the message shown below.

com.sun.deploy.net.FailedDownloadException: Cannot download resource.  System is offline.
	at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.isUpdateAvailable(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.getCachedFile(Unknown Source)
	at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(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.

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 is we are doing cacheEntry IP lookup/matching even if we are offline, hence we think the cache entry is not valid and cannot launch. 

It's regression from b22 I believe (from *6661811 Web Start 1.6.0_3 causes repeated download of jar files <http://monaco.sfbay.sun.com/detail.jsf?cr=6661811>)*.
                                     
2008-09-19
SUGGESTED FIX

should not do cache entry IP lookup/match if we are offline
                                     
2008-09-19
EVALUATION

also, the original report using command:

javaws -offline http://localhost/myapp.jnlp

is problemmatic.  "-offline" means java web start runs in offline mode, and we will not try to make network connection.  so it should not be used with a http url.

however, we do have bug when the computer is disconnected, and we cannot launch cached jnlp applications from the cache.  this is what this fix will cover.
                                     
2008-09-19



Hardware and Software, Engineered to Work Together