JDK-6744967 : Cannot launch cached Java Web Start applications while system is offline
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: deploy
  • Sub-Component: webstart
  • Priority: P2
  • Affected Version: 6u10
  • OS: windows,windows_xp
  • CPU: x86
  • Submit Date: 2008-09-04
  • Updated Date: 2010-09-08
  • Resolved Date: 2008-10-02
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6
6u10 b33Fixed
Related Reports
Duplicate :  
Relates :  
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 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

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