cancel
Showing results for 
Search instead for 
Did you mean: 

[Res] ERROR:java.net.SocketException: Connection reset

Highlighted
Occasional Contributor

[Res] ERROR:java.net.SocketException: Connection reset

Hi,

I get the following error when running a test suite against a particular environment:

Mon Jul 21 17:54:35 NZST 2014:DEBUG:Attempt 1 to execute request
Mon Jul 21 17:54:35 NZST 2014:DEBUG:Sending request: POST /api/Customers/afb0dcfd-f7b1-4a64-94ac-d5fb90462d0b HTTP/1.1
Mon Jul 21 17:54:35 NZST 2014:DEBUG:I/O error closing connection
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
at sun.security.ssl.SSLSocketImpl.checkEOF(Unknown Source)
at sun.security.ssl.SSLSocketImpl.checkWrite(Unknown Source)


This test suite runs without any problems against other environments. Can you please help me figure out what could be causing this issue?


Thanks
6 REPLIES 6
Highlighted

Re: ERROR:java.net.SocketException: Connection reset

Hi,

It's an SSL-related issue. It's not obvious what would cause it for that particular environment.
How are your endpoints different? Please verify the protocol you should be using: http vs https.
And are you running the tests from the SoapUI Pro GUI?

Regards,

Giscard
SmartBear Support


Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Occasional Contributor

Re: ERROR:java.net.SocketException: Connection reset

So my endpoints are exactly the same:

https://beta.unleashedsoftware.com/api ---> WORKS
https://test5.unleashedsoftware.com/api ---> DOESN'T WORKS

Same protocols.

Running SoapUI Pro GUI.
Highlighted
Occasional Contributor

Re: ERROR:java.net.SocketException: Connection reset

By the way, they turned off SNI (Server Name Indication) and now I don't have any problems.

Could you please tell me how do I get SoapUI to work correctly with SNI?

Cheers,
German.
Highlighted

Re: [Res] ERROR:java.net.SocketException: Connection reset

Hi,

Each one of your HTTPS endpoints likely requires different SSL certificates. Currently, you SSL certificate should be defined in SoapUI Pro in: File > Preferences > SSL Settings.

Currently there is a limitation of specifying a single SSL cert in SoapUI Pro. There is a workaround provided for environments so that SSL certs can change dynamically. That workaround is described here: viewtopic.php?t=13014#p31789

Thanks,
Michael Giller
Technical Sales Engineer


Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
New Member

Re: ERROR:java.net.SocketException: Connection reset


@AHolland wrote:
So my endpoints are exactly the same:

https://domyhomeworkonline.net/ ---> WORKS
https://test5.unleashedsoftware.com/api ---> DOESN'T WORKS

Same protocols.

Running SoapUI Pro GUI.

 

Hello,

 

This error occurred when the opponent was forcibly terminated without calling close() in my case. How can I fix it? I can't find the explanation though on Stackoverflow (used tags: java, sockets).

Highlighted
Community Manager

Re: ERROR:java.net.SocketException: Connection reset

Hi @UrsBucher! Could you create a new topic and provide a detailed description of your case? This thread seems to be very old. Thank you. 


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors