HELP I CANT PLAY HAVEN AND HEARTH!

Ask, answer and discuss any and all topics about the hows, whys, wheres and whens of playing Haven & Hearth.
ShatteredReality
Posts: 2
Joined: Wed Aug 02, 2017 9:06 pm

HELP I CANT PLAY HAVEN AND HEARTH!

Post by ShatteredReality »

I was able to play the game before, but a couple months ago it started acting up and gave me this error message:

Unable to launch the application Name:Haven and Hearth Publisher:Seatribe Location:http://game.havenandhearth.com

And it has a details option this is what it says:
Launch file:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<jnlp spec="1.0+" codebase="http://game.havenandhearth.com/java/">
  <information>
    <title>Haven and Hearth</title>
    <vendor>Seatribe</vendor>
    <description>The Haven game</description>
    <homepage href="http://www.havenandhearth.com/" />
    <icon href="icon.gif" />
    <icon kind="splash" href="splash.gif" />
  </information>
  <security>
    <all-permissions />
  </security>
  <resources>
    <j2se version="1.8+" max-heap-size="512M" />
    <java version="1.8+" max-heap-size="512M" />
    <jar href="hafen.jar" />
    <extension name="jogl" href="http://game.havenandhearth.com/java/hafen-res.jnlp" />
    <extension name="jogl" href="http://game.havenandhearth.com/java/jogl2/jogl-all-awt.jnlp" />
    <property value="http://game.havenandhearth.com/java/error" name="jnlp.haven.errorurl" />
    <property value="https://game.havenandhearth.com/hres/" name="jnlp.haven.resurl" />
    <property value="game.havenandhearth.com" name="jnlp.haven.defserv" />
    <property value="96f39f994f9ec511078e0671cd1b66b686207262ad9beff943c17fbab26f797d" name="jnlp.haven.authck" />
    <property value="ShatteredReality" name="jnlp.haven.authuser" />
    <property value="off" name="jnlp.haven.fullscreen" />
  </resources>
  <application-desc />
</jnlp>
HERE IS THE EXCEPTION:

Code: Select all

java.net.SocketException: Address family not supported by protocol family: 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.plainConnect0(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessController.doPrivilegedWithCombiner(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.connect(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.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.getJreResource(Unknown Source)
	at com.sun.javaws.LaunchDownload._downloadExtensionsHelper(Unknown Source)
	at com.sun.javaws.LaunchDownload.downloadExtensionsHelper(Unknown Source)
	at com.sun.javaws.LaunchDownload.downloadExtensions(Unknown Source)
	at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
	at com.sun.javaws.Launcher.prepareAllResources(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(Unknown Source)
Please get back to me as soon as possible! thanks!
Last edited by loftar on Wed Jan 10, 2018 7:29 pm, edited 1 time in total.
Reason: Formatting
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: HELP I CANT PLAY HAVEN AND HEARTH!

Post by shubla »

Do you have the latest java version?
It might also be caused by some anti-virus/firewall/other software blocking the connection.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
ShatteredReality
Posts: 2
Joined: Wed Aug 02, 2017 9:06 pm

Re: HELP I CANT PLAY HAVEN AND HEARTH!

Post by ShatteredReality »

I just tried both of those things, and they didn't work, do you have any more suggestions?
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: HELP I CANT PLAY HAVEN AND HEARTH!

Post by shubla »

Could also be caused by ipv6, try running java with -Djava.net.preferIPv4Stack=true argument.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
magisticus
Posts: 268
Joined: Sat Aug 30, 2014 2:57 am
Location: Tavistock, Devon, UK

Re: HELP I CANT PLAY HAVEN AND HEARTH!

Post by magisticus »

shubla wrote:Could also be caused by ipv6, try running java with -Djava.net.preferIPv4Stack=true argument.
^ Is something wrong with IP. This is probably right, but not very full explanation...

Kinda depends what system you are running, but assuming windows 10 ...

Click on start menu,
Then settings,
where the box says 'find a setting' type environment variables,
this will open a box called 'system properties'
go to the advanced tab and at the bottom click on environment variables
look for _JAVA_OPTIONS in the system box at the bottom which may or may not be there - if it is highlight it, click edit, then new and copy in the line shubbla has given above
if it isn't then click 'NEW' right at the bottom below the system variables box and in the variable name box type _JAVA_OPTIONS and in the variable value box copy in the line shubbla gave

It will force java to use the older form of the internet protocol (IP4) which should resolve your problem.
User avatar
loftar
Posts: 9096
Joined: Fri Apr 03, 2009 7:05 am
Location: Your character database

Re: HELP I CANT PLAY HAVEN AND HEARTH!

Post by loftar »

ShatteredReality wrote: at java.net.SocksSocketImpl.connect(Unknown Source)
I suspect that your Java installation is, for some reason, set to use a SOCKS proxy. Some Java installations seem to have that problem, but I still have no idea why. Either way, disabling that should fix your problem.

As for IPv6, playing Haven over IPv6 shouldn't be a problem; there are even people who do that, though it's a small minority since Java (in spite of the specs) always prefers IPv4 whenever it's available.
"Object-oriented design is the roman numerals of computing." -- Rob Pike

Return to “How do I?”