Forum Discussion

slwtx1983's avatar
slwtx1983
New Contributor
8 years ago

Java Error

Everytime I try to run any SOAP commands or load a basic WSDL file from the internet, I get a Java error, that appears to relate to SSL issues.  I am running SoapUI 5.3, and even tried downgrading to 5.2.1, but they both give a DH keypair error.  I basically cannot use the program at all.  No matter what I do, I get a java error.  I only have Java 8 v21 installed on my machine.  Do I need to install some sort of SDK onto my machine to make all this work?

5 Replies

    • slwtx1983's avatar
      slwtx1983
      New Contributor

      I downloaded those files, but they are older than the ones I already have.  I installed the JDK, and setup %java_home% but I still get the DH keypair issue when trying to do anything inside SoapUI.

    • slwtx1983's avatar
      slwtx1983
      New Contributor

      I did, but it basically says exactly what I wrote in the beginning.  I posted it below.

       

      2017-02-21 20:00:04,336 ERROR [WsdlSubmit] Exception in request: javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
      2017-02-21 20:00:04,336 ERROR [SoapUI] An error occurred [java.lang.RuntimeException: Could not generate DH keypair], see error log for details
      2017-02-21 20:00:04,336 ERROR [errorlog] javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair
      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.handleException(Unknown Source)
      at sun.security.ssl.AppOutputStream.write(Unknown Source)
      at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)
      at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:138)
      at org.apache.http.impl.conn.LoggingSessionOutputBuffer.flush(LoggingSessionOutputBuffer.java:95)
      at org.apache.http.impl.io.ContentLengthOutputStream.flush(ContentLengthOutputStream.java:102)
      at org.apache.http.entity.ByteArrayEntity.writeTo(ByteArrayEntity.java:69)
      at org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:96)
      at org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
      at org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:120)
      at org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:263)
      at org.apache.http.impl.conn.AbstractClientConnAdapter.sendRequestEntity(AbstractClientConnAdapter.java:227)
      at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:255)
      at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doSendRequest(HttpClientSupport.java:119)
      at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
      at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
      at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
      at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
      at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:233)
      at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:323)
      at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:290)
      at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:220)
      at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:119)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      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)
      at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
      ... 28 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)
      ... 36 more
      2017-02-21 20:00:04,343 INFO [AbstractHttpRequestDesktopPanel] Error getting response for [ManagementService.Login:Request 1]; javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate DH keypair

       

       

      • slwtx1983's avatar
        slwtx1983
        New Contributor

        I really do like this program but I am super bummed that it broke and has become useless over something that seems so simple.  I have no problems at all with any other apps on my computer, but I simply cannot run any SOAP commands inside SoapUI, or I get this error.