Thursday 8 March 2012

OER Error when using Assets Editor or Import/Export external tool

PROBLEM


Accessing the assets editor or import/export client of OER it is necessary to download jnpl files to java web start initiate the necessary applications. Sometimes, the jnpl files cannot access the hosted jar files.


java.net.ConnectException: Connection refused: connect
...

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

or


com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://localhost:7101/oer-web/webstart/impexp/client.importtool-11.1.1.6.0.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(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$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)





SOLUTION


Edit the impexp.jnlp or registrartool.jnlp download files to reference the host name instead of localhost or other non reachable host.

Oracle Enterprise Repository 11.1.6

1 comment:

  1. Thank you so much for this useful information fellas and I have to tell you that I search more information about java WebStart from a long time ago.

    ReplyDelete