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.
Here are some additional error and warning logs from another user experiencing this issue.
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 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.