The following was logged by Smack 4.4.0-alpha2 when the server disconnected Smack.
Smack first logs that it receives a closing element, then it logs “this could happen e.g. if the server closed the connection without sending a closing stream element”. Those two seem mutually exclusive. Does this hint at a larger issue?
Nov 15, 2019 8:27:48 PM org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader parsePackets INFO: XMPPTCPConnection[leela@laptop-guus/client-1] (0) received closing </stream> element. Server wants to terminate the connection, calling disconnect() 20:27:48.441 client-1: Send: <presence xmlns='jabber:client' id='TSVEF-15' type='unavailable'></presence> Nov 15, 2019 8:27:48 PM org.jivesoftware.smack.AbstractXMPPConnection waitForClosingStreamTagFromServer INFO: Exception while waiting for closing stream element from the server XMPPTCPConnection[leela@laptop-guus/client-1] (0) org.jivesoftware.smack.SmackException$SmackMessageException: Parser got END_DOCUMENT event. This could happen e.g. if the server closed the connection without sending a closing stream element at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1136) at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:882) at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:902) at java.lang.Thread.run(Thread.java:748)