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

Jenkins JIRA | Luke Sydenham | 1 year ago
  1. 0

    Jenkins jabber plugin fails on packet write

    Stack Overflow | 1 year ago | iou1
    java.net.SocketException: Connection reset by peer: socket write error
  2. 0

    User list for the Hudson continuous build server.

    gmane.org | 1 year ago
    java.net.SocketException: Connection reset by peer: socket write error
  3. 0

    Jenkins - 1.6.22 Jabber plugin - 1.3.5 IM plugin - 1.3.5 Every now and then I'm getting a socket closure in the jenkins log and jenkins can no longer publish build events to our chat room on our ejabberd server. Also, there is another error message in the log when it attempts to reconnect. The error log (stack trace)in jenkins looks like... Exception writing closing stream element 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 sun.nio.cs.StreamEncoder.writeBytes(Unknown Source) at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source) at sun.nio.cs.StreamEncoder.implFlush(Unknown Source) at sun.nio.cs.StreamEncoder.flush(Unknown Source) at java.io.OutputStreamWriter.flush(Unknown Source) at java.io.BufferedWriter.flush(Unknown Source) at java.io.FilterWriter.flush(Unknown Source) at org.jivesoftware.smack.tcp.PacketWriter.writePackets(PacketWriter.java:190) at org.jivesoftware.smack.tcp.PacketWriter.access$000(PacketWriter.java:40) at org.jivesoftware.smack.tcp.PacketWriter$1.run(PacketWriter.java:77) Aug 04, 2015 10:49:20 AM WARNING org.jivesoftware.smack.XMPPConnection callConnectionClosedOnErrorListener Connection closed with error java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at sun.security.ssl.InputRecord.readFully(Unknown Source) at sun.security.ssl.InputRecord.read(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at sun.security.ssl.AppInputStream.read(Unknown Source) at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) at sun.nio.cs.StreamDecoder.implRead(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Unknown Source) at java.io.BufferedReader.fill(Unknown Source) at java.io.BufferedReader.read1(Unknown Source) at java.io.BufferedReader.read(Unknown Source) at hudson.plugins.jabber.im.LoggingFilterReader.read(LoggingFilterReader.java:29) at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:291) at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47) at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81) And the reconnect attempt error (stack trace) looks like: Aug 04, 2015 10:49:50 AM INFO hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run Trying to reconnect Aug 04, 2015 10:49:50 AM INFO hudson.plugins.jabber.im.transport.JabberIMConnection createConnection Trying to connect to XMPP on /britishgas.co.uk Aug 04, 2015 10:50:11 AM WARNING hudson.plugins.jabber.im.transport.JabberIMConnection createConnection org.jivesoftware.smack.SmackException$ConnectionException at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:436) at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:811) at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396) at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:409) at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:189) at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:59) at hudson.plugins.im.IMConnectionProvider.access$500(IMConnectionProvider.java:16) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:165) at java.lang.Thread.run(Unknown Source)

    Jenkins JIRA | 1 year ago | Luke Sydenham
    java.net.SocketException: Connection reset by peer: socket write error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins - 1.6.22 Jabber plugin - 1.3.5 IM plugin - 1.3.5 Every now and then I'm getting a socket closure in the jenkins log and jenkins can no longer publish build events to our chat room on our ejabberd server. Also, there is another error message in the log when it attempts to reconnect. The error log (stack trace)in jenkins looks like... Exception writing closing stream element 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 sun.nio.cs.StreamEncoder.writeBytes(Unknown Source) at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source) at sun.nio.cs.StreamEncoder.implFlush(Unknown Source) at sun.nio.cs.StreamEncoder.flush(Unknown Source) at java.io.OutputStreamWriter.flush(Unknown Source) at java.io.BufferedWriter.flush(Unknown Source) at java.io.FilterWriter.flush(Unknown Source) at org.jivesoftware.smack.tcp.PacketWriter.writePackets(PacketWriter.java:190) at org.jivesoftware.smack.tcp.PacketWriter.access$000(PacketWriter.java:40) at org.jivesoftware.smack.tcp.PacketWriter$1.run(PacketWriter.java:77) Aug 04, 2015 10:49:20 AM WARNING org.jivesoftware.smack.XMPPConnection callConnectionClosedOnErrorListener Connection closed with error java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at sun.security.ssl.InputRecord.readFully(Unknown Source) at sun.security.ssl.InputRecord.read(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source) at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source) at sun.security.ssl.AppInputStream.read(Unknown Source) at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) at sun.nio.cs.StreamDecoder.implRead(Unknown Source) at sun.nio.cs.StreamDecoder.read(Unknown Source) at java.io.InputStreamReader.read(Unknown Source) at java.io.BufferedReader.fill(Unknown Source) at java.io.BufferedReader.read1(Unknown Source) at java.io.BufferedReader.read(Unknown Source) at hudson.plugins.jabber.im.LoggingFilterReader.read(LoggingFilterReader.java:29) at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144) at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:291) at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47) at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81) And the reconnect attempt error (stack trace) looks like: Aug 04, 2015 10:49:50 AM INFO hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run Trying to reconnect Aug 04, 2015 10:49:50 AM INFO hudson.plugins.jabber.im.transport.JabberIMConnection createConnection Trying to connect to XMPP on /britishgas.co.uk Aug 04, 2015 10:50:11 AM WARNING hudson.plugins.jabber.im.transport.JabberIMConnection createConnection org.jivesoftware.smack.SmackException$ConnectionException at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:436) at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:811) at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396) at hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:409) at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:189) at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:59) at hudson.plugins.im.IMConnectionProvider.access$500(IMConnectionProvider.java:16) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:165) at java.lang.Thread.run(Unknown Source)

    Jenkins JIRA | 1 year ago | Luke Sydenham
    java.net.SocketException: Connection reset by peer: socket write error
  6. 0

    Prevent dropping a persistent connection

    Stack Overflow | 2 years ago | martez
    org.postgresql.util.PSQLException: An I/O error occured while sending to the backend.

  1. kkandda 3 times, last 7 months ago
  2. nirvanarico 1 times, last 9 months ago
  3. linxiaolong 1 times, last 3 weeks ago
  4. Tahir 11 times, last 1 month ago
  5. serious2monkeys 6 times, last 1 month ago
5 more registered users
89 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketException

    Connection reset by peer: socket write error

    at java.net.SocketOutputStream.socketWrite0()
  2. Java RT
    SocketOutputStream.write
    1. java.net.SocketOutputStream.socketWrite0(Native Method)
    2. java.net.SocketOutputStream.socketWrite(Unknown Source)
    3. java.net.SocketOutputStream.write(Unknown Source)
    3 frames
  3. Java JSSE
    AppOutputStream.write
    1. sun.security.ssl.OutputRecord.writeBuffer(Unknown Source)
    2. sun.security.ssl.OutputRecord.write(Unknown Source)
    3. sun.security.ssl.SSLSocketImpl.writeRecordInternal(Unknown Source)
    4. sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    5. sun.security.ssl.AppOutputStream.write(Unknown Source)
    5 frames
  4. Java RT
    FilterWriter.flush
    1. sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)
    2. sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)
    3. sun.nio.cs.StreamEncoder.implFlush(Unknown Source)
    4. sun.nio.cs.StreamEncoder.flush(Unknown Source)
    5. java.io.OutputStreamWriter.flush(Unknown Source)
    6. java.io.BufferedWriter.flush(Unknown Source)
    7. java.io.FilterWriter.flush(Unknown Source)
    7 frames
  5. org.jivesoftware.smack
    PacketWriter$1.run
    1. org.jivesoftware.smack.tcp.PacketWriter.writePackets(PacketWriter.java:190)
    2. org.jivesoftware.smack.tcp.PacketWriter.access$000(PacketWriter.java:40)
    3. org.jivesoftware.smack.tcp.PacketWriter$1.run(PacketWriter.java:77)
    3 frames