java.net.SocketException: Connection reset


Samebug tips

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.


7 months ago
Expert tip

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3


7 months ago
Expert tip

Solutions on the web

Solution icon of web
Connection reset

Solution icon of terracotta
Connection reset

Solution icon of coderanch
via Coderanch by dinesh Venkatesan, 10 months ago
Connection reset

Solution icon of coderanch
via Coderanch by Marembo Ochieng', 10 months ago
Connection reset

Solution icon of coderanch
via Coderanch by Ori Brill, 10 months ago
Connection reset

Solution icon of coderanch
via Coderanch by Pooja psharma, 10 months ago
Connection reset

Solution icon of coderanch
via Coderanch by Pooja psharma, 10 months ago
Connection reset

Solution icon of coderanch
via Coderanch by Charles Sexton, 1 year ago
Connection reset

Solution icon of coderanch
via Coderanch by jaya kemmannu, 10 months ago
Connection reset

Solution icon of bugzilla
via Eclipse Bugzilla by jens.bensing.ext, 1 year ago
Connection reset

Stack trace

java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:209)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at java.net.SocketInputStream.read(SocketInputStream.java:223)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 1 year ago
185 times, 4 hours ago
13 times, 1 day ago
1345 times, 1 day ago
3 times, 6 days ago
465 more bugmates