org.jivesoftware.smack.SmackException$ConnectionException

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

    Jenkins jabber plugin fails on packet write

    Stack Overflow | 1 year ago | iou1
    org.jivesoftware.smack.SmackException$ConnectionException
  2. 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
    org.jivesoftware.smack.SmackException$ConnectionException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 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
    org.jivesoftware.smack.SmackException$ConnectionException

    3 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. org.jivesoftware.smack.SmackException$ConnectionException

      No message provided

      at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration()
    2. org.jivesoftware.smack
      XMPPTCPConnection.connectInternal
      1. org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:436)
      2. org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:811)
      2 frames
    3. Smack
      XMPPConnection.connect
      1. org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:396)
      1 frame
    4. Hudson Jabber notifier plugin
      JabberIMConnectionProvider.createConnection
      1. hudson.plugins.jabber.im.transport.JabberIMConnection.createConnection(JabberIMConnection.java:409)
      2. hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:189)
      3. hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42)
      3 frames
    5. Hudson instant-messaging plugin
      IMConnectionProvider$ConnectorRunnable.run
      1. hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:59)
      2. hudson.plugins.im.IMConnectionProvider.access$500(IMConnectionProvider.java:16)
      3. hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:165)
      3 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame