0 Replies Latest reply on Feb 22, 2017 4:28 AM by George

    java.net.SocketException: Connection reset

    George

      I'm using smack to connect to the hipchat server. The xmpp connection throws the following error every few minutes and then reconnects to the server. What's the cause of this?

       

      xmlns='jabber:iq:last' seconds='900'/><delay xmlns='urn:xmpp:delay' stamp='2017-02-22T11:48:07Z'/><x xmlns='http://hipchat.com'><client_type>http://hipchat.com/client/mac/macweb</client_type></x></presence>

      Smack Packet Reader (0), handling exception: java.net.SocketException: Connection reset

      %% Invalidated:  [Session-1, TLS_RSA_WITH_AES_128_CBC_SHA256]

      Smack Packet Reader (0), SEND TLSv1.2 ALERT:  fatal, description = unexpected_message

      Smack Packet Reader (0), WRITE: TLSv1.2 Alert, length = 64

      Smack Packet Reader (0), Exception sending alert: java.net.SocketException: Broken pipe (Write failed)

      Smack Packet Reader (0), called closeSocket()

      Smack Packet Writer (0), called close()

      Smack Packet Writer (0), called closeInternal(true)

      Smack Packet Reader (0), called close()

      Smack Packet Reader (0), called closeInternal(true)

      22-Feb-2017 11:48:41.065 WARNING [Smack Packet Reader (0)] org.jivesoftware.smack.AbstractXMPPConnection.callConnectionClosedOnErrorListen er Connection closed with error

      java.net.SocketException: Connection reset

        at java.net.SocketInputStream.read(SocketInputStream.java:210)

        at java.net.SocketInputStream.read(SocketInputStream.java:141)

        at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)

        at sun.security.ssl.InputRecord.read(InputRecord.java:503)

        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)

        at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:930)

        at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)

        at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)

        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)

        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)

        at java.io.InputStreamReader.read(InputStreamReader.java:184)

        at java.io.BufferedReader.fill(BufferedReader.java:161)

        at java.io.BufferedReader.read1(BufferedReader.java:212)

        at java.io.BufferedReader.read(BufferedReader.java:286)

        at org.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:41)

        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.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:1177)

        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPCon nection.java:956)

        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:971)

        at java.lang.Thread.run(Thread.java:745)