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

Cannot launch cached Java Web Start applications while system is offline

    XMLWordPrintable

Details

    • b22
    • b33
    • x86
    • windows, windows_xp
    • Not verified

    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.

      Attachments

        Issue Links

          Activity

            People

              ngthomas Thomas Ng (Inactive)
              ryeung Roger Yeung (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: