Spark Chat Error

Spark 2.5.8 on Windows XP SP2, Openfire 3.4.4 on Windows Server 2003:

Clients periodically can not recieve or send messages correctly. When the recieve a message they get the notification, but the window is blank. When they attempt to send a message the text they type never leaves the typing area to the dialog area of the chat window. However the message is sent because the recipient does get it fine. The users have been using this version of spark without issues for weeks.

Attached is an error log of a machine that started doing this.
errors.log (9464 Bytes)

Here are some additional error and warning logs from another user experiencing this issue.
warn.log (62061 Bytes)
errors.log (9460 Bytes)

Continuing to see the error on random machines. I have since rebuilt the entire server. I also, have reinstalled spark on the client machines. There is no error in the server debug logs that corresponds to the error on the client. This is isolated to the clients. The error is identical on all clients that have the issue. Exiting spark and reloading it fixes it for a time.

The Error:

Feb 18, 2008 4:13:12 PM org.jivesoftware.spark.util.log.Log error

SEVERE: Error sending message

java.lang.NullPointerException

at java.util.Hashtable.put(Unknown Source)

at javax.swing.text.SimpleAttributeSet.addAttribute(Unknown Source)

at javax.swing.text.StyleConstants.setForeground(Unknown Source)

at org.jivesoftware.spark.ui.TranscriptWindow.insertMessage(TranscriptWindow.java: 167)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:262)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:248)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:223)

at org.jivesoftware.spark.ui.ChatRoom.checkForEnter(ChatRoom.java:466)

at org.jivesoftware.spark.ui.ChatRoom.access$100(ChatRoom.java:73)

at org.jivesoftware.spark.ui.ChatRoom$2.keyPressed(ChatRoom.java:251)

at java.awt.AWTEventMulticaster.keyPressed(Unknown Source)

at java.awt.Component.processKeyEvent(Unknown Source)

at javax.swing.JComponent.processKeyEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(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)

Brand new machine with fresh install of Spark 2.5.8 getting the error too:

Feb 22, 2008 10:34:11 AM org.jivesoftware.spark.util.log.Log error

SEVERE: Error sending message

java.lang.NullPointerException

at java.util.Hashtable.put(Unknown Source)

at javax.swing.text.SimpleAttributeSet.addAttribute(Unknown Source)

at javax.swing.text.StyleConstants.setForeground(Unknown Source)

at org.jivesoftware.spark.ui.TranscriptWindow.insertMessage(TranscriptWindow.java: 167)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:262)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:248)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:223)

at org.jivesoftware.spark.ui.ChatRoom.checkForEnter(ChatRoom.java:466)

at org.jivesoftware.spark.ui.ChatRoom.access$100(ChatRoom.java:73)

at org.jivesoftware.spark.ui.ChatRoom$2.keyPressed(ChatRoom.java:251)

at java.awt.AWTEventMulticaster.keyPressed(Unknown Source)

at java.awt.Component.processKeyEvent(Unknown Source)

at javax.swing.JComponent.processKeyEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(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)

This seems very sporatic. The problem is also spreading. More clients are reporting the issue, but it only happens about once a week for those affected. Some less some more.

Did you ever find a solution to your issue? My company is experiencing the exact same thing and we have yet to find a solution. Seeing how no one responded to your post yet leaves me feeling skeptical there is a fix.

So solution yet…

I have been searching but this was the first post i could find regarding this issue. Have you noticed any other threads pertaining to this? Its so spuratic i feel its a bug with the program.

i have exactly the same problem. it only happens on a few PCs (out of 100) and only sometimes… never found a solution for this.

I should mention that i have a customised version of spark (i added some new features, but they shouldn’t affect the chats)

I’m in the middle of installing 55 spark clients and 2 have popped up with this error in the first 10 installs. I’ll see if I can get a log,

TIA

This still happens even with the latest beta builds of spark. I have been able to get it to stop happening on a machine by deleting all files created for a user by spark. This includes the custom userdic.tlx.

This problem is so spuratic for our company i can not find any trends. I found some band-aids that seem to help some…

Reinstall spark - this will get rid of the problem for a while.

close spark and reopen - this is the easiet thing to do and evertime im having a sending issue this fixes it.

some other people on my team are convicnced that the latest version of Java helps too, however I have not seen any results related to just that.

Hopefully the bug will just eventually be fixed in a release of spark, not a huge problem but can be frustrating when people say they sent a message and you do not see it.

Any who, good luck to anyone else having these problems!

This is still occuring with the current bets build of 2.6.0. This is the only error still:

May 14, 2008 10:30:44 AM org.jivesoftware.spark.util.log.Log error

SEVERE:

java.lang.NullPointerException

at java.util.Hashtable.put(Unknown Source)

at javax.swing.text.SimpleAttributeSet.addAttribute(Unknown Source)

at javax.swing.text.StyleConstants.setForeground(Unknown Source)

at org.jivesoftware.spark.ui.TranscriptWindow.insertPrefixAndMessage(TranscriptWin dow.java:201)

at org.jivesoftware.sparkimpl.plugin.alerts.BroadcastPlugin.showAlert(BroadcastPlu gin.java:248)

at org.jivesoftware.sparkimpl.plugin.alerts.BroadcastPlugin.access$200(BroadcastPl ugin.java:69)

at org.jivesoftware.sparkimpl.plugin.alerts.BroadcastPlugin$5.run(BroadcastPlugin. java:198)

at java.awt.event.InvocationEvent.dispatch(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)

This is still occuring in the 2.6.0beta version of spark, and 3.5.1 of Openfire.

Some additional information has come to light though. When the user gets a blank window with a new message arrival and subsequently appears to not send correctly (the recipient does get the message, but it is not displayed in the dialog box). If history is enabled and the user quits spark then relaunches it, then initiates a chat with the person that they got the message from that was in error it will show in the history. Same for the sent messages that errored. So spark is receiving/sending the messages but the dialog window is malfunctioning.

Yeap. As i mentioned in my thread, closing and opening chat shows the message.

davidbacigalupo has an interesting thought about Java version. Though i’m installing with a bundled JRE, but maybe we should test deleting bundled jre folder and installing latest java jre.

For the first time ever my computer has now experienced this problem. Here is the spark error:

Jun 2, 2008 8:43:42 AM org.jivesoftware.spark.util.log.Log error

SEVERE: Unable to update avatar in Contact Item.

java.lang.NullPointerException

at javax.imageio.ImageIO.write(Unknown Source)

at org.jivesoftware.sparkimpl.profile.VCardManager.persistVCard(VCardManager.java: 621)

at org.jivesoftware.sparkimpl.profile.VCardManager.getVCard(VCardManager.java:427)

at org.jivesoftware.sparkimpl.profile.VCardManager.getAvatarURL(VCardManager.java: 580)

at org.jivesoftware.spark.ui.ContactItem.getAvatarURL(ContactItem.java:296)

at org.jivesoftware.spark.ui.ContactItem.updateAvatarInSideIcon(ContactItem.java:4 74)

at org.jivesoftware.spark.ui.ContactItem.setPresence(ContactItem.java:260)

at org.jivesoftware.spark.ui.ContactList.changeOfflineToOnline(ContactList.java:42 1)

at org.jivesoftware.spark.ui.ContactList.updateUserPresence(ContactList.java:286)

at org.jivesoftware.spark.ui.ContactList.access$700(ContactList.java:98)

at org.jivesoftware.spark.ui.ContactList$19$4$1.run(ContactList.java:1679)

at java.awt.event.InvocationEvent.dispatch(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 2, 2008 9:33:49 AM org.jivesoftware.spark.util.log.Log error

SEVERE: Error sending message

java.lang.NullPointerException

at java.util.Hashtable.put(Unknown Source)

at javax.swing.text.SimpleAttributeSet.addAttribute(Unknown Source)

at javax.swing.text.StyleConstants.setForeground(Unknown Source)

at org.jivesoftware.spark.ui.TranscriptWindow.insertMessage(TranscriptWindow.java: 167)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:262)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:248)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:223)

at org.jivesoftware.spark.ui.ChatRoom.checkForEnter(ChatRoom.java:466)

at org.jivesoftware.spark.ui.ChatRoom.access$100(ChatRoom.java:73)

at org.jivesoftware.spark.ui.ChatRoom$2.keyPressed(ChatRoom.java:251)

at java.awt.AWTEventMulticaster.keyPressed(Unknown Source)

at java.awt.Component.processKeyEvent(Unknown Source)

at javax.swing.JComponent.processKeyEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(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)

Another new machine with the error.

Jun 12, 2008 9:13:10 AM org.jivesoftware.spark.util.log.Log error

SEVERE: Error sending message

java.lang.NullPointerException

at java.util.Hashtable.put(Unknown Source)

at javax.swing.text.SimpleAttributeSet.addAttribute(Unknown Source)

at javax.swing.text.StyleConstants.setForeground(Unknown Source)

at org.jivesoftware.spark.ui.TranscriptWindow.insertMessage(TranscriptWindow.java: 167)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:262)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:248)

at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:223)

at org.jivesoftware.spark.ui.ChatRoom.checkForEnter(ChatRoom.java:466)

at org.jivesoftware.spark.ui.ChatRoom.access$100(ChatRoom.java:73)

at org.jivesoftware.spark.ui.ChatRoom$2.keyPressed(ChatRoom.java:251)

at java.awt.AWTEventMulticaster.keyPressed(Unknown Source)

at java.awt.Component.processKeyEvent(Unknown Source)

at javax.swing.JComponent.processKeyEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)

at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(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)

I am experiencing the same issue however I have noticed that the appearance option in spark in the preferences does not open. I am thinking perhaps re installing the JRE and trying that. The odd thing is that I have beta tested spark in our tech department for a week and did not see this error at all. I started instaling in the rest of the company this morning and stopped at when on the 9th person they reported this error. While researching I start getting the same complaints from others and as it turns out one person, out of the nine, has not had this occur but the seven person tech depeartment is still in the clear. Oh well, I will let you know after I try java.

Reinstalling JRE did nothing however the tech department all installed as system administrators and the rest of the office I installed as the user to c:\documents and settings<user name>. After I reinstalled as the administrator it seems to have fixed this issue but for me it was happenning immediatly with a higher number then what I have heard you guys mention so it may have been a different issue.

Hello, I’have the same problem (blank message and send without clear box) since this summer… after deployment on 300 Pcs. I’have this problem with juste 15-20 Pcs. perhaps is the charge of all users on one server ???

Anyone have solve this problem, please?