Can't find solution to launch exception

The worst monsters in the Hearthlands warp the fabric of space and time...

Re: Can't find solution to launch exception

Postby Granger » Mon Jun 27, 2016 10:48 pm

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
User avatar
Granger
 
Posts: 9254
Joined: Mon Mar 22, 2010 2:00 pm

Re: Can't find solution to launch exception

Postby Silicon_E » Wed Jun 29, 2016 3:01 am

Granger wrote:Do you have DSL?
No, I use a cable modem.
the semicolon;
a gift when sorting your code,
a bane when misplaced.
Silicon_E
 
Posts: 19
Joined: Sat Feb 06, 2016 3:54 am

Re: Can't find solution to launch exception

Postby loftar » Wed Jun 29, 2016 3:38 am

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
loftar
 
Posts: 9058
Joined: Fri Apr 03, 2009 7:05 am

Re: Can't find solution to launch exception

Postby Granger » Wed Jun 29, 2016 8:10 am

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
User avatar
Granger
 
Posts: 9254
Joined: Mon Mar 22, 2010 2:00 pm

Re: Can't find solution to launch exception

Postby Silicon_E » Wed Jun 29, 2016 9:37 pm

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.
Silicon_E
 
Posts: 19
Joined: Sat Feb 06, 2016 3:54 am

Re: Can't find solution to launch exception

Postby lachlaan » Wed Jun 29, 2016 10:17 pm

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 :|
lachlaan
 
Posts: 477
Joined: Sat Apr 06, 2013 9:32 pm

Re: Can't find solution to launch exception

Postby loftar » Wed Jun 29, 2016 10:19 pm

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
loftar
 
Posts: 9058
Joined: Fri Apr 03, 2009 7:05 am

Re: Can't find solution to launch exception

Postby borka » Thu Jun 30, 2016 7:27 pm

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
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Previous

Return to Bugs

Who is online

Users browsing this forum: BLEX [Bot], Claude [Bot], Semrush [Bot] and 1 guest