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

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

Microsoft Windows XP [Version 5.1.2600]
XP Pro SP2

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)

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.

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.

SUGGESTED FIX should not do cache entry IP lookup/match if we are offline

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>)*.