XMPP “stream:error (conflict)” on login with (a)Smack

自闭症网瘾萝莉.ら 提交于 2019-12-30 04:24:05

问题


Currently i am working with xmpp/jabber chat for android.i just tried with Openfire and try to connect my jabber account.connection was successful.but i am not able to send any message.it shows some conflict error.please check the error log.give me a solution for this.

Initializing connection to server eworks port 5222
Connected: true
Creating entry for buddy 'testuser2' with name testuser2
Sending mesage 'Hello mate' to user testuser2@eworks
Buddy:testuser2 - Status:null
stream:error (conflict)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:306)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)

回答1:


A XMPP stream:error because of a conflict means that there is already a connection with the same full JID (that is bare JID and resource part).

Most XMPP servers are able to handle conflicts by re-assigning a different resource once a conflict is detected. This behavior can be configured.



来源:https://stackoverflow.com/questions/16077100/xmpp-streamerror-conflict-on-login-with-asmack

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!