0 Replies Latest reply on Apr 28, 2014 9:31 AM by michaelellis

    WebStart Fails to load cached app when disconnected from internet under Apple OS-X

    michaelellis

      Java WebStart broken under OS-X

       

      Our Java WebStart application fails to re-launch when disconnected from the internet.

       

      Instructions:

      1. Running OS-X 10.8 or 10.9 with internet connected.
      2. Launch a WebStart application (e.g.. from http://www.dsuk.biz/Downloads/SmartType/SmartType2.0.19/APPLICATION.JNLP)
      3. Disconnect from internet.
      4. Relaunch the application either with the downloaded JNLP file or the installed desktop shortcut.

       

      I get "Unable to launch application" error with following exception:

       

      java.net.UnknownHostException: www.dsuk.biz

        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)

        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

        at java.net.Socket.connect(Socket.java:589)

        at java.net.Socket.connect(Socket.java:538)

        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)

        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)

        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)

        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)

        at sun.net.www.http.HttpClient.New(HttpClient.java:308)

        at sun.net.www.http.HttpClient.New(HttpClient.java:326)

        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1167)

        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)

        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)

        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:931)

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)

        at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)

        at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)

        at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)

        at com.sun.deploy.cache.ResourceProviderImpl.checkUpdateAvailable(Unknown Source)

        at com.sun.deploy.cache.ResourceProviderImpl.isUpdateAvailable(Unknown Source)

        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)

        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)

        at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)

        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)

        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)

        at com.sun.javaws.Launcher.launch(Unknown Source)

        at com.sun.javaws.Main.launchApp(Unknown Source)

        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)

        at com.sun.javaws.Main.access$000(Unknown Source)

        at com.sun.javaws.Main$1.run(Unknown Source)

        at java.lang.Thread.run(Thread.java:744)

       

      ----

      I have reproduced with Java build 1.8.0-b132 and 1.7.0_51

      Java Web Start 11.0.2.132

      Using JRE version 1.8.0-b132 Java HotSpot(TM) 64-Bit Server VM

       

      Re launching the application under Windows 7 when disconnected from the internet seems to work fine (tested in virtual Windows 7 64 bit VM under Parallels). It used to work fine on OS-X!

       

      RANT/QUESTION

      WebStart over the last two years has given me no end of headaches with deployed applications mysteriously breaking when either Oracle or Apple have made changes. So far WebStart just has not been a reliable and robust means of deployment.

       

      Is WebStart to be taken seriously as a deployment vehicle for a commercial application or should I be looking at other solutions?

       

      Also: How do I report bug to Oracle? Do you have to pay for support in order to report bugs?