AnsweredAssumed Answered

Lossing connection in android.

Question asked by AndDev on Dec 2, 2015
Latest reply on May 18, 2016 by Stefan hennemann

Hi i have a problem in my android app. It keep loosing connection and reconnect after a few seconds or minutes. I checked my android logs and get this message:

 

11-27 14:26:22.526: W/AbstractXMPPConnection(4852): Connection closed with error

11-27 14:26:22.526: W/AbstractXMPPConnection(4852): javax.net.ssl.SSLException: Read error: ssl=0x79667e40: I/O error during system call, Connection reset by peer

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at com.android.org.conscrypt.NativeCrypto.SSL_read(Native Method)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at com.android.org.conscrypt.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketIm pl.java:690)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at java.io.InputStream.read(InputStream.java:162)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:194)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:153)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at java.io.InputStreamReader.read(InputStreamReader.java:233)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at java.io.BufferedReader.read(BufferedReader.java:325)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at org.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:41)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at org.kxml2.io.KXmlParser.fillBuffer(KXmlParser.java:1506)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at org.kxml2.io.KXmlParser.peekType(KXmlParser.java:986)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at org.kxml2.io.KXmlParser.next(KXmlParser.java:346)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at org.kxml2.io.KXmlParser.next(KXmlParser.java:310)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:1165)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPCon nection.java:944)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:959)

11-27 14:26:22.526: W/AbstractXMPPConnection(4852):     at java.lang.Thread.run(Thread.java:841)

11-27 14:26:22.526: D/SMACK(4852): XMPPConnection closed due to an exception (0)

11-27 14:26:22.526: W/System.err(4852): javax.net.ssl.SSLException: Read error: ssl=0x79667e40: I/O error during system call, Connection reset by peer

11-27 14:26:22.526: W/System.err(4852):     at com.android.org.conscrypt.NativeCrypto.SSL_read(Native Method)

11-27 14:26:22.526: W/System.err(4852):     at com.android.org.conscrypt.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketIm pl.java:690)

11-27 14:26:22.526: W/System.err(4852):     at java.io.InputStream.read(InputStream.java:162)

11-27 14:26:22.526: W/System.err(4852):     at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:194)

11-27 14:26:22.536: W/System.err(4852):     at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:153)

11-27 14:26:22.536: W/System.err(4852):     at java.io.InputStreamReader.read(InputStreamReader.java:233)

11-27 14:26:22.536: W/System.err(4852):     at java.io.BufferedReader.read(BufferedReader.java:325)

11-27 14:26:22.536: W/System.err(4852):     at org.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:41)

11-27 14:26:22.536: W/System.err(4852):     at org.kxml2.io.KXmlParser.fillBuffer(KXmlParser.java:1506)

11-27 14:26:22.536: W/System.err(4852):     at org.kxml2.io.KXmlParser.peekType(KXmlParser.java:986)

11-27 14:26:22.536: W/System.err(4852):     at org.kxml2.io.KXmlParser.next(KXmlParser.java:346)

11-27 14:26:22.536: W/System.err(4852):     at org.kxml2.io.KXmlParser.next(KXmlParser.java:310)

11-27 14:26:22.536: W/System.err(4852):     at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:1165)

11-27 14:26:22.536: W/System.err(4852):     at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPCon nection.java:944)

11-27 14:26:22.536: W/System.err(4852):     at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:959)

11-27 14:26:22.536: W/System.err(4852):     at java.lang.Thread.run(Thread.java:841)

 

 

Can anyone explain me what is this error i get? The strange thing is that i have this problem only with android 4.4.2.

Outcomes