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

NPE when upgrading global build stats plugin

    XMLWordPrintable

Details

    Description

      I recently upgraded plugins on our Jenkins 2.107.3 server and restarted, and received a NullPointerException error from the global build stats plugin:

       

      Jun 04, 2018 12:49:07 PM hudson.plugins.global_build_stats.business.GlobalBuildStatsPluginSaver reloadPlugin
      SEVERE: Unable to read /var/lib/jenkins/global-build-stats.xml
      java.io.IOException: Unable to read /var/lib/jenkins/global-build-stats.xml
      at hudson.XmlFile.unmarshal(XmlFile.java:181)
      at hudson.XmlFile.unmarshal(XmlFile.java:161)
      at hudson.Plugin.load(Plugin.java:263)
      at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin.load(GlobalBuildStatsPlugin.java:103)
      at hudson.plugins.global_build_stats.business.GlobalBuildStatsPluginSaver.reloadPlugin(GlobalBuildStatsPluginSaver.java:99)
      at hudson.plugins.global_build_stats.business.GlobalBuildStatsBusiness.reloadPlugin(GlobalBuildStatsBusiness.java:395)
      at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin$GlobalBuildStatsItemListener.onLoaded(GlobalBuildStatsPlugin.java:158)
      at jenkins.model.Jenkins.<init>(Jenkins.java:968)
      at hudson.model.Hudson.<init>(Hudson.java:85)
      at hudson.model.Hudson.<init>(Hudson.java:81)
      at hudson.WebAppMain$3.run(WebAppMain.java:233)
      Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null
      ---- Debugging information ----
      cause-exception : java.lang.NullPointerException
      cause-message : null
      class : hudson.plugins.global_build_stats.GlobalBuildStatsPlugin
      required-type : hudson.plugins.global_build_stats.GlobalBuildStatsPlugin
      converter-type : hudson.plugins.global_build_stats.xstream.GlobalBuildStatsXStreamConverter
      path : /hudson.plugins.global_build_stats.GlobalBuildStatsPlugin
      line number : 2
      version : not available
      -------------------------------
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
      at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
      at hudson.util.XStream2.unmarshal(XStream2.java:160)
      at hudson.util.XStream2.unmarshal(XStream2.java:131)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
      at hudson.XmlFile.unmarshal(XmlFile.java:178)
      ... 10 more
      Caused by: java.lang.NullPointerException
      at java.util.ArrayList.addAll(ArrayList.java:581)
      at hudson.plugins.global_build_stats.model.JobBuildResultSharder.load(JobBuildResultSharder.java:140)
      at hudson.plugins.global_build_stats.xstream.migration.AbstractMigrator.readGlobalBuildStatsPOJO(AbstractMigrator.java:35)
      at hudson.plugins.global_build_stats.xstream.GlobalBuildStatsXStreamConverter.unmarshal(GlobalBuildStatsXStreamConverter.java:159)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      ... 20 more

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            dhinske David Krischke
            srepetsk Stephen Repetski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: