Spark open duplicated chat tab

One of the accounts is reveiving duplicated messages from the same person, opening 2 tabs of the same contact with the same message… what would be the error or mismatch configuration? anyone knows?

Here it is an print of the problem: https://ibb.co/dfz6aT

Thank You

Which version of Spark and what is used for the server? Openfire? What version of Openfire? Is it only happening with one contact or with every contact? You may try to make a fresh profile for that user and see if the problem goes away.

Spark profile is here. You need to stop Spark, delete it and start Spark again. Chat history will be lost for this user.
C:\Users\username\AppData\Roaming\Spark

Hi wroot

The version of openfire is 4.2.1 and spark is 2.6.3. About the profile i allready do that but still the same problem. It happens with ramdom contacts but only on this particular PC…

Thank you

Well, that Spark version is very old. I suggest trying out the newest version.

Ok i will try and post new status soon. Thks.

If you do this, then do a clean uninstall and remove all old version files, also the user’s profile.

Hi woot, sorry about that but on the machine that i have the problem, i allready have the 2.8.3 version installed… my bad…

I try to unistall and reinstall and notthing… error comes up after past some days…

Thank you

What about the roster of this user? Maybe this user has a few contacts of Jenniffer in her contacts window? You can check the logs at C:\Users\User\AppData\Roaming\Spark\logs
There are a lot of log files there, look through all of them and paste here recent entries, when the issue happens.

hi wroot, she has a lot of contacts on here contact lists as show: https://ibb.co/jaUu0T

Here it is the erro.log of the supposed moment that happens the error:

jun 26, 2018 3:34:00 PM org.jivesoftware.spark.util.log.Log error
GRAVE: A MessageEventListener (‘org.jivesoftware.spark.otrplug.impl.OTRSession$2@cf7b1d’) threw an exception while processing an incoming message (from ‘diretora@jonascontabilidade.net/Xabber_qD7pmf05’).
java.lang.NullPointerException
at org.jivesoftware.spark.otrplug.impl.OTRSession$2.receivingMessage(OTRSession.java:145)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.fireReceivingIncomingMessage(ChatRoomImpl.java:548)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.lambda$processPacket$0(ChatRoomImpl.java:388)
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)

jun 26, 2018 3:35:37 PM org.jivesoftware.spark.util.log.Log error
GRAVE: A MessageEventListener (‘org.jivesoftware.spark.otrplug.impl.OTRSession$2@cf7b1d’) threw an exception while processing an incoming message (from ‘diretora@jonascontabilidade.net/Spark’).
java.lang.NullPointerException
at org.jivesoftware.spark.otrplug.impl.OTRSession$2.receivingMessage(OTRSession.java:145)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.fireReceivingIncomingMessage(ChatRoomImpl.java:548)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.lambda$processPacket$0(ChatRoomImpl.java:388)
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)

jun 26, 2018 3:35:49 PM org.jivesoftware.spark.util.log.Log error
GRAVE: A MessageEventListener (‘org.jivesoftware.spark.otrplug.impl.OTRSession$2@cf7b1d’) threw an exception while processing an incoming message (from ‘diretora@jonascontabilidade.net/Xabber_qD7pmf05’).
java.lang.NullPointerException
at org.jivesoftware.spark.otrplug.impl.OTRSession$2.receivingMessage(OTRSession.java:145)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.fireReceivingIncomingMessage(ChatRoomImpl.java:548)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.lambda$processPacket$0(ChatRoomImpl.java:388)
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)

jun 26, 2018 3:37:00 PM org.jivesoftware.spark.util.log.Log error
GRAVE: A MessageEventListener (‘org.jivesoftware.spark.otrplug.impl.OTRSession$2@cf7b1d’) threw an exception while processing an incoming message (from ‘diretora@jonascontabilidade.net/Xabber_qD7pmf05’).
java.lang.NullPointerException
at org.jivesoftware.spark.otrplug.impl.OTRSession$2.receivingMessage(OTRSession.java:145)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.fireReceivingIncomingMessage(ChatRoomImpl.java:548)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.lambda$processPacket$0(ChatRoomImpl.java:388)
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)

jun 26, 2018 3:44:46 PM org.jivesoftware.spark.util.log.Log error
GRAVE: A MessageEventListener (‘org.jivesoftware.spark.otrplug.impl.OTRSession$2@1353c0b’) threw an exception while processing an incoming message (from ‘diretor@jonascontabilidade.net/Spark 2.6.3’).
java.lang.NullPointerException
at org.jivesoftware.spark.otrplug.impl.OTRSession$2.receivingMessage(OTRSession.java:145)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.fireReceivingIncomingMessage(ChatRoomImpl.java:548)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.lambda$processPacket$0(ChatRoomImpl.java:388)
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.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at org.jivesoftware.spark.filetransfer.ChatRoomTransferDecorator$1.finished(ChatRoomTransferDecorator.java:136)
at org.jivesoftware.spark.util.SwingWorker.lambda$null$0(SwingWorker.java:146)
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)

jun 26, 2018 3:45:00 PM org.jivesoftware.spark.util.log.Log error
GRAVE: A MessageEventListener (‘org.jivesoftware.spark.otrplug.impl.OTRSession$2@1353c0b’) threw an exception while processing an incoming message (from ‘diretor@jonascontabilidade.net/Spark 2.6.3’).
java.lang.NullPointerException
at org.jivesoftware.spark.otrplug.impl.OTRSession$2.receivingMessage(OTRSession.java:145)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.fireReceivingIncomingMessage(ChatRoomImpl.java:548)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.lambda$processPacket$0(ChatRoomImpl.java:388)
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.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at org.jivesoftware.spark.filetransfer.ChatRoomTransferDecorator$1.finished(ChatRoomTransferDecorator.java:136)
at org.jivesoftware.spark.util.SwingWorker.lambda$null$0(SwingWorker.java:146)
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)

jun 26, 2018 3:45:20 PM org.jivesoftware.spark.util.log.Log error
GRAVE: A MessageEventListener (‘org.jivesoftware.spark.otrplug.impl.OTRSession$2@1353c0b’) threw an exception while processing an incoming message (from ‘diretor@jonascontabilidade.net/Spark 2.6.3’).
java.lang.NullPointerException
at org.jivesoftware.spark.otrplug.impl.OTRSession$2.receivingMessage(OTRSession.java:145)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.fireReceivingIncomingMessage(ChatRoomImpl.java:548)
at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.lambda$processPacket$0(ChatRoomImpl.java:388)
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)

Thank you

Well, not so many contacts after all. We used to have ~150 and more. Are you using shared groups or do every user adds contacts manually? You can try deleting this user and creating it again on the server, so it would get fresh roster.

Error in the logs is related to the OTR plugin (encryption plugin). Are you using it? You may try to disable it. Not just on this side, but also for users mentioned in the error.

I see that other users uses 2.6.3. You can try downgrading this user to also use 2.6.3. Maybe this is some incompatibility issues between versions. Or you can upgrade every other user to 2.8.3.

Only guessing here. Have no solid idea on what is happening here.

Hi Wroot, sorry about the delay.

Yes, we use sharede groups and no, the users can´t add contacts manually. I´m no try to delete this particular user because we have a fresh new server instalation and the error persist.

About the OTR we do not use, i will disable it.

I will upgrade others clients to see what happens…

Here is an example of what happens: https://preview.ibb.co/eH1NDd/spark_Tati.jpg

Thank You

You mean it was a completely fresh installation of the server, or you have reinstalled it and restored the database from backup. If it has the same database, it will still have the same issue. So you may still try to recreate this user.

Other than that i don’t have any other ideas. Well, you can try downgrading this user to 2.6.3 and check how it goes.