JDK-7114494 : Java Web Start cannot download resource : system is offline
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u29,7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2011-11-22
  • Updated: 2012-03-20
  • Resolved: 2012-01-12
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 7
7u4Resolved
Related Reports
Duplicate :  
Duplicate :  
Description
FULL PRODUCT VERSION :
>java -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
>ver

Microsoft Windows [Version 6.1.7601]

A DESCRIPTION OF THE PROBLEM :
Sometimes when launching a JavaFX 1.3.1 application by clicking on its icon, Java Web Start refuses to launch it despite the fact that the application has been marked as running offline.
For some reason it detect the system as being offline even when the system is connected to an enterprise network and on the Internet.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Launch an a Java Web Start application using its shortcut or click on JNLP link,

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The app is marked as offline-capable in the JNLP, Java Web Start should always launch it even of the system is not online.

Java Web Start should not attempt to invalidate its cache and renew its content when the system is offline.

Java Web Start should make better effort to detect when a system is really offline.

End user message should be more clear.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
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.getResourceCacheEntry(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
	at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)



REPRODUCIBILITY :
This bug can be reproduced occasionally.

Comments
EVALUATION Customer provided application URL for testing: http://www.tumas-project.org/distribution/TUMAS-fx.jnlp Running JRE 1.7.0 exact version as customer but ran into bug 7052120. Subsequent 7u2 also experience bug 7121240 and bug 7129311 which also prevent launching of the TUMAS-fx application. The exception noted in this CR description (failed to download) was probably associated with existing cache or have been fixed as side-effect of some code changes that went into various 7u codeline. So, I am marking this as duplicate of CR 7129311 for release verification purpose. SQE should read this CR description scenario about offline (or even online behavior) and use the above provided app to verify the target release bits.
12-01-2012