Hello everyone,
I have a problem with org.xmlpull.v1.XmlPullParserException.
When receiving a lot of offline messages(with custom offline extension) at the same time, in one out of the ten cases Smack fails to parse packets as they are "corrupted" and i don't know why.
here is the stacktrace:
aug 25, 2015 11:17:18 AM org.jivesoftware.smack.AbstractXMPPConnection callConnectionClosedOnErrorListener
WARNING: Connection closed with error
org.xmlpull.v1.XmlPullParserException: end tag name </message> must match start tag name <body> from line 1 (position: END_TAG seen ...<request xmlns="urn:xmpp:receipts"/></message>... @1:19741)
at org.xmlpull.mxp1.MXParser.parseEndTag(MXParser.java:1689)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1172)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at org.jivesoftware.smack.util.PacketParserUtils.parseContentDepthWithRoundtrip(Pa cketParserUtils.java:510)
at org.jivesoftware.smack.util.PacketParserUtils.parseContentDepth(PacketParserUti ls.java:429)
at org.jivesoftware.smack.util.PacketParserUtils.parseContentDepth(PacketParserUti ls.java:401)
at org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessStanza(AbstractXMP PConnection.java:955)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$400(XMPPTCPConnection.java: 139)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:980)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPCon nection.java:935)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:950)
at java.lang.Thread.run(Thread.java:745)
i found similar threads "Random" XmlPullParserException
Frequent XmlPullParserException in Smack 3.2
which unfortunately were not solved, in the last one user Flow proposed using callback and to get unparseable stanza, i registered it, however unfortunately it didn't trigger.
Any ideas on this issue?
Thanks in advance.