Reputation: 191
The XMPP
connection keeps getting closed showing a conflict error
. What could be the reason for this behaviour? Please find the log.
12-02 18:20:58.105: W/XMPPConnection(20956): Connection closed with error
12-02 18:20:58.105: W/XMPPConnection(20956): stream:error (conflict)
12-02 18:20:58.105: W/XMPPConnection(20956): at org.jivesoftware.smack.tcp.PacketReader.parsePackets(PacketReader.java:226)
12-02 18:20:58.105: W/XMPPConnection(20956): at org.jivesoftware.smack.tcp.PacketReader.access$000(PacketReader.java:47)
12-02 18:20:58.105: W/XMPPConnection(20956): at org.jivesoftware.smack.tcp.PacketReader$1.run(PacketReader.java:81)
12-02 18:20:58.115: D/SMACK(20956): Connection closed due to an exception (24)
Using aSmack 8.4.0.5 jar.
Upvotes: 0
Views: 2740
Reputation: 41568
A "conflict" stream error usually means that another client has connected with the same username and resource. If you want both clients to be connected, you can use a random resource (or not specify any resource at all, in which case the server will generate one for you).
Upvotes: 1