java.net.SocketException

Connection reset by peer: socket write error

Samebug tips13

Client closed the websocket connection (safe to ignore)

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Stack trace

  • 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 java.net.SocketOutputStream.write(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 sun.security.ssl.AppOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.write(Unknown Source) at java.io.FilterOutputStream.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 org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) 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)

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

Unknown visitor
Unknown visitorOnce,
Alireza MohamadiAlireza Mohamadi
2 times, last one
kkanddakkandda
3 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
229 more bugmates