powered by Jive Software

Spark 2.9.0 after reconnecting, some users change their status to red

After reconnecting network, some users change their status to red.
And the second problem: After reconnecting the network, copies may appear in the list.

If the user was online, after reconnection, a copy of him in the list is created.

log from Spark:

рту 05, 2020 3:29:49 PM org.jivesoftware.spark.util.log.Log warning
WARNING: PrivacyManager#ensureGloballyInvisibleListExists: Could not create PrivacyList invisible
org.jivesoftware.smack.SmackException$NotConnectedException: The connection XMPPTCPConnection[testuser2@srv-chat.coleman.local/SERVER] (0) is no longer connected. done=true smResumptionPossible=false
	at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.throwNotConnectedExceptionIfDoneAndResumptionNotPossible(XMPPTCPConnection.java:1439)
	at org.jivesoftware.smack.tcp.XMPPTCPConnection.throwNotConnectedExceptionIfAppropriate(XMPPTCPConnection.java:374)
	at org.jivesoftware.smack.AbstractXMPPConnection.sendStanza(AbstractXMPPConnection.java:720)
	at org.jivesoftware.smack.AbstractXMPPConnection.createStanzaCollectorAndSend(AbstractXMPPConnection.java:844)
	at org.jivesoftware.smack.AbstractXMPPConnection.createStanzaCollectorAndSend(AbstractXMPPConnection.java:830)
	at org.jivesoftware.smackx.privacy.PrivacyListManager.setRequest(PrivacyListManager.java:255)
	at org.jivesoftware.smackx.privacy.PrivacyListManager.updatePrivacyList(PrivacyListManager.java:528)
	at org.jivesoftware.smackx.privacy.PrivacyListManager.createPrivacyList(PrivacyListManager.java:507)
	at org.jivesoftware.sparkimpl.plugin.privacy.PrivacyManager.ensureGloballyInvisibleListExists(PrivacyManager.java:501)
	at org.jivesoftware.sparkimpl.plugin.privacy.PrivacyManager.goToInvisible(PrivacyManager.java:418)
	at org.jivesoftware.spark.ui.status.StatusBar$1.doRun(StatusBar.java:145)
	at org.jivesoftware.spark.util.SwingTimerTask.run(SwingTimerTask.java:32)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Woooow!I reconnected to the network twice and now
what came of it:

How exactly did you create this scenario? Did you disconnect and reconnect to a wifi network? How long were you disconnected?

Duplicating seems similar to https://issues.igniterealtime.org/browse/SPARK-1628 but in your case they are online.

I tested in different scenarios and the result is the same everywhere. I was pulling out internet cables. I turned off the Internet adapter in the virtual machine. And also, when connecting via VPN, I turned off the VPN and thereby cut the connection.

I forgot to say that I set the following Contacts settings:
-Show empty groups
-Show offline users

and here are screenshots of how it all happens:

I installed Spark 2.9.0 build 513 April 22, 2018 (Smack 4.1.9) and it works fine when reconnecting to the network.
If i installed Spark 2.9.0 Oct 16, 2018(Smack 4.3.1) and it don’t and my connection was closed.

Unfortunately I no longer have Spark 2.9.0 builds.
But I think that the user list broke after the Smack 4.3.X update

I have created a new ticket for this and linked to the old one. This seems different enough and new https://issues.igniterealtime.org/browse/SPARK-2143
I also saw similar effect when turning off network in a VM with Spark, when it was then reconnecting.

I didn’t expect Spark 2.9.0 to come out so soon. Many thanks to the members of IgniteRealtime.
But the issue https://issues.igniterealtime.org/browse/SPARK-2143 is unfortunately not resolved, so I can’t use stable Spark 2.9.0.
Please pay attention to this problem.

hi, hasn’t anyone faced this problem anymore in spark 2.9.0, 2.9.1 and 2.9.2? :grinning: