org.dom4j.InvalidXPathException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Problems on Geronimo Appserver?
    via j-trac by jeremy_c
    ,
  • DOM4J xpath-select colon node with namespace
    via Stack Overflow by Alter Hu
    ,
  • 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.
    via by Eric Miles,
  • db:: 4.03::Nested exception: dom4j m3
    via by Unknown author,
    • org.dom4j.InvalidXPathException: Invalid XPath expression: '//external|//inline'. Caused by: org/jaxen/dom4j/Dom4jXPath 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.selectNodes(AbstractNode.java:164) at com.sample.project.service.impl.DefaultTransformationService.parseData(DefaultTransformationService.java:163) at com.sample.project.service.impl.DefaultTransformationService.getDCR(DefaultTransformationService.java:144) at com.sample.project.service.impl.DefaultTransformationServiceTest.testgetDCR_success(DefaultTransformationServiceTest.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,