AnsweredAssumed Answered

Reconnection Error Stream Management

Question asked by _Nico on Jul 21, 2016
Latest reply on Sep 1, 2016 by _Nico

Hello everybody,

I discovered a really big problem (probably mine?) about the XMPP reconnection process in smack library v4.1.5 (Android) and openfire v4.0.1. I activated the stream management on the client in this way:


and activated the automatic reconnection in this way:


After the first successfull connection and login, when the internet connection goes down and the reconnection process starts I get the following error:

W/AbstractXMPPConnection: Connection closed with error org.jivesoftware.smack.XMPPException$StreamErrorException: conflict You can read more about the meaning of this stream error at <stream:error><conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error> at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets( at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300( at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$

The reconnection manager connects and authenticates very well (It sends also the previous unacknowledged message) but then I receive the previous error!

Someone could help me in understanding what is wrong? Or how to resume a stream without this error?