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

NPE in OldDataMonitor when reading selenium.xml

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      SEVERE: Failed Loading plugin Jenkins Selenium Plugin v3.7.2-SNAPSHOT (private-847941f7-nenashev) (selenium)
      java.io.IOException: Failed to initialize
      	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:531)
      	at hudson.PluginManager$2$1$1.run(PluginManager.java:515)
      	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1063)
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.IOException: Unable to read /Users/nenashev/Documents/jenkins/plugins/selenium-plugin/work/selenium.xml
      	at hudson.XmlFile.unmarshal(XmlFile.java:182)
      	at hudson.XmlFile.unmarshal(XmlFile.java:162)
      	at hudson.Plugin.load(Plugin.java:264)
      	at hudson.plugins.selenium.PluginImpl.start(PluginImpl.java:143)
      	at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:539)
      	at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:528)
      	... 9 more
      Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null
      ---- Debugging information ----
      cause-exception     : java.lang.NullPointerException
      cause-message       : null
      class               : hudson.plugins.selenium.PluginImpl
      required-type       : hudson.plugins.selenium.PluginImpl
      converter-type      : hudson.util.RobustReflectionConverter
      path                : /hudson.plugins.selenium.PluginImpl
      line number         : 31
      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:147)
      	at hudson.util.XStream2.unmarshal(XStream2.java:118)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
      	at hudson.XmlFile.unmarshal(XmlFile.java:179)
      	... 14 more
      Caused by: java.lang.NullPointerException
      	at hudson.diagnosis.OldDataMonitor.report(OldDataMonitor.java:220)
      	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:371)
      	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:270)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      	... 24 more
      
      Jan 17, 2018 1:44:03 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Prepared all plugins
      Jan 17, 2018 1:44:03 PM jenkins.InitReactorRunner$1 onAttained
      INFO: Started all plugins
      Jan 17, 2018 1:44:03 PM jenkins.InitReactorRunner$1 onAttained
      
      

        Attachments

          Issue Links

            Activity

            Hide
            pedersen Björn Pedersen added a comment -

            "return hudson.diagnosis.OldDataMonitor.get(jenkins.model.Jenkins.instance)"

             =>

             

            hudson.diagnosis.OldDataMonitor@b3fef1

             

            Show
            pedersen Björn Pedersen added a comment - "return hudson.diagnosis.OldDataMonitor.get(jenkins.model.Jenkins.instance)"  =>   hudson.diagnosis.OldDataMonitor@b3fef1  
            Hide
            pedersen Björn Pedersen added a comment -

            An update: After all other plugins that had JEP-200 problems are fixed, this error is gone again.

            Show
            pedersen Björn Pedersen added a comment - An update: After all other plugins that had JEP-200 problems are fixed, this error is gone again.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            OK, so let's consider that there is no new issues in the Selenium plugin itself.
            I will handle this ticket on the core's side

            Show
            oleg_nenashev Oleg Nenashev added a comment - OK, so let's consider that there is no new issues in the Selenium plugin itself. I will handle this ticket on the core's side
            Hide
            apetres Petres Andras added a comment -

            I ran into the same issue when working on a change on gerrit-trigger plugin. My guess is that OldDataMonitor gets initialized after the plugin is loaded.

            What I did was removing a field from a persisted class. After Jenkins gets restarted it tries to load the old config XML file (which contains the deleted field) and boom, it cannot report it because OldDataMonitor is null.

            Show
            apetres Petres Andras added a comment - I ran into the same issue when working on a change on gerrit-trigger plugin. My guess is that OldDataMonitor gets initialized after the plugin is loaded. What I did was removing a field from a persisted class. After Jenkins gets restarted it tries to load the old config XML file (which contains the deleted field) and boom, it cannot report it because OldDataMonitor is null.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Diagnostics was improved in 2.163.

            Petres Andras if you still experience the issue, it would be great to have updated stacktraces after the update

            Show
            oleg_nenashev Oleg Nenashev added a comment - Diagnostics was improved in 2.163. Petres Andras if you still experience the issue, it would be great to have updated stacktraces after the update

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                pedersen Björn Pedersen
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: