Message sent but stays in the box

I recently upgraded OpenFire to 3.7.0 and Spark to 2.6.3 and we’re suffering this problem randomly

When the user writes a message and hits Enter, the message is sent but the text stays and in the chat window of the user it doesn’t appear. Closing and reopening Spark fixes this.

Looking at the log i saw this.

30-ago-2011 12:58:25 org.jivesoftware.spark.util.log.Log error

GRAVE: 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: 190)

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

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

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

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

at org.jivesoftware.spark.ui.ChatRoom.access$300(ChatRoom.java:89)

at org.jivesoftware.spark.ui.ChatRoom$3.keyPressed(ChatRoom.java:335)

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)

As it was said on the other thread, you can try starting with a fresh Spark profile. You can find it:

C:\Documents and Settings\User\Application Data\Spark

or

C:\Users\User\AppData\Roaming\Spark

or

$HOME/.Spark

after you delete it you will lose your settings and history.

I will be doing that. By the way, one of the computers were this problem was detected was brand new. Both user profile and Spark were installed two weeks ago.

I will come back to this thread if i find anything else.

M. Tejera wrote:

Spark were installed two weeks ago.

Was it 2.6.3 version from the beginning or was it upgraded from some older version?

2.6.3 from the beginning. I installed the OS and applications myself. Other computers and users had older versions, but this one didn’t.

I thought this issue was related to upgrading from older version. I guess not. Though i haven’t experienced this myself (also upgrading from older versions).

In any case, i’ve erased the local profile on affected computers, and things seem to run smootly again.

By the way, if you keep the spark.properties file while erasing the profile, user settings are kept and local profile is rebuilt.

Yes. You don’t have to erase everything, but i don’t know what exactly is causing problems, so i suggest to delete whole profile. Probably you can always save spark.properties and chat transcripts before doing this and then copy them back again. Problem can be related to transcripts though.

This fix did not work for me. I’ve tried uninstalling, reinstalling, clearing out the profile in app data, etc. I’ved updated to java version 6u20, no love. The only thing i can think of is that this is a permissions issue as i have had sparks installed on our test group (helpdesk group, all with local admin access) and they have not had this problem at all.