java.lang.NullPointerException

Jenkins JIRA | Ruben Garat | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    After upgrading jenkins (1.432 to 1.465), the instant-messenger (to 1.21) plugin and the jabber (to 1.22) plugin the jabber comunication (using google talk) stopped working, and started throwing a null pointer exception. {noformat} May 26, 2012 6:46:53 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect INFO: Connected to XMPP on talk.google.com:5222/gmail.com using TLS May 26, 2012 6:46:53 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect WARNING: java.lang.NullPointerException at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:166) at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65) at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183) at java.lang.Thread.run(Thread.java:662) {noformat} In the 1.22 version of the jabber plugin the line where the nullpointer occurs is {code:title=hudson.plugins.jabber.im.transport.JabberIMConnection.java|borderStyle=solid} for (IMMessageTarget chat : this.groupChats) { {code} In the previous version of the jabber plugin I didn´t have any groupChat defined, so I thought that maybe there was some problem updating that configuration so I: * configured a fake group chat * saved and restarted (this gave an error that it couldn´t use the groupchat obviously) * removed the fake group chat * saved and restarted (now the nullpointer error stopped and everything works fine) In the end I think that the fix should be either handling the possibility of a null groupchat list or detecting that and fixing the configuration before attempting to connect.

    Jenkins JIRA | 5 years ago | Ruben Garat
    java.lang.NullPointerException
  2. 0

    After upgrading jenkins (1.432 to 1.465), the instant-messenger (to 1.21) plugin and the jabber (to 1.22) plugin the jabber comunication (using google talk) stopped working, and started throwing a null pointer exception. {noformat} May 26, 2012 6:46:53 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect INFO: Connected to XMPP on talk.google.com:5222/gmail.com using TLS May 26, 2012 6:46:53 PM hudson.plugins.jabber.im.transport.JabberIMConnection connect WARNING: java.lang.NullPointerException at hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:166) at hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65) at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183) at java.lang.Thread.run(Thread.java:662) {noformat} In the 1.22 version of the jabber plugin the line where the nullpointer occurs is {code:title=hudson.plugins.jabber.im.transport.JabberIMConnection.java|borderStyle=solid} for (IMMessageTarget chat : this.groupChats) { {code} In the previous version of the jabber plugin I didn´t have any groupChat defined, so I thought that maybe there was some problem updating that configuration so I: * configured a fake group chat * saved and restarted (this gave an error that it couldn´t use the groupchat obviously) * removed the fake group chat * saved and restarted (now the nullpointer error stopped and everything works fine) In the end I think that the fix should be either handling the possibility of a null groupchat list or detecting that and fixing the configuration before attempting to connect.

    Jenkins JIRA | 5 years ago | Ruben Garat
    java.lang.NullPointerException
  3. 0

    Getting a nullpointer exception when switching displayables in J2ME

    Stack Overflow | 6 years ago | Pallinder
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    J2ME (Java) - Null Pointer Exception caught in Display Class

    Stack Overflow | 6 years ago | Tom
    java.lang.NullPointerException: 0 at javax.microedition.lcdui.Display$ChameleonTunnel.callScreenListener(), bci=46 at com.sun.midp.chameleon.layers.SoftButtonLayer.processCommand(), bci=74 at com.sun.midp.chameleon.layers.SoftButtonLayer.soft1(), bci=37 at com.sun.midp.chameleon.layers.SoftButtonLayer.keyInput(), bci=36 at com.sun.midp.chameleon.CWindow.keyInput(), bci=38 at javax.microedition.lcdui.Display$DisplayEventConsumerImpl.handleKeyEvent(), bci=17 at com.sun.midp.lcdui.DisplayEventListener.process(), bci=277 at com.sun.midp.events.EventQueue.run(), bci=179
  6. 0

    Cloud Foundry v2 in Grails

    Stack Overflow | 2 years ago | angelo087
    java.lang.NullPointerException: Cannot invoke method getAt() on null object

    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 hudson.plugins.jabber.im.transport.JabberIMConnection.connect()
    2. Hudson Jabber notifier plugin
      JabberIMConnectionProvider.createConnection
      1. hudson.plugins.jabber.im.transport.JabberIMConnection.connect(JabberIMConnection.java:166)
      2. hudson.plugins.jabber.im.transport.JabberIMConnectionProvider.createConnection(JabberIMConnectionProvider.java:42)
      2 frames
    3. Hudson instant-messaging plugin
      IMConnectionProvider$ConnectorRunnable.run
      1. hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65)
      2. hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22)
      3. hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183)
      3 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame