powered by Jive Software

Connection closed on error, Parser got END_DOCUMENT event


E/Connection Closed Error: true
08-06 11:50:13.111 20095-20212/com.death.dummy W/System.err: org.jivesoftware.smack.SmackException: Parser got END_DOCUMENT event. This could happen e.g. if the server closed the connection without sending a closing stream element
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1245)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:1000)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1016)
at java.lang.Thread.run(Thread.java:764)

whenever I try to connect to xmpp server, I get this error, and this is random in nature, sometimes connection is flawless, and sometimes this error comes up. unable to understand why this error comes up, if it is related to server or client code, then it should be persistent in nature.


@Flow anything?


I am also facing the same issue with smack 4.1