Unable to Launch the Application

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

Unable to Launch the Application

Postby dukebane » Fri Apr 14, 2017 4:36 pm

I've been play H&H for about 3 years now and only had this issue when I first downloaded the game. I haven't changed anything and all of a sudden today, I can't play the game anymore! I tried clearing my cache, installing the newest version of java, and making sure java allowed temp files but nothing... Help!

These are the details of the error:
Launch File
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<jnlp codebase="http://game.havenandhearth.com/java/" spec="1.0+">
  <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 max-heap-size="512M" version="1.8+" />
    <java max-heap-size="512M" version="1.8+" />
    <jar href="hafen.jar" />
    <extension href="http://game.havenandhearth.com/java/hafen-res.jnlp" name="jogl" />
    <extension href="http://game.havenandhearth.com/java/jogl2/jogl-all-awt.jnlp" name="jogl" />
    <property value="game.havenandhearth.com" name="jnlp.haven.defserv" />
    <property value="http://game.havenandhearth.com/java/error" name="jnlp.haven.errorurl" />
    <property value="dukebane" name="jnlp.haven.authuser" />
    <property value="175462a9180c267ebe2eb7fed426f4658fb4f3c86f03d2cfc159d36c7eeae2bf" name="jnlp.haven.authck" />
    <property value="off" name="jnlp.haven.fullscreen" />
    <property value="https://game.havenandhearth.com/hres/" name="jnlp.haven.resurl" />
  </resources>
  <application-desc />
</jnlp>

Exception
Code: Select all
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://game.havenandhearth.com/java/hafen-res.jnlp
   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.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)

Wrapped 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.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.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)
dukebane
 
Posts: 5
Joined: Sun Jul 21, 2013 8:08 pm

Re: Unable to Launch the Application

Postby dukebane » Wed Apr 19, 2017 3:40 pm

Wow so I figured it out by looking up the exception: "java.net.SocketException: Address family not supported by protocol family: connect"
online. You just have to copy "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true" into cmd.exe and it magically fixed it!! If anyone else has this problem I hope it helps!
dukebane
 
Posts: 5
Joined: Sun Jul 21, 2013 8:08 pm

Re: Unable to Launch the Application

Postby jorb » Mon Jun 26, 2017 8:24 am

Resolved.
"The psychological trials of dwellers in the last times will be equal to the physical trials of the martyrs. In order to face these trials we must be living in a different world."

-- Hieromonk Seraphim Rose
User avatar
jorb
 
Posts: 18263
Joined: Fri Apr 03, 2009 7:07 am
Location: Here, there and everywhere.

Re: Unable to Launch the Application

Postby rinpinazure » Sun Jun 17, 2018 1:55 am

I tried that and it did not work for me. here is mine. I cannot figure out what to do.

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)
rinpinazure
 
Posts: 25
Joined: Mon Jul 07, 2014 7:56 pm

Re: Unable to Launch the Application

Postby MagicManICT » Sun Jun 17, 2018 2:17 am

rinpinazure wrote:I tried that and it did not work for me. here is mine. I cannot figure out what to do.

Was this the entirety of the exception? If so, it may not be the exact same problem.

Without more information,it's hard to diagnose the problem. System specs may be needed, including version numbers of operating system, Java, hardware (and possibly driver version numbers), and any software installed, especially security software that may cause interference. Startup variables may be necessary, too.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18437
Joined: Tue Aug 17, 2010 1:47 am

Re: Unable to Launch the Application

Postby Ushiro » Sat Apr 27, 2019 3:46 am

I've been spending hours trying to figure out why the application fails to launch and have tried doing all of the above. Here is is my error in case anyone still looks at these forrums

org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at com.sun.deploy.xml.XMLParser.parse(Unknown Source)
at com.sun.deploy.xml.XMLParser.parse(Unknown Source)
at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(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)

I've tried changing the .jar file to a .txt to do a possible fix but when I turn it into a .txt file it's all gibberish. I don't know how to post an image onto this forum but I'll copy and paste some of the file here for an example:
PK
 L‹qN  META-INF/þÊ PK  K‹qN;í¬‡ ž  META-INF/MANIFEST.MFM1 à „wÁÿàØJlÍ–Ø5tëZ^’W"
O
téo¯éÔåà¾;îþ…)ËRò1´B«†³.ü‘nƒiAQY
­²œ9BÈ8Ëþ}ôjžÚhiÊ¡£¾ÊËgÆÑ–Ÿ§;Á´¢p‘¶Hë晳|n…”Z±ÀŽA­PBý!u#¿#qÆÙPK
 L‹qN  haven/PK
 L‹qN  haven/launcher/PK  L‹qNÄɸ Î " haven/launcher/AWTStatus$1$1.classSmOÓP~îÖQW+S`‚/¨]‡tàKԝgŠ1øñÒÝ°šrkÚ;@ÿ• ÑÄ~ôGÏíŒYŒ[lÒžÓsžóœsŸ{_¾¸ƒ{EX˜³pó&,äqÉ¢Èbç°dá2®X¸Šk:¶l⺉ ª¦Ëk&n2Øm)EÒŠxšŠ”aÁïñ}!½ˆ÷eЉ÷d{³£¸ê¾I•BªÇ KÎ8`m‹ÁhÅ]ÁPòC)^÷÷vD²Éw"ŠTü8àÑOBýÿ;hè‘Ç°fX¸ŸâE¨‹&ÿdWßñ}NÍžË ŠÓPînÕ‹»6l”l”á0LkÈ¡—PÖ{úüCÜW:Y³á¢nc·L¬ÚðÐ0±fc·mRø.©2n*ZÑ0õ«7\Šˆant
CÞÑU_Wzü@y­X*NR%ͶNS¡2ÌÁ±
.ù.A5r°™
j8R;Ò­ô×êI \‰—q~Ô½£ŽJt·Y§]kï},…TÄQÅOÛƒ@¤´´Æ:óÑg£ù/æíò¼Ûepÿ.¡Ã®ïÀÊe½ñÚ£·Œ)²ò"#»âÖ?ƒ¹'ȹ_‘ëN`£àºG`G˜˜bßOažâÌ1ŠÛŸŸÃyúV`Ð÷>Šx€<DM\ ÈÌ€Óä!ótoš³YmÉtÉŒ'—ùú±æPK  L‹qN
ßgÆA  " haven/launcher/AWTStatus$1$2.class}SmOÓP~.”Õs¸‰€€:u+ºŽE/ê|ÉL1&#>Þu7¬¦Üš¶Ô_e‚ŒHâðGÏ݈ÁÉÖ¤=§Ï9Ϲçíþúýã'€e¬%0‚›:F1£aVG s:!·Hⶆ;ÃÈêÐpWÇ=ÜW–œŽ<L

I have an NVIDIA and recently updated it. I did what was suggested and tried rolling it back to a previous update. Hope a developer or someone that has this problem can come to me with a solution.
Ushiro
 
Posts: 4
Joined: Fri Apr 26, 2019 4:58 am

Re: Unable to Launch the Application

Postby MagicManICT » Sat Apr 27, 2019 4:20 am

Ushiro wrote:I have an NVIDIA and recently updated it. I did what was suggested and tried rolling it back to a previous update. Hope a developer or someone that has this problem can come to me with a solution.

We need hardware and software details that you haven't posted here. We need to know the client version, Java version, operating system and version, and potentially hardware.

Ushiro wrote:I've tried changing the .jar file to a .txt to do a possible fix but when I turn it into a .txt file it's all gibberish.

Of course. You shouldn't be making changes directly to a .jar file. You should get the source code in this case, which is available on the source code document page.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18437
Joined: Tue Aug 17, 2010 1:47 am

Re: Unable to Launch the Application

Postby Ushiro » Sat Apr 27, 2019 5:37 am

Wow I didn't think I'd get a reply back so fast. Thank you so much. I'll try to list everything I can:
OS: Microsoft Windows 10 Pro
Version: 10.0.17763 Build 17763
System Manufacturer: Gigabyte Technology
System Type: x64-based PC
Processor: Intel(R) Core(TM) i5-3550 CPU @ 3.30GHz, 3701 Mhz, 4 Core(s) 4 Logical Pro...
BIOS Version/Date: American Megarends Inc. F18, 10/24/2012
SMBIOS Version: 2.7
BIOS Mode: UEFI
BaseBoard Manufacturer: Gigabyte Technology
BaseBoard Projuct: Z77X-UD3H
RAM: 16.0 GB
Graphics Card: NVIDIA GeForce GTX 1070
My current Nvidia Driver is on Version 425.31 release date: 04/11/2019 (The one I rollbacked to)
Java: Version 8 Update 211 (build 1.8.0_211-b12)

I'm sorry if that's too much. Please let me know if I missed anything

Also sorry if I don't understand some of this. This is a lot to figure out. I clicked your link on the "source code document page" went to the GIT VERSION CONTROL SYSTEM link and copy and pasted "<git://sh.seatribe.se/hafen-client> into search of that site and git-scm.com couldn't find it. I'm probably doing something wrong if you don't mind explaining.
Ushiro
 
Posts: 4
Joined: Fri Apr 26, 2019 4:58 am

Re: Unable to Launch the Application

Postby borka » Sat Apr 27, 2019 2:18 pm

Check where Java is installed (path) i.e. C:\Program Files\Java\jre1.8.0_211\bin (for 64 Bit Java)

Edit PATH system variable in Windows 10 - how to:

https://java.com/en/download/help/path.xml
(select language: https://java.com/en/selectlanguage.jsp)

Open Java Control Panel (i. e. C:\Program Files\Java\jre1.8.0_211\bin\javacpl.exe)

-> General Tab -> Networksettings -> checkmark direct connection (bottom)

try again with play button (autohaven.jar)

++++++++++++++++++++++++++++++++++++++++++
I guess atm you shouldn't bother about source code but

Source Code url without Git installed:
https://github.com/dolda2000/hafen-client

to get a slight clue LostJustice did a tutorial
viewtopic.php?f=49&t=59745

;)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

to paste an image here you can use Img tags (row above text field) around the url to uploaded image or just attach it by "Upload attahement" button beneath text field and point to it at your PC so it gets uploaded here

For error messages you'd use Code tags (row above text field)

Code: Select all
hth :)
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

Re: Unable to Launch the Application

Postby MagicManICT » Sat Apr 27, 2019 7:20 pm

You didn't mention what client (and version of the client) you were using. This isn't something that is typically seen with the standard client.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18437
Joined: Tue Aug 17, 2010 1:47 am

Next

Return to Bugs

Who is online

Users browsing this forum: No registered users and 6 guests