Forum Stats

  • 3,768,739 Users
  • 2,252,843 Discussions
  • 7,874,705 Comments

Discussions

<offline-allowed> tag is not working, when I have multiple of versions of the same application in ca

user8838409
user8838409 Member Posts: 3
edited Jun 23, 2015 8:22AM in Java Web Start & JNLP

<offline-allowed> tag is not working, when I have multiple of versions of the same application in cache.

1) Downloaded Version 1 of the applcation

2) Desktop shortcut created.

3) Downloaded Version 2 of the same application

4) Another Desktop shortcut created (this is expected)

5) Shut down tomcat server or disconnected from network to run in offline mode

6) Access Desktop shortcut (Version 1 or Version 2) to run the application in offline mode.

7) Displayed dialog box with below message.

     The aplicaition has requested to go online. Do you want to continue?

     (This should not be displayed, because application is already in local java Cache).

8) Enabled Traciing and Debug logging in java control panel. Java cache size is set to 32768 MB (Control Panel --> Java --> General --> Settings... (Temporary Internet Files)

9) Observed that locally cached jar files were marked as expired which prevents the application from running in offline mode.

Has anyone experienced this or know why Java Web Start marks jars as expired? Can anyone suggest any way to prevent this from happening?

Exception:


java.net.ConnectException: Connection refused: connect

    at java.net.DualStackPlainSocketImpl.connect0(Native Method)

    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)

    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

    at java.net.PlainSocketImpl.connect(Unknown Source)

    at java.net.SocksSocketImpl.connect(Unknown Source)

    at java.net.Socket.connect(Unknown Source)

    at java.net.Socket.connect(Unknown Source)

    at sun.net.NetworkClient.doConnect(Unknown Source)

    at sun.net.www.http.HttpClient.openServer(Unknown Source)

    at sun.net.www.http.HttpClient.openServer(Unknown Source)

    at sun.net.www.http.HttpClient.<init>(Unknown Source)

    at sun.net.www.http.HttpClient.New(Unknown Source)

    at sun.net.www.http.HttpClient.New(Unknown Source)

    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)

    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)

    at sun.net.www.protocol.http.HttpURLConnection.connect(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.LaunchDownload$DownloadTask.call(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)

pastedImage_4.png

Error Message.png

This discussion has been closed.