java.lang.NullPointerException

JIRA | wroot | 3 years ago
  1. 0

    Happens to 4% of our 214 Spark deployment, all using Luna skin (happened on Substance too). Usually happens to older computers with low resources. A user types a message, hits Enter. The message is sent to the recepient, but the user still sees it in the input field and chat window doesn't show it as sent. And the user usually can't see incoming messages either. Often a user can close a chat window, open it again and then see message in the quick history. Usually a user needs to restart Spark to fix this. Error logged: Rgp 12, 2013 2:07:11 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: 191) at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:363) at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:346) at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:319) at org.jivesoftware.spark.ui.ChatRoom.checkForEnter(ChatRoom.java:698) at org.jivesoftware.spark.ui.ChatRoom.access$300(ChatRoom.java:90) 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.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(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$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.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) I can't understand anything, but this looks interesting: at org.jivesoftware.spark.ui.ChatRoom.checkForEnter(ChatRoom.java:698) at org.jivesoftware.spark.ui.ChatRoom.access$300(ChatRoom.java:90) Maybe Spark is checking for Enter press, but can't register it for showing that message was sent, though it is enough to send actual message on the background and add it to the transcript. Btw, so far Spark restart is enough to mitigate this issue for some time. Log out and login doesn't fix this error. P.S. Wonder what would happen if Spark had "Send" button. Maybe it would be possible to show that message was sent, when sent with that button and not the Enter key.

    Jive Software Open Source | 3 years ago | wroot
    java.lang.NullPointerException
  2. 0

    Contact can not receive messages. They get notified of a new message by the window openning but there is no message in the window. They can not send messages correctly at this point either. If they try to send a message it stays in the typing area of the dialog window when enter is hit. It never clears and goes into the dialog section of the window. Exiting and restarting Spark seems to clear the error. The Spark error logs show this: Feb 13, 2008 2:38:11 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)

    Jive Software Open Source | 9 years ago | Todd Getz
    java.lang.NullPointerException
  3. 0

    Contact can not receive messages. They get notified of a new message by the window openning but there is no message in the window. They can not send messages correctly at this point either. If they try to send a message it stays in the typing area of the dialog window when enter is hit. It never clears and goes into the dialog section of the window. Exiting and restarting Spark seems to clear the error. The Spark error logs show this: Feb 13, 2008 2:38:11 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)

    JIRA | 9 years ago | Todd Getz
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Happens to 4% of our 214 Spark deployment, all using Luna skin (happened on Substance too). Usually happens to older computers with low resources. A user types a message, hits Enter. The message is sent to the recepient, but the user still sees it in the input field and chat window doesn't show it as sent. And the user usually can't see incoming messages either. Often a user can close a chat window, open it again and then see message in the quick history. Usually a user needs to restart Spark to fix this. Error logged: Rgp 12, 2013 2:07:11 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: 191) at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:363) at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:346) at org.jivesoftware.spark.ui.rooms.ChatRoomImpl.sendMessage(ChatRoomImpl.java:319) at org.jivesoftware.spark.ui.ChatRoom.checkForEnter(ChatRoom.java:698) at org.jivesoftware.spark.ui.ChatRoom.access$300(ChatRoom.java:90) 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.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(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$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.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) I can't understand anything, but this looks interesting: at org.jivesoftware.spark.ui.ChatRoom.checkForEnter(ChatRoom.java:698) at org.jivesoftware.spark.ui.ChatRoom.access$300(ChatRoom.java:90) Maybe Spark is checking for Enter press, but can't register it for showing that message was sent, though it is enough to send actual message on the background and add it to the transcript. Btw, so far Spark restart is enough to mitigate this issue for some time. Log out and login doesn't fix this error. P.S. Wonder what would happen if Spark had "Send" button. Maybe it would be possible to show that message was sent, when sent with that button and not the Enter key.

    JIRA | 3 years ago | wroot
    java.lang.NullPointerException
  6. 0

    Contact can not receive messages. They get notified of a new message by the window openning but there is no message in the window. They can not send messages correctly at this point either. If they try to send a message it stays in the typing area of the dialog window when enter is hit. It never clears and goes into the dialog section of the window. Exiting and restarting Spark seems to clear the error. The Spark error logs show this: Feb 13, 2008 2:38:11 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)

    Jive Software Open Source | 9 years ago | Todd Getz
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.util.Hashtable.put()
    2. Java RT
      StyleConstants.setForeground
      1. java.util.Hashtable.put(Unknown Source)
      2. javax.swing.text.SimpleAttributeSet.addAttribute(Unknown Source)
      3. javax.swing.text.StyleConstants.setForeground(Unknown Source)
      3 frames