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

java.lang.NullPointerException in global-build-stats plug-in at startup

      Web interface just shows

      java.lang.NullPointerException
      	at com.thoughtworks.xstream.converters.ConversionException.add(ConversionException.java:65)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1066)
      	at hudson.util.XStream2.unmarshal(XStream2.java:109)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
      	at hudson.XmlFile.unmarshal(XmlFile.java:166)
      	at hudson.Plugin.load(Plugin.java:239)
      	at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin.load(GlobalBuildStatsPlugin.java:98)
      	at hudson.plugins.global_build_stats.business.GlobalBuildStatsPluginSaver.reloadPlugin(GlobalBuildStatsPluginSaver.java:98)
      	at hudson.plugins.global_build_stats.business.GlobalBuildStatsBusiness.reloadPlugin(GlobalBuildStatsBusiness.java:382)
      	at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin$GlobalBuildStatsItemListener.onLoaded(GlobalBuildStatsPlugin.java:149)
      	at jenkins.model.Jenkins.<init>(Jenkins.java:849)
      	at hudson.model.Hudson.<init>(Hudson.java:81)
      	at hudson.model.Hudson.<init>(Hudson.java:77)
      	at hudson.WebAppMain$2.run(WebAppMain.java:214)
      

          [JENKINS-17248] java.lang.NullPointerException in global-build-stats plug-in at startup

          Matteo Corti created issue -

          Matteo Corti added a comment -

          In the log file the same exception appears by startup

          INFO: JNLP slave agent listener started on TCP port 43153
          Mar 18, 2013 9:31:02 AM hudson.WebAppMain$2 run
          SEVERE: Failed to initialize Jenkins
          java.lang.NullPointerException
          	at com.thoughtworks.xstream.converters.ConversionException.add(ConversionException.java:65)
          	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1066)
          	at hudson.util.XStream2.unmarshal(XStream2.java:109)
          	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
          	at hudson.XmlFile.unmarshal(XmlFile.java:166)
          	at hudson.Plugin.load(Plugin.java:239)
          	at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin.load(GlobalBuildStatsPlugin.java:98)
          	at hudson.plugins.global_build_stats.business.GlobalBuildStatsPluginSaver.reloadPlugin(GlobalBuildStatsPluginSaver.java:98)
          	at hudson.plugins.global_build_stats.business.GlobalBuildStatsBusiness.reloadPlugin(GlobalBuildStatsBusiness.java:382)
          	at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin$GlobalBuildStatsItemListener.onLoaded(GlobalBuildStatsPlugin.java:149)
          	at jenkins.model.Jenkins.<init>(Jenkins.java:849)
          	at hudson.model.Hudson.<init>(Hudson.java:81)
          	at hudson.model.Hudson.<init>(Hudson.java:77)
          	at hudson.WebAppMain$2.run(WebAppMain.java:214)
          Mar 18, 2013 9:31:03 AM hudson.PluginWrapper stop
          

          Matteo Corti added a comment - In the log file the same exception appears by startup INFO: JNLP slave agent listener started on TCP port 43153 Mar 18, 2013 9:31:02 AM hudson.WebAppMain$2 run SEVERE: Failed to initialize Jenkins java.lang.NullPointerException at com.thoughtworks.xstream.converters.ConversionException.add(ConversionException.java:65) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1066) at hudson.util.XStream2.unmarshal(XStream2.java:109) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045) at hudson.XmlFile.unmarshal(XmlFile.java:166) at hudson.Plugin.load(Plugin.java:239) at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin.load(GlobalBuildStatsPlugin.java:98) at hudson.plugins.global_build_stats.business.GlobalBuildStatsPluginSaver.reloadPlugin(GlobalBuildStatsPluginSaver.java:98) at hudson.plugins.global_build_stats.business.GlobalBuildStatsBusiness.reloadPlugin(GlobalBuildStatsBusiness.java:382) at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin$GlobalBuildStatsItemListener.onLoaded(GlobalBuildStatsPlugin.java:149) at jenkins.model.Jenkins.<init>(Jenkins.java:849) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.model.Hudson.<init>(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:214) Mar 18, 2013 9:31:03 AM hudson.PluginWrapper stop
          Matteo Corti made changes -
          Description Original: Web interface just shows

          java.lang.NullPointerException
          at com.thoughtworks.xstream.converters.ConversionException.add(ConversionException.java:65)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1066)
          at hudson.util.XStream2.unmarshal(XStream2.java:109)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
          at hudson.XmlFile.unmarshal(XmlFile.java:166)
          at hudson.Plugin.load(Plugin.java:239)
          at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin.load(GlobalBuildStatsPlugin.java:98)
          at hudson.plugins.global_build_stats.business.GlobalBuildStatsPluginSaver.reloadPlugin(GlobalBuildStatsPluginSaver.java:98)
          at hudson.plugins.global_build_stats.business.GlobalBuildStatsBusiness.reloadPlugin(GlobalBuildStatsBusiness.java:382)
          at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin$GlobalBuildStatsItemListener.onLoaded(GlobalBuildStatsPlugin.java:149)
          at jenkins.model.Jenkins.<init>(Jenkins.java:849)
          at hudson.model.Hudson.<init>(Hudson.java:81)
          at hudson.model.Hudson.<init>(Hudson.java:77)
          at hudson.WebAppMain$2.run(WebAppMain.java:214)
          New: Web interface just shows

          {code}
          java.lang.NullPointerException
          at com.thoughtworks.xstream.converters.ConversionException.add(ConversionException.java:65)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1066)
          at hudson.util.XStream2.unmarshal(XStream2.java:109)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
          at hudson.XmlFile.unmarshal(XmlFile.java:166)
          at hudson.Plugin.load(Plugin.java:239)
          at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin.load(GlobalBuildStatsPlugin.java:98)
          at hudson.plugins.global_build_stats.business.GlobalBuildStatsPluginSaver.reloadPlugin(GlobalBuildStatsPluginSaver.java:98)
          at hudson.plugins.global_build_stats.business.GlobalBuildStatsBusiness.reloadPlugin(GlobalBuildStatsBusiness.java:382)
          at hudson.plugins.global_build_stats.GlobalBuildStatsPlugin$GlobalBuildStatsItemListener.onLoaded(GlobalBuildStatsPlugin.java:149)
          at jenkins.model.Jenkins.<init>(Jenkins.java:849)
          at hudson.model.Hudson.<init>(Hudson.java:81)
          at hudson.model.Hudson.<init>(Hudson.java:77)
          at hudson.WebAppMain$2.run(WebAppMain.java:214)
          {code}

          Matteo Corti added a comment -

          Removing the global-build-stats plugin I was able to restart Jenkins.

          Although the problem is caused by a plugin the application should not crash.

          Matteo Corti added a comment - Removing the global-build-stats plugin I was able to restart Jenkins. Although the problem is caused by a plugin the application should not crash.
          Mark Waite made changes -
          Component/s New: global-build-stats [ 15746 ]
          Component/s Original: core [ 15593 ]

          Matteo Corti added a comment -

          I would move the plugin back. This is not a "global-build-stats" problem but mainly a core problem.

          The application should not completely crash because of a plugin error! It should start by disabling it.

          At the moment the web interface is completely unavailable without even a hint on what the problem could be.

          Matteo Corti added a comment - I would move the plugin back. This is not a "global-build-stats" problem but mainly a core problem. The application should not completely crash because of a plugin error! It should start by disabling it. At the moment the web interface is completely unavailable without even a hint on what the problem could be.

          We experienced this too, and I can confirm that removing "global-build-stats" plugin helped to get Jenkins back up. Not a real solution, though.

          We just updated to 1.506 from a pretty old version (1.47x something), and suddenly after one restart, this error came up.

          Mikko Peltonen added a comment - We experienced this too, and I can confirm that removing "global-build-stats" plugin helped to get Jenkins back up. Not a real solution, though. We just updated to 1.506 from a pretty old version (1.47x something), and suddenly after one restart, this error came up.

          Max Burdge added a comment -

          Also experiencing this after upgrade to 1.508

          Max Burdge added a comment - Also experiencing this after upgrade to 1.508

          Linards L added a comment - - edited

          Any other plugin affected? I am prepping to upgrade from 1.494 to 1.510 this weekend ... but seems like this and this (https://issues.jenkins-ci.org/browse/JENKINS-17514) is party-stopper ...

          Linards L added a comment - - edited Any other plugin affected? I am prepping to upgrade from 1.494 to 1.510 this weekend ... but seems like this and this ( https://issues.jenkins-ci.org/browse/JENKINS-17514 ) is party-stopper ...

          Removing the <path to jenkins>/global-build-stats and <path to jenkins>/global-build-stats.xml works around the problem...

          but you lose the stats, that didn't bother me as much as jenkins not running...

          Michael McCallum added a comment - Removing the <path to jenkins>/global-build-stats and <path to jenkins>/global-build-stats.xml works around the problem... but you lose the stats, that didn't bother me as much as jenkins not running...

            jglick Jesse Glick
            corti Matteo Corti
            Votes:
            10 Vote for this issue
            Watchers:
            21 Start watching this issue

              Created:
              Updated:
              Resolved: