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
      
      

          [JENKINS-48985] NPE in OldDataMonitor when reading selenium.xml

          Oleg Nenashev added a comment -

          Likely it is something in the core

          Oleg Nenashev added a comment - Likely it is something in the core

          Rouke Broersma added a comment - - edited

          There were some issues with config not being correctly converted to new plugin config versions in the past. Perhaps their config version is just not compatible with the new versions of the plugin (and the conversion is not working properly). Perhaps it's not a Jenkins problem at all, but simply the plugin having a bug.

          Rouke Broersma added a comment - - edited There were some issues with config not being correctly converted to new plugin config versions in the past. Perhaps their config version is just not compatible with the new versions of the plugin (and the conversion is not working properly). Perhaps it's not a Jenkins problem at all, but simply the plugin having a bug.

          Oleg Nenashev added a comment -

          Meanwhile I ran Plugin Compatibility Tester. With all current tests the plugin works well on Jenkins 2.102

          Oleg Nenashev added a comment - Meanwhile I ran Plugin Compatibility Tester. With all current tests the plugin works well on Jenkins 2.102

          Oleg Nenashev added a comment -

          mobrockers Maybe we will have to split it to two issues. Old Data Monitor failing with NPE does seem like a core bug, independently of what causes that.
          If you prefer, I can move it to a separate ticket.

          Oleg Nenashev added a comment - mobrockers Maybe we will have to split it to two issues. Old Data Monitor failing with NPE does seem like a core bug, independently of what causes that. If you prefer, I can move it to a separate ticket.

          The selenium bug does not really have priority as no users of the plugin should be on such an old version anyway. You can keep the ticket for the core bug and I will create my own.

          Rouke Broersma added a comment - The selenium bug does not really have priority as no users of the plugin should be on such an old version anyway. You can keep the ticket for the core bug and I will create my own.

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

           =>

           

          hudson.diagnosis.OldDataMonitor@b3fef1

           

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

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

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

          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

          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

          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.

          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.

          Oleg Nenashev added a comment -

          Diagnostics was improved in 2.163.

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

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

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

              Created:
              Updated: