Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7114494

Java Web Start cannot download resource : system is offline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 7u4
    • 6u29, 7
    • deploy
    • x86
    • windows_7

      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.

            nam Nam Nguyen (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: