java.net.SocketTimeoutException: Read timed out

Jenkins JIRA | Luke Sydenham | 1 year ago
  1. 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.SocketTimeoutException: Read timed out
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  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.SocketTimeoutException: Read timed out
  4. 0

    Not sure what this is, said fault in it :/

    GitHub | 3 years ago | tronman2020
    java.net.SocketTimeoutException: Read timed out
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.SocketTimeoutException

    Read timed out

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(Unknown Source)
    3. java.net.SocketInputStream.read(Unknown Source)
    3 frames
  3. Java JSSE
    AppInputStream.read
    1. sun.security.ssl.InputRecord.readFully(Unknown Source)
    2. sun.security.ssl.InputRecord.read(Unknown Source)
    3. sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    4. sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
    5. sun.security.ssl.AppInputStream.read(Unknown Source)
    5 frames
  4. Java RT
    BufferedReader.read
    1. sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
    2. sun.nio.cs.StreamDecoder.implRead(Unknown Source)
    3. sun.nio.cs.StreamDecoder.read(Unknown Source)
    4. java.io.InputStreamReader.read(Unknown Source)
    5. java.io.BufferedReader.fill(Unknown Source)
    6. java.io.BufferedReader.read1(Unknown Source)
    7. java.io.BufferedReader.read(Unknown Source)
    7 frames
  5. Hudson Jabber notifier plugin
    LoggingFilterReader.read
    1. hudson.plugins.jabber.im.LoggingFilterReader.read(LoggingFilterReader.java:29)
    1 frame
  6. MXP1: Xml Pull Parser 3rd Edition (XPP3)
    MXParser.next
    1. org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992)
    2. org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
    3. org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)
    4. org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
    4 frames
  7. org.jivesoftware.smack
    PacketReader$1.run
    1. org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:291)
    2. org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47)
    3. org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81)
    3 frames