Official Client help

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

Official Client help

Postby Tonkyhonk » Sat Oct 29, 2011 3:10 pm

i have no problem running Ender's client, but now i seem to have a problem with the official one and cannot run it.
can anyone tell me what this error message means and any solutions to this?

Code: Select all
java.lang.RuntimeException: Delayed error in resource gfx/tiles/gold/gold (v1), from forking source backed by HTTP res source (https://www.havenandhearth.com/res/)
   at haven.Resource.checkerr(Resource.java:1058)
   at haven.Resource.layer(Resource.java:941)
   at haven.MCache.loadset(MCache.java:139)
   at haven.MCache.tilemap(MCache.java:433)
   at haven.Session$RWorker.handlerel(Session.java:372)
   at haven.Session$RWorker.getrel(Session.java:383)
   at haven.Session$RWorker.run(Session.java:451)
Caused by: haven.Resource$LoadException: Load error in resource gfx/tiles/gold/gold(v1), from forking source backed by HTTP res source (https://www.havenandhearth.com/res/)
   at haven.Resource$Loader.handle(Resource.java:401)
   at haven.Resource$Loader.run(Resource.java:375)
   at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
   at sun.security.ssl.Alerts.getSSLException(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
   at haven.Resource$HttpSource.get(Resource.java:330)
   at haven.Resource$TeeSource.get(Resource.java:225)
   at haven.Resource$Loader.handle(Resource.java:395)
   ... 2 more
Caused by: java.lang.RuntimeException: Could not generate DH keypair
   at sun.security.ssl.DHCrypt.<init>(Unknown Source)
   at sun.security.ssl.ClientHandshaker.serverKeyExchange(Unknown Source)
   at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
   at sun.security.ssl.Handshaker.processLoop(Unknown Source)
   at sun.security.ssl.Handshaker.process_record(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
   ... 11 more
Caused by: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)
   at com.sun.crypto.provider.DHKeyPairGenerator.initialize(DHKeyPairGenerator.java:120)
   at java.security.KeyPairGenerator$Delegate.initialize(Unknown Source)
   ... 18 more
2nd page
java.lang.RuntimeException: Delayed error in resource gfx/tiles/gold/gold (v1), from forking source backed by HTTP res source (https://www.havenandhearth.com/res/)
   at haven.Resource.checkerr(Resource.java:1058)
   at haven.Resource.compareTo(Resource.java:950)
   at haven.Resource.compareTo(Resource.java:39)
   at java.util.ComparableTimSort.countRunAndMakeAscending(Unknown Source)
   at java.util.ComparableTimSort.sort(Unknown Source)
   at java.util.ComparableTimSort.sort(Unknown Source)
   at java.util.Arrays.sort(Unknown Source)
   at java.util.Collections.sort(Unknown Source)
   at haven.Resource.dumplist(Resource.java:1106)
   at haven.MainFrame.main2(MainFrame.java:235)
   at haven.MainFrame.access$100(MainFrame.java:34)
   at haven.MainFrame$5.run(MainFrame.java:266)
   at java.lang.Thread.run(Unknown Source)
Caused by: haven.Resource$LoadException: Load error in resource gfx/tiles/gold/gold(v1), from forking source backed by HTTP res source (https://www.havenandhearth.com/res/)
   at haven.Resource$Loader.handle(Resource.java:401)
   at haven.Resource$Loader.run(Resource.java:375)
   ... 1 more
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
   at sun.security.ssl.Alerts.getSSLException(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.handleException(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
   at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
   at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
   at haven.Resource$HttpSource.get(Resource.java:330)
   at haven.Resource$TeeSource.get(Resource.java:225)
   at haven.Resource$Loader.handle(Resource.java:395)
   ... 2 more
Caused by: java.lang.RuntimeException: Could not generate DH keypair
   at sun.security.ssl.DHCrypt.<init>(Unknown Source)
   at sun.security.ssl.ClientHandshaker.serverKeyExchange(Unknown Source)
   at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
   at sun.security.ssl.Handshaker.processLoop(Unknown Source)
   at sun.security.ssl.Handshaker.process_record(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
   at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
   ... 11 more
Caused by: java.security.InvalidAlgorithmParameterException: Prime size must be multiple of 64, and can only range from 512 to 1024 (inclusive)
   at com.sun.crypto.provider.DHKeyPairGenerator.initialize(DHKeyPairGenerator.java:120)
   at java.security.KeyPairGenerator$Delegate.initialize(Unknown Source)
   ... 18 more
User avatar
Tonkyhonk
 
Posts: 4501
Joined: Fri Sep 10, 2010 6:43 am

Re: Official Client help

Postby loftar » Sat Oct 29, 2011 4:40 pm

That seems to be a problem with the new Java 7 recently released by Oracle. It's only capable of handling DH keys up to 1024 bits for some reason, while I've set up our HTTPS with a 2048 bit key. I have no clue why, since Java 6 handles 2048 bit keys without a problem. The best solution right now would be to downgrade to Java 6 again. If I can't find some reasonable solution, I guess I'll have to downgrade the key size on the web server.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9051
Joined: Fri Apr 03, 2009 7:05 am

Re: Official Client help

Postby Tonkyhonk » Sat Oct 29, 2011 5:49 pm

ah thanks, loftar.
doesnt sound too cool though :( i hope you'll find some solutions without downgrading it sometime soon.
User avatar
Tonkyhonk
 
Posts: 4501
Joined: Fri Sep 10, 2010 6:43 am

Re: Official Client help

Postby borka » Sun Oct 30, 2011 1:27 am

Sometimes it's nice to stay with "old" SW like w XP 32Bit and Java 6 :P
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: Official Client help

Postby BooBooLaBoosh_ » Sun Oct 30, 2011 1:31 am

Posting in a Loftar thread.
So a Flotsam walks into a bar.
The Bartender says "What are you here for?"
And the Flotsam says "Nothing, I'm just Curios."
User avatar
BooBooLaBoosh_
 
Posts: 84
Joined: Thu Oct 27, 2011 1:15 am

Re: Official Client help

Postby loftar » Sun Oct 30, 2011 1:41 am

Well, I've downgraded the web server's key size until I can find a better solution.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9051
Joined: Fri Apr 03, 2009 7:05 am

Re: Official Client help

Postby Tonkyhonk » Sun Oct 30, 2011 12:25 pm

thanks again, loftar. ill try it tomorrow.

=edit=
yes, it is working perfect now, thanks!
User avatar
Tonkyhonk
 
Posts: 4501
Joined: Fri Sep 10, 2010 6:43 am

Re: Official Client help

Postby geehae » Wed Nov 02, 2011 1:31 am

I'm having the same problem, how do i downgrade my java? ;;
geehae
 
Posts: 4
Joined: Sat Oct 29, 2011 8:06 am

Re: Official Client help

Postby Tonkyhonk » Wed Nov 02, 2011 5:33 am

geehae wrote:I'm having the same problem, how do i downgrade my java? ;;

your problem is not the same as mine.
you dont have to downgrade your java. refer to cobalt's reply to you on Ender's thread.
User avatar
Tonkyhonk
 
Posts: 4501
Joined: Fri Sep 10, 2010 6:43 am


Return to The Wizards' Tower

Who is online

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