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

build-failure-analyzer fails to load on startup, exception thrown.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The plugin fails to load on jenkins startup, and is there for ignored completely. The settings are not visible in Configure Jenkins nor is the plugin listed in Installed Plugins.
      jenkins.err.log contains the following:

      SEVERE: Failed Loading plugin Build Failure Analyzer v1.21.0 (build-failure-analyzer)
      java.io.IOException: Failed to initialize
      at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:388)
      at hudson.PluginManager$2$1$1.run(PluginManager.java:545)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
      at jenkins.model.Jenkins$5.runTask(Jenkins.java:1095)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.io.IOException: Unable to read E:\JenkinsData\build-failure-analyzer.xml
      at hudson.XmlFile.unmarshal(XmlFile.java:181)
      at hudson.XmlFile.unmarshal(XmlFile.java:161)
      at hudson.Plugin.load(Plugin.java:267)
      at com.sonyericsson.jenkins.plugins.bfa.PluginImpl.start(PluginImpl.java:151)
      at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:396)
      at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:385)
      ... 9 more
      Caused by: com.thoughtworks.xstream.converters.ConversionException: Expected 1 instance of hudson.diagnosis.OldDataMonitor but got 0 : Expected 1 instance of hudson.diagnosis.OldDataMonitor but got 0
      ---- Debugging information ----
      message : Expected 1 instance of hudson.diagnosis.OldDataMonitor but got 0
      cause-exception : java.lang.IllegalStateException
      cause-message : Expected 1 instance of hudson.diagnosis.OldDataMonitor but got 0
      class : com.sonyericsson.jenkins.plugins.bfa.PluginImpl
      required-type : com.sonyericsson.jenkins.plugins.bfa.PluginImpl
      converter-type : hudson.util.RobustReflectionConverter
      path : /com.sonyericsson.jenkins.plugins.bfa.PluginImpl
      line number : 2884
      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:161)
      at hudson.util.XStream2.unmarshal(XStream2.java:132)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
      at hudson.XmlFile.unmarshal(XmlFile.java:178)
      ... 14 more
      Caused by: java.lang.IllegalStateException: Expected 1 instance of hudson.diagnosis.OldDataMonitor but got 0
      at hudson.ExtensionList.lookupSingleton(ExtensionList.java:451)
      at hudson.diagnosis.OldDataMonitor.get(OldDataMonitor.java:92)
      at hudson.diagnosis.OldDataMonitor.report(OldDataMonitor.java:227)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:369)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:268)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      ... 24 more

      I am attaching the log file and build-failure-analyzer.xml
       

       

        Attachments

          Issue Links

            Activity

            Hide
            jbrejner1 Jens Brejner added a comment - - edited

            Hi Tomas.
            It is not deleted immediately, apperantly it is deleted when global jenkins configuration is saved, but I will test reproducability, and document in the new bug.

            https://issues.jenkins-ci.org/browse/JENKINS-59610

            Show
            jbrejner1 Jens Brejner added a comment - - edited Hi Tomas. It is not deleted immediately, apperantly it is deleted when global jenkins configuration is saved, but I will test reproducability, and document in the new bug. https://issues.jenkins-ci.org/browse/JENKINS-59610
            Hide
            shumphries Stephen Humphries added a comment -

            Hi Tomas and Jens,

            I was able to reproduce the issue that Tomas just mentioned. It seems to me that it is likely related to the bug that I logged yesterday: https://issues.jenkins-ci.org/browse/JENKINS-59593 .

            Cheers

            Show
            shumphries Stephen Humphries added a comment - Hi Tomas and Jens, I was able to reproduce the issue that Tomas just mentioned. It seems to me that it is likely related to the bug that I logged yesterday: https://issues.jenkins-ci.org/browse/JENKINS-59593 . Cheers
            Hide
            jbrejner1 Jens Brejner added a comment -

            Hi Stephen.
            I agree that your bug sounds a lot like this and the other I have submitted because Tomas couldn't reproduce this bug.
            I think this one: https://issues.jenkins-ci.org/browse/JENKINS-59610 is closely related to your https://issues.jenkins-ci.org/browse/JENKINS-59593
            Br
            Jens

            Show
            jbrejner1 Jens Brejner added a comment - Hi Stephen. I agree that your bug sounds a lot like this and the other I have submitted because Tomas couldn't reproduce this bug. I think this one: https://issues.jenkins-ci.org/browse/JENKINS-59610 is closely related to your https://issues.jenkins-ci.org/browse/JENKINS-59593 Br Jens
            Hide
            aabouzaid Ahmed AbouZaid added a comment -

            In case anyone has the same issue.

            The problem happened when we upgraded `build-failure-analyzer` from 1.22.0 to 1.23.1 and then downgraded due to compatibility issue.

            So the conf file build-failure-analyzer.xml had v1.23.1 ... and looks like it's not compatible with v1.22.0.

            Removed the setting file and it has been generated again using v1.22.0 (of course if you have any customization, you need to set them again)

            Show
            aabouzaid Ahmed AbouZaid added a comment - In case anyone has the same issue. The problem happened when we upgraded `build-failure-analyzer` from 1.22.0 to 1.23.1 and then downgraded due to compatibility issue. So the conf file build-failure-analyzer.xml had v1.23.1 ... and looks like it's not compatible with v1.22.0. Removed the setting file and it has been generated again using v1.22.0 (of course if you have any customization, you need to set them again)
            Hide
            mramonleon Ramon Leon added a comment -
            Show
            mramonleon Ramon Leon added a comment - similar case here: https://issues.jenkins-ci.org/browse/JENKINS-62231

              People

              Assignee:
              t_westling Tomas Westling
              Reporter:
              jbrejner1 Jens Brejner
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: