org.dom4j.InvalidXPathException: Invalid XPath expression: /ns:s:Envelope/ns:s:Body/ns:CreateResponse/ns:CustomerId Unexpected ':'

Stack Overflow | Alter Hu | 3 months ago
  1. 0

    DOM4J xpath-select colon node with namespace

    Stack Overflow | 3 months ago | Alter Hu
    org.dom4j.InvalidXPathException: Invalid XPath expression: /ns:s:Envelope/ns:s:Body/ns:CreateResponse/ns:CustomerId Unexpected ':'
  2. 0

    Re: XTAGS Problems with node names that begin with a leading underscore

    tomcat-taglibs-user | 9 years ago | dean allen
    org.dom4j.InvalidXPathException: Invalid XPath expression: '//_page'. Caused by: org.jaxen.dom4j.DocumentNavigator.getInstance()Lorg/jaxen/Navigator;
  3. 0

    Spoon First Tests: XML Reading [Archive] - Pentaho Community Forums

    pentaho.com | 11 months ago
    org.dom4j.InvalidXPathException: Invalid XPath expression: Unexpected ''
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    import xml job failure == Invalid XPath expression: Unexpected ''

    GitHub | 1 year ago | herrygoon
    org.dom4j.InvalidXPathException: Invalid XPath expression: Unexpected ''

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.dom4j.InvalidXPathException

      Invalid XPath expression: /ns:s:Envelope/ns:s:Body/ns:CreateResponse/ns:CustomerId Unexpected ':'

      at org.dom4j.xpath.DefaultXPath.parse()
    2. dom4j
      DefaultXPath.<init>
      1. org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:360)
      2. org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59)
      2 frames
    3. com.github.becauseQA
      DOM4JUtils.getNodes
      1. com.github.becauseQA.xml.DOM4JUtils.getNodes(DOM4JUtils.java:152)
      1 frame