在执行基于GCM XMPP的应用程序服务器时,无法将XMPP服务器与smack:EOF异常连接 [英] Could Not Connect XMPP Server with smack : EOF Exception when implementing GCM XMPP-based App Server
问题描述
java.io.EOFException: no more data available - expected end tag </stream:stream> to close start tag <stream:stream> from line 1, parser stopped on END_TAG seen ...</mechanisms></stream:features>... @1:344
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3035)
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.PacketReader.parsePackets(PacketReader.java:279)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
//资源: https:// developer .android.com / google / gcm / ccs.html#实施
我已经尝试了android网站中给出的确切代码,但它是抛出文件异常的结尾,我认为这是MXParser中的一些错误(虽然不太确定)。如果smack XMPP库是问题,请问有没有其他的xmpp库可以用于GCM CCS?任何人都可以帮我解决这个问题。在下面的图片中,您可以看到终端流标签没有关闭,但这是我如何接收数据包。
I have tried the exact code which is given in the android website, but it is throwing the end of file exception which i am thinking as some bug in MXParser(not quite sure though). If smack XMPP library is the problem, Is there any other xmpp library which i can use for GCM CCS ? Could any one please help me fix this . In the below image you can see the end stream tag is not closed but this is how i am receiving the packets.
发送和接收数据包
输出窗口:
sent and received packets Output windows:
推荐答案
出于某种原因,我重新启动了机器,并且它自己被修复了。
For some reason, I have restarted the machine and it got fixed by itself
这篇关于在执行基于GCM XMPP的应用程序服务器时,无法将XMPP服务器与smack:EOF异常连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!