Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13925

After upgrade the groupChats info is null and results in a nullpointer exception preventing the plugin from working

    XMLWordPrintable

Details

    Description

      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.

      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)
      

      In the 1.22 version of the jabber plugin the line where the nullpointer occurs is

      hudson.plugins.jabber.im.transport.JabberIMConnection.java
       for (IMMessageTarget chat : this.groupChats) {
      

      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.

      Attachments

        Activity

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/plugins/jabber/im/transport/JabberPublisherDescriptor.java
          http://jenkins-ci.org/commit/jabber-plugin/da69c972a35c75542a0745d70d6807bac1708950
          Log:
          [FIXED JENKINS-13925] fixed NPE if no groupChats were configured, previously

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/plugins/jabber/im/transport/JabberPublisherDescriptor.java http://jenkins-ci.org/commit/jabber-plugin/da69c972a35c75542a0745d70d6807bac1708950 Log: [FIXED JENKINS-13925] fixed NPE if no groupChats were configured, previously

          https://apkgenk.com/whatsapp-delta/ is the one that i want to suggest you where the messaging app is

          alula2222 whatsapp delta added a comment - https://apkgenk.com/whatsapp-delta/ is the one that i want to suggest you where the messaging app is
          usaweatherapp usaweatherapp added a comment - Web weatherusa.app . A place that provides weather, hydrological, and climate forecasts and warnings for the United States, its territories, adjacent waters, and ocean areas, to protect people's lives and property   Email:  contact@weatherusa.app Website :  https://weatherusa.app Fanpage Facebook :  https://www.facebook.com/weatherusaapp Youtube :  https://www.youtube.com/@weatherusa_app Twitter :  https://twitter.com/weatherusaapp Pinterest :  https://www.pinterest.com/weatherusaapp Tumblr :  https://www.tumblr.com/weatherusaapp Reddit :  https://www.reddit.com/user/weatherusaapp Instagram :  https://www.instagram.com/weatherusaapp Twitch :  https://www.twitch.tv/weatherusaaap Myspace :  https://myspace.com/weatherusa Deviantart :  https://www.deviantart.com/weatherusaapp Flickr :  https://www.flickr.com/people/weatherusaapp Goodreads :  https://www.goodreads.com/user/show/161326716-weatherusa Linkedin :  https://www.linkedin.com/in/weatherusa-app-828a34261 Wattpad :  https://www.wattpad.com/user/weatherusa Soundcloud :  https://soundcloud.com/usaweatherapp Last fm :  https://www.last.fm/user/weatherusaapp Patreon :  https://www.patreon.com/weatherusaapp Vimeo :  https://vimeo.com/weatherusaapp

          People

            kutzi kutzi
            rgarat Ruben Garat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: