Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29802

jabber plugin disconnects from server with a socket failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • None
    • Windows Server 2012 R2
      jenkins 1.622
      jabber-plugin 1.3.5
      instant-messenging-plugin 1.3.5

      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)

            flow Florian Schmaus
            l_syd Luke Sydenham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: