Upgrading JDBC Driver Results On "RuntimeException: Could not generate DH keypair"

(Doc ID 730427.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version to [Release AS10gR3]
Information in this document applies to any platform.
***Checked for relevance on 28-Jul-2016***


A new OC4J instance is created and started with the java option -Djava.ext.dirs=<jdbc 10204> where <jdbc 10204> is a directory containing the jdbc jar file ojdbc14.jar

After restarting this new OC4J instance, the ASC console is not accessible: it hangs on the login screen.

The following error is shown in the ASC console log file.

08/07/30 08:34:08 Start process
08/07/30 08:35:19 java.lang.RuntimeException: Could not generate DH keypair
08/07/30 08:35:19 at com.sun.net.ssl.internal.ssl.DHKeyExchange.generateKeyPair(DHKeyExchange.java:137)
08/07/30 08:35:19 at com.sun.net.ssl.internal.ssl.ServerHandshaker.getEphemeralDHKeys(ServerHandshaker.java:132)
08/07/30 08:35:19 at com.sun.net.ssl.internal.ssl.ServerHandshaker.trySetCipherSuite(ServerHandshaker.java:715)
08/07/30 08:35:19 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.checkEnabledSuites(SSLServerSocketImpl.java:292)
08/07/30 08:35:19 at com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:253)
08/07/30 08:35:19 at com.evermind.server.rmi.RMIServer$Listener.acceptNewConnection(RMIServer.java:579)
08/07/30 08:35:19 at com.evermind.server.rmi.RMIServer$Listener.run(RMIServer.java:567)
08/07/30 08:35:19 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
08/07/30 08:35:19 at java.lang.Thread.run(Thread.java:595)

08/07/30 08:35:19 Caused by: java.security.NoSuchAlgorithmException: DiffieHellman KeyPairGenerator not available
08/07/30 08:35:19 at java.security.KeyPairGenerator.getInstance(KeyPairGenerator.java:169)
08/07/30 08:35:19 at com.sun.net.ssl.internal.ssl.DHKeyExchange.generateKeyPair(DHKeyExchange.java:121)
08/07/30 08:35:19 ... 8 more


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms