java.lang.ExceptionInInitializerError

Jenkins JIRA | Eric Miles | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When attempting to publish reports at the end of a build, I get the following error on first job exection: {noformat} [FINDBUGS] Collecting findbugs analysis files... FATAL: null java.lang.ExceptionInInitializerError at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:305) at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72) at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55) at edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:172) at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:242) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:196) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:133) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:93) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:224) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:183) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:139) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:30) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:144) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:309) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:629) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:586) at hudson.model.Build$RunnerImpl.post2(Build.java:156) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:555) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:47) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: org.dom4j.InvalidXPathException: Invalid XPath expression: '/FindbugsPlugin/@pluginid'. Caused by: org/dom4j/DocumentException at org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:362) at org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59) at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230) at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207) at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189) at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:441) at edu.umd.cs.findbugs.PluginLoader.loadPlugin(PluginLoader.java:254) at edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1053) at edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:1043) at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:305) at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72) at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55) at edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:172) at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:242) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:196) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:133) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:93) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:224) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:183) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:139) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:30) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:144) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:309) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:629) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:586) at hudson.model.Build$RunnerImpl.post2(Build.java:156) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:555) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) ... 2 more {noformat} Subsequent Job executions gives me the following error: {noformat} [FINDBUGS] Collecting findbugs analysis files... FATAL: edu/umd/cs/findbugs/SortedBugCollection java.lang.NoClassDefFoundError: edu/umd/cs/findbugs/SortedBugCollection at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:242) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:196) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:133) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:93) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:224) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:183) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:139) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:30) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:144) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:309) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:629) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:586) at hudson.model.Build$RunnerImpl.post2(Build.java:156) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:555) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:47) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) {noformat} I will get the NoClassDefFoundError until I restart the instance. Once I do that, I get the first error again on first execution and then the latter error on all subsequent executions. I'm betting it has something to do with with weblogic.jar and how it contains every dependency on the internet, but can't say for sure. I actually shut off WebLogic and ran Jenkins in the Winstone container and executed the job and it worked fine, so it's definitely a problem with the Findbugs plugin and WebLogic.

    Jenkins JIRA | 6 years ago | Eric Miles
    java.lang.ExceptionInInitializerError
  2. 0

    When attempting to publish reports at the end of a build, I get the following error on first job exection: {noformat} [FINDBUGS] Collecting findbugs analysis files... FATAL: null java.lang.ExceptionInInitializerError at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:305) at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72) at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55) at edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:172) at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:242) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:196) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:133) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:93) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:224) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:183) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:139) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:30) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:144) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:309) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:629) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:586) at hudson.model.Build$RunnerImpl.post2(Build.java:156) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:555) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:47) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Caused by: org.dom4j.InvalidXPathException: Invalid XPath expression: '/FindbugsPlugin/@pluginid'. Caused by: org/dom4j/DocumentException at org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:362) at org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59) at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230) at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207) at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189) at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:441) at edu.umd.cs.findbugs.PluginLoader.loadPlugin(PluginLoader.java:254) at edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1053) at edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:1043) at edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:305) at edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72) at edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55) at edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:172) at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:242) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:196) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:133) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:93) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:224) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:183) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:139) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:30) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:144) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:309) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:629) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:586) at hudson.model.Build$RunnerImpl.post2(Build.java:156) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:555) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) ... 2 more {noformat} Subsequent Job executions gives me the following error: {noformat} [FINDBUGS] Collecting findbugs analysis files... FATAL: edu/umd/cs/findbugs/SortedBugCollection java.lang.NoClassDefFoundError: edu/umd/cs/findbugs/SortedBugCollection at hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:242) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:196) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:133) at hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:93) at hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:224) at hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:183) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:139) at hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:30) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:144) at hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:309) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:629) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:586) at hudson.model.Build$RunnerImpl.post2(Build.java:156) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:555) at hudson.model.Run.run(Run.java:1386) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:47) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) {noformat} I will get the NoClassDefFoundError until I restart the instance. Once I do that, I get the first error again on first execution and then the latter error on all subsequent executions. I'm betting it has something to do with with weblogic.jar and how it contains every dependency on the internet, but can't say for sure. I actually shut off WebLogic and ran Jenkins in the Winstone container and executed the job and it worked fine, so it's definitely a problem with the Findbugs plugin and WebLogic.

    Jenkins JIRA | 6 years ago | Eric Miles
    java.lang.ExceptionInInitializerError

    Root Cause Analysis

    1. org.dom4j.InvalidXPathException

      Invalid XPath expression: '/FindbugsPlugin/@pluginid'. Caused by: org/dom4j/DocumentException

      at org.dom4j.xpath.DefaultXPath.parse()
    2. dom4j
      AbstractNode.valueOf
      1. org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:362)
      2. org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59)
      3. org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
      4. org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
      5. org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189)
      5 frames
    3. jOpenDocument
      SortedBugCollection.<clinit>
      1. edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:441)
      2. edu.umd.cs.findbugs.PluginLoader.loadPlugin(PluginLoader.java:254)
      3. edu.umd.cs.findbugs.PluginLoader.loadInitialPlugins(PluginLoader.java:1053)
      4. edu.umd.cs.findbugs.PluginLoader.<clinit>(PluginLoader.java:1043)
      5. edu.umd.cs.findbugs.DetectorFactoryCollection.getCoreResource(DetectorFactoryCollection.java:305)
      6. edu.umd.cs.findbugs.SystemProperties.loadPropertiesFromConfigFile(SystemProperties.java:72)
      7. edu.umd.cs.findbugs.SystemProperties.<clinit>(SystemProperties.java:55)
      8. edu.umd.cs.findbugs.SortedBugCollection.<clinit>(SortedBugCollection.java:172)
      8 frames
    4. hudson.plugins.findbugs
      FindBugsParser.parse
      1. hudson.plugins.findbugs.parser.FindBugsParser.readXml(FindBugsParser.java:242)
      2. hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:196)
      3. hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:133)
      4. hudson.plugins.findbugs.parser.FindBugsParser.parse(FindBugsParser.java:93)
      4 frames
    5. Static Analysis Utilities
      FilesParser.invoke
      1. hudson.plugins.analysis.core.FilesParser.parseFile(FilesParser.java:224)
      2. hudson.plugins.analysis.core.FilesParser.parseFiles(FilesParser.java:183)
      3. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:139)
      4. hudson.plugins.analysis.core.FilesParser.invoke(FilesParser.java:30)
      4 frames
    6. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:756)
      2. hudson.FilePath.act(FilePath.java:738)
      2 frames
    7. hudson.plugins.findbugs
      FindBugsPublisher.perform
      1. hudson.plugins.findbugs.FindBugsPublisher.perform(FindBugsPublisher.java:144)
      1 frame
    8. Static Analysis Utilities
      HealthAwarePublisher.perform
      1. hudson.plugins.analysis.core.HealthAwarePublisher.perform(HealthAwarePublisher.java:309)
      1 frame
    9. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:27)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:629)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:608)
      4. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:586)
      5. hudson.model.Build$RunnerImpl.post2(Build.java:156)
      6. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:555)
      7. hudson.model.Run.run(Run.java:1386)
      8. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      9. hudson.model.ResourceController.execute(ResourceController.java:88)
      10. hudson.model.Executor.run(Executor.java:145)
      10 frames