正在使用的XMPP库:
"org.igniterealtime.smack" % "smack-java7" % "4.1.8",
"org.igniterealtime.smack" % "smack-tcp" % "4.1.8",
"org.igniterealtime.smack" % "smack-core" % "4.1.8",
"org.igniterealtime.smack" % "smack-extensions" % "4.1.8",
嗨,
我们有一个连接到FCM XMPP服务器的XMPP服务器,有时我们有时会从XMPP连接中看到以下错误:
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] Nov 30, 2018 7:08:38 PM org.jivesoftware.smack.AbstractXMPPConnection callConnectionClosedOnErrorListener
WARNING: Connection closed with error
java.io.EOFException: input contained no data
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1177)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:956)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:971)
at java.lang.Thread.run(Thread.java:745)
2018-11-30T19:08:38.306+05:30 PROCESSORS [ERROR] XMPPConnectionListener -> connectionClosedOnError: null input contained no data
java.io.EOFException: input contained no data
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) ~[stormjar.jar:?]
at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) ~[stormjar.jar:?]
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410) ~[stormjar.jar:?]
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) ~[stormjar.jar:?]
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) ~[stormjar.jar:?]
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1177) [stormjar.jar:?]
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:956) [stormjar.jar:?]
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:971) [stormjar.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_60]
2018-11-30T19:08:38.306+05:30 STDIO [INFO] 07:08:38 PM XMPPConnection closed due to an exception (1)
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] java.io.EOFException: input contained no data
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003)
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1177)
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:956)
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:971)
2018-11-30T19:08:38.306+05:30 STDIO [ERROR] at java.lang.Thread.run(Thread.java:745)
我无法找到这些错误的原因是什么,为什么会出现这些错误,因为大多数情况下相同的代码都可以工作,但是有时候我突然开始收到此错误。我还看到相同的报告here很久以前却没有解决方法。