Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

ERROR ActivityLogger - java.lang.RuntimeException: Could not generate DH keypair
 Post subject: ERROR ActivityLogger - java.lang.RuntimeException: Could not generate DH keypair Post rating: 0   New post Posted: Mon 28 Nov, 2016, 14:45 
User avatar

User rating: 0
Joined: Mon 10 Nov, 2014, 03:23
Posts: 7
Location: Spain, Madrid
When I have connected to Dukascopy Servers or try to do some operation, I get the next error:

Quote:
javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1906)
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(KeyPairGenerator.java:674)



I have migrated to Windows 10
JRE jre1.8.0_111
JDK jdk1.8.0_111

java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

Please, some workaround ?

Thanks


 
 Post subject: Re: ERROR ActivityLogger - java.lang.RuntimeException: Could not generate DH keypair Post rating: 0   New post Posted: Tue 29 Nov, 2016, 16:55 
User avatar

User rating: 0
Joined: Mon 10 Nov, 2014, 03:23
Posts: 7
Location: Spain, Madrid
I have made a downgrade to 1.8.45 and it works fine again.


 
 Post subject: Re: ERROR ActivityLogger - java.lang.RuntimeException: Could not generate DH keypair Post rating: 0   New post Posted: Thu 01 Dec, 2016, 09:47 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We were unable to reproduce this with JDK jdk1.8.0_111.


 
 Post subject: Re: ERROR ActivityLogger - java.lang.RuntimeException: Could not generate DH keypair Post rating: 0   New post Posted: Thu 01 Dec, 2016, 12:32 
User avatar

User rating: 0
Joined: Mon 10 Nov, 2014, 03:23
Posts: 7
Location: Spain, Madrid
Tranks for your support and time.
It fails when I run 1.8.0_111 in Matlab/Windows10.

Works with 1.8.0_45 I don't know why..


 

Jump to:  

  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com