java.net.SocketException: Connection reset by peer: socket write error

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via github.com by Unknown author

Client closed the websocket connection (safe to ignore)

,
via GitHub by ritchieGitHub

Set larger socket timeout (or 0 to set no timeout).

Solutions on the web

via davmail by thefausap
, 1 year ago
Connection reset by peer: socket write error
via sourceforge.net by Unknown author, 2 years ago
via sourceforge.net by Unknown author, 1 year ago
via Stack Overflow by Alberto Brambilla
, 6 months ago
Connection reset by peer: socket write error
via Google Groups by Станиславский Константин, 1 year ago
Connection reset by peer: socket write error
via Stack Overflow by Ninad
, 2 years ago
Connection reset by peer: socket write error
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at sun.security.ssl.OutputRecord.writeBuffer(Unknown Source)
at sun.security.ssl.OutputRecord.write(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecordInternal(Unknown Source)
at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at java.io.BufferedOutputStream.write(Unknown Source)
at davmail.exchange.ews.EWSMethod$1.writeRequest(EWSMethod.java:127)
at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at davmail.exchange.ews.EwsExchangeSession.executeMethod(EwsExchangeSession.java:2223)
at davmail.exchange.ews.EwsExchangeSession.sendMessage(EwsExchangeSession.java:523)
at davmail.exchange.ews.EwsExchangeSession.sendMessage(EwsExchangeSession.java:539)
at davmail.exchange.ExchangeSession.sendMessage(ExchangeSession.java:1309)
at davmail.smtp.SmtpConnection.run(SmtpConnection.java:166)

Users with the same issue

Once, 17 minutes ago
4 times, 1 day ago
Once, 6 days ago
Once, 1 week ago
Once, 3 weeks ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.