Forum Discussion

Stalsy's avatar
Stalsy
Contributor
5 years ago
Solved

javax.net.ssl.SSLException: Connection reset error

I'm using ReadyAPI 3.4.5

When I run a GET request that requires no authentication I get:

ERROR: Exception in request: javax.net.ssl.SSLException: Connection reset
ERROR: An error occurred [Connection reset], see error log for details
INFO: Error getting response for [https://racq.uat.cds.cuscal.com.au.Products:Request 1]; javax.net.ssl.SSLException: Connection reset

To test, I downloaded POSTMAN community edition and the same request on the same machine runs fine!

I have looked at previous posts and implemented several suggestions like adding -Dsoapui.https.protocols=SSLv3,TLSv1.2 to the ReadyAPI.vmoptions file but I'm still getting the error.

Also note: the same request to our dev end point https://dev-api2.racq.com.au.wadl/ works but it fails for https://racq.uat.cds.cuscal.com.au.wadl/ 

6 Replies

  • Hey Stalsy,

    First thing i always check if i ever get an SSL Exception is to switch http to https or https to http.

    Have you tried altering from secure to nonsecure? Virtually every time ive had this response http vs https has been the fix.

    Nice one

    Rich
    • Hi Rich,

      That was one of the multitude of things I tried. With HTTP I get a time out:

      Thu Jan 07 15:49:50 AEST 2021: ERROR: Exception in request: org.apache.http.conn.HttpHostConnectException: Connect to 203.21.202.34:80 [/203.21.202.34] failed: Connection timed out: connect

      Thu Jan 07 15:49:50 AEST 2021: ERROR: An error occurred [Connect to 203.21.202.34:80 [/203.21.202.34] failed: Connection timed out: connect], see error log for details

      Thu Jan 07 15:49:50 AEST 2021: INFO: Error getting response for [http://racq.uat.cds.cuscal.com.au.Products:Request 1]; org.apache.http.conn.HttpHostConnectException: Connect to 203.21.202.34:80 [/203.21.202.34] failed: Connection timed out: connect