Openfire with Smack disconnects with error : You acknowledged stanzas that we didn’t send

 

Problem: After connecting, openfire servers disconnects from Smack client giving an exception as below –

Connection XMPPTCPConnection[dhee@dheeyantra.com/bot] (0) closed w
ith error

org.jivesoftware.smack.XMPPException$StreamErrorException: undefined-condition You can read more about the meaning of this stream error at http://xmpp.org/rfcs/rfc6120
.html#streams-error-conditions
<stream:error><undefined-condition xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text>You acknowledged stanzas that we didn&apos;t send. Your Ack h: 11, our last stanz
a: 10</text></stream:error>
 at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1057) [smack-tcp-4.3.0.jar:4.3.0]

 

Fix:

  1. In Openfire admin too, go to Server Manager => Server Properties
  2. Set stream.management.active = false

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy This Password *

* Type Or Paste Password Here *

52,881 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>