Can't find solution to launch exception

The worst monsters in the Hearthlands warp the fabric of space and time...
User avatar
Granger
Posts: 9255
Joined: Mon Mar 22, 2010 2:00 pm

Re: Can't find solution to launch exception

Post by Granger »

Silicon_E wrote:
Granger wrote:Are you able to download http://game.havenandhearth.com/java/hafen-res.jnlp with the browser?
Downloaded fine, but cannot launch with exception:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://game.havenandhearth.com/java/builtin-res.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(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)
And wrapped exception:
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivilegedWithCombiner(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(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)
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
Silicon_E
Posts: 19
Joined: Sat Feb 06, 2016 3:54 am

Re: Can't find solution to launch exception

Post by Silicon_E »

Granger wrote:Do you have DSL?
No, I use a cable modem.
the semicolon;
a gift when sorting your code,
a bane when misplaced.
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Can't find solution to launch exception

Post by loftar »

Granger wrote:
Silicon_E wrote:
Granger wrote:Are you able to download http://game.havenandhearth.com/java/hafen-res.jnlp with the browser?
Downloaded fine, but cannot launch with exception:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://game.havenandhearth.com/java/builtin-res.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(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)
And wrapped exception:
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivilegedWithCombiner(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(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)
If this was a response to my post, then my question was if he could download the Jar rather than the JNLP, as the Jar file is the larger one.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
Granger
Posts: 9255
Joined: Mon Mar 22, 2010 2:00 pm

Re: Can't find solution to launch exception

Post by Granger »

Meh, blind me. Sorry.

Cable modems could also encapsulate IP in another protocol layer (depending on setup), this can lead in certain packets growing over the limit and getting discarded by braindead routers. You could try to grab http://www.heise.de/download/product/dr.-tcp-10693 and lower the MTU on your uplink (to like 1400 for a test), reboot before testing.
⁎ Mon Mar 22, 2010 ✝ Thu Jan 23, 2020
Silicon_E
Posts: 19
Joined: Sat Feb 06, 2016 3:54 am

Re: Can't find solution to launch exception

Post by Silicon_E »

loftar wrote:If this was a response to my post, then my question was if he could download the Jar rather than the JNLP, as the Jar file is the larger one.
The .jar downloaded fine, but won't do anything when opened, if that's significant.
Granger wrote:Cable modems could also encapsulate IP in another protocol layer (depending on setup), this can lead in certain packets growing over the limit and getting discarded by braindead routers. You could try to grab http://www.heise.de/download/product/dr.-tcp-10693 and lower the MTU on your uplink (to like 1400 for a test), reboot before testing.
Probably isn't a problem with the modem, as autohaven.jnlp works fine on another computer connected to the same network.
the semicolon;
a gift when sorting your code,
a bane when misplaced.
lachlaan
Posts: 488
Joined: Sat Apr 06, 2013 9:32 pm

Re: Can't find solution to launch exception

Post by lachlaan »

hafen-res.jar doesn't /do/ anything on its own, you put it in the appropriate location and the game's launcher won't attempt to download it since it's there. Having said that, I have absolutely no clue where the default client puts that stuff :|
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: Can't find solution to launch exception

Post by loftar »

Silicon_E wrote:The .jar downloaded fine, but won't do anything when opened, if that's significant.
No, it shouldn't do anything by itself, but it's weird that the browser can download it while Java cannot. I don't immediately have any idea why that might be. If anything, did you ever check Java's specific proxy-server settings, rather than Windows' generic settings? Java has its own settings, and I've seen from time to time that they've been activated for some reason.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Can't find solution to launch exception

Post by borka »

Java Control Panel (javacpl.exe) -> General Tab -> Network Settings -> check Direct Connection (at bottom)

try again

make sure you have made exceptions at Security tab for both

Code: Select all

http://game.havenandhearth.com
and

Code: Select all

https://game.havenandhearth.com
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head

Return to “Bugs”