Receiving new Spark message opens window but doesn't display message

I did a search and replace to replace the name of the server that Open Fire is installed on to OpenFireServer, but Domain is just how it is in the logs. We have only one domain and our openfire server shouldn’t be trying to contact another server or domain. I’ll have to look into that to figure out what is going on.

Ok, thank you. But I’m sorry, I don’t understand the fix. Is there a new version of Spark with that change rolled into it?

A link will be ready in few minutes

Awesome, thank you!

Here’s the build including the patch http://download.igniterealtime.org/spark/dailybuilds/spark_2_8_0_893.exe

I’ve got the latest build installed now. Here are the raw packets received from a message that again didn’t show in my chat window, but did make my chat window pop up and flash. The second message that she sent me, that you see at the end, did appear in the chat window:

<iq type="get" id="273-41011" from="OpenFireServer" to="gretchen@OpenFireServer/Spark 2.6.3"><ping xmlns="urn:xmpp:ping"/></iq>
<iq to="gretchen@OpenFireServer/Spark 2.6.3" id="yHC31-25939" type="get" from="taline@OpenFireServer/Spark 2.6.3"><query xmlns="jabber:iq:last"/></iq>
<iq to="gretchen@OpenFireServer/Spark 2.6.3" id="yHC31-25941" type="get" from="taline@OpenFireServer/Spark 2.6.3"><query xmlns="jabber:iq:last"/></iq>
<message to="gretchen@OpenFireServer" id="yHC31-25943" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25944" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25945" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<presence id="VEU93-10" from="angel@OpenFireServer/Spark" to="gretchen@OpenFireServer"><status>Online</status><priority>1</priority><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.igniterealtime.org/projects/smack" ver="TJuVIXqTCVfJSthaPu4MtTbaf9A="/></presence>
<message to="gretchen@OpenFireServer" id="yHC31-25947" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25948" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><paused xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25949" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25950" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25951" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><paused xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25952" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25953" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25954" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25955" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><paused xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25956" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25957" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25958" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25959" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><paused xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25960" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25961" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25962" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25963" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><body>hi - can we try changing the battery to Michael's keyboard? We'll have to test it out though before giving it back lol</body><thread>Kb9PBC</thread><x xmlns="jabber:x:event"><offline/><composing/></x><active xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25965" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><paused xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25966" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25967" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25968" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><paused xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25969" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25970" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25971" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25972" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><body>Unless you and Kar have changed it recently</body><thread>Kb9PBC</thread><x xmlns="jabber:x:event"><offline/><composing/></x><active xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer" id="yHC31-25974" type="chat" from="taline@OpenFireServer/Spark 2.6.3"><thread>Kb9PBC</thread><paused xmlns="http://jabber.org/protocol/chatstates"/></message>

Bah, I had hoped that your problem would have been resolved with the new build. Apparently not.

This new build did improve logging. Does this version write anything related to this issue in the Spark log files?

One last thing that you could try is to start Spark from the command line / dosshell. There’s a chance that an error is printed to the console, instead of the error log. Perhaps that could give us a new insights.

I was hoping this would fix it too! But I suppose having the problem happen fairly consistently to me, and not very often to any of my users, is the best possible troubleshooting scenario.

Nothing relevant in the spark log files. I’ll give running spark from the command line a shot.

Nothing printed to the console when it happens.

I’m running out of ideas, sadly. As long as there’s no way for me to reproduce this problem, it’s going to be hard to debug it.

You could try switching off plugins that you might have installed, toggle some settings, see if that makes a difference. Perhaps you’re lucky and find a cause that way. If your users don’t have this problem, then what’s different between your client and theirs?

My users have the same setup that I do. Some of them are having this problem, I just seem to be the only person having it happen consistently.

So you think an openfire plugin could be causing the issue? I’ll try turning those off one at a time.

No, I’d be surprised if it’s anything outside of Spark. Your client receives the message, it ‘simply’ does not display it. Spark has plugins of its own - I was referring to those.

We don’t use any spark plugins. So I’m stumped.

Are you making use of OTR or Translator? (if you don’t know what it is, then probably not).

I found one other occurrence of the problem that’s described in https://issues.igniterealtime.org/browse/SPARK-1798, but it appears to be limited to those two features.

No, we don’t use either of those.

Harhg. Would you be able to hook on a Java debugger and see what’s going on? I’m at a point where I don’t know what to recommend other than have an on-site Java developer debug your client…

Have you tried installing Spark on another computer, and log in with your credentials there - see if you can replicate it as consistently? Straws…

In any case, it’s around midnight here - I’m turning in. Hopefully, the morning comes with new insights…

Definitely go get some rest. I really appreciate all of your work on this. I’ll give running Spark on a different machine with my credentials a shot. If that doesn’t work, I’ll try some java debugging since I’ve done a little bit of java work myself. I’ll post back if I can figure anything out.

When wroot finds the time to merge my new changes at SPARK-1798: Handle exception thrown by eventhandler. by guusdk · Pull Request #217 · igniterealtime/Spark · GitHub and creates a new download, you’ll get a client that does a better job at logging errors. Perhaps that will tell us something.

New build http://download.igniterealtime.org/spark/dailybuilds/spark_2_8_0_895.exe

So, Gretchen, you have to look in the logs for something relevant again with this build.

Btw, Guus, as Gretchen reported first, it started happening with 4.0.3. I have seen something similar just once and it was also after 4.0.3 upgrade. So this might still be related to some change in Openfire. It also happens with 2.7.7, so it wasn’t Smack 4 update.

I now have Spark 2.8.0.895 installed. Here’s another excerpt from my spark raw packets received around another message that didn’t show in my spark window. (The message itself is just “Sure” because that person was responding to a spark I’d sent him before I installed the new version).

<iq type="get" id="713-50216" from="OpenFireServer" to="gretchen@OpenFireServer/Spark 2.6.3"><ping xmlns="urn:xmpp:ping"/></iq>
<presence id="I6323-10" from="nancy@OpenFireServer/Spark 2.6.3" to="gretchen@OpenFireServer"><status>Online</status><priority>1</priority><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.igniterealtime.org/projects/smack" ver="TJuVIXqTCVfJSthaPu4MtTbaf9A="/></presence>
<presence id="8Gm29-10" from="angel@OpenFireServer/Spark" to="gretchen@OpenFireServer"><status>Online</status><priority>1</priority><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.igniterealtime.org/projects/smack" ver="TJuVIXqTCVfJSthaPu4MtTbaf9A="/></presence>
<presence id="719A1-10" from="andy@OpenFireServer/Spark 2.6.3" to="gretchen@OpenFireServer"><status>Online</status><priority>1</priority><c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.igniterealtime.org/projects/smack" ver="TJuVIXqTCVfJSthaPu4MtTbaf9A="/></presence>
<message to="gretchen@OpenFireServer/Spark 2.6.3" id="719A1-1777" type="chat" from="andy@OpenFireServer/Spark 2.6.3"><thread>HcNo2r</thread><composing xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer/Spark 2.6.3" id="719A1-1778" type="chat" from="andy@OpenFireServer/Spark 2.6.3"><body>Sure</body><thread>HcNo2r</thread><x xmlns="jabber:x:event"><offline/><composing/></x><active xmlns="http://jabber.org/protocol/chatstates"/></message>
<message to="gretchen@OpenFireServer/Spark 2.6.3" id="719A1-1780" type="chat" from="andy@OpenFireServer/Spark 2.6.3"><thread>HcNo2r</thread><paused xmlns="http://jabber.org/protocol/chatstates"/></message>

Also, while my spark error log is silent, my warning log has these warnings:

WARNING: chatRoomActivated:  andy@OpenFireServer
Sep 09, 2016 2:47:21 PM org.jivesoftware.spark.util.log.Log warning
WARNING: chatRoomOpened:  andy@OpenFireServer
Sep 09, 2016 2:58:18 PM org.jivesoftware.spark.util.log.Log warning
WARNING: userHasJoined:  andy@OpenFireServer Spark 2.6.3
Sep 09, 2016 2:58:24 PM org.jivesoftware.spark.util.log.Log warning
WARNING: userHasJoined:  andy@OpenFireServer Spark 2.6.3