org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2

Pentaho BI Platform Tracking | Bryan Senseman | 9 years ago
  1. 0

    The getXMLData step doesn't correctly handle namespaces. This might only be a GUI issue, as there is a checkbox to make the search namespace aware, however this it no place to actually define the namespaces for the XPath search. When attempting a search using a namespace prefix the following exception/error is thrown: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Unexpected error : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.pentaho.di.core.exception.KettleException: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Unable to read row from XML file 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:431) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processRow(GetXMLData.java:344) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2430) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.run(GetXMLData.java:645) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Caused by: org.pentaho.di.core.exception.KettleException: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processPutRow(GetXMLData.java:564) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:416) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : ... 3 more Additional GUI only issues, if you put in the appropriate namespace prefix on the "Loop XPath" the Get Fields button does not return any values. If you use the "Get XPATH nodes" button it is incorrectly nesting the paths returned, taking sibling nodes and returning a path of Child1 Child1\Child2 when the correct result should be Child1 Child2

    Pentaho BI Platform Tracking | 9 years ago | Bryan Senseman
    org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2
  2. 0

    The getXMLData step doesn't correctly handle namespaces. This might only be a GUI issue, as there is a checkbox to make the search namespace aware, however this it no place to actually define the namespaces for the XPath search. When attempting a search using a namespace prefix the following exception/error is thrown: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Unexpected error : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.pentaho.di.core.exception.KettleException: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Unable to read row from XML file 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:431) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processRow(GetXMLData.java:344) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2430) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.run(GetXMLData.java:645) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Caused by: org.pentaho.di.core.exception.KettleException: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processPutRow(GetXMLData.java:564) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:416) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : ... 3 more Additional GUI only issues, if you put in the appropriate namespace prefix on the "Loop XPath" the Get Fields button does not return any values. If you use the "Get XPATH nodes" button it is incorrectly nesting the paths returned, taking sibling nodes and returning a path of Child1 Child1\Child2 when the correct result should be Child1 Child2

    Pentaho BI Platform Tracking | 9 years ago | Bryan Senseman
    org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2
  3. 0

    The getXMLData step doesn't correctly handle namespaces. This might only be a GUI issue, as there is a checkbox to make the search namespace aware, however this it no place to actually define the namespaces for the XPath search. When attempting a search using a namespace prefix the following exception/error is thrown: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Unexpected error : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.pentaho.di.core.exception.KettleException: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Unable to read row from XML file 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:431) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processRow(GetXMLData.java:344) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2430) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.run(GetXMLData.java:645) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Caused by: org.pentaho.di.core.exception.KettleException: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processPutRow(GetXMLData.java:564) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:416) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : ... 3 more Additional GUI only issues, if you put in the appropriate namespace prefix on the "Loop XPath" the Get Fields button does not return any values. If you use the "Get XPATH nodes" button it is incorrectly nesting the paths returned, taking sibling nodes and returning a path of Child1 Child1\Child2 when the correct result should be Child1 Child2

    Pentaho BI Platform Tracking | 9 years ago | Bryan Senseman
    org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The getXMLData step doesn't correctly handle namespaces. This might only be a GUI issue, as there is a checkbox to make the search namespace aware, however this it no place to actually define the namespaces for the XPath search. When attempting a search using a namespace prefix the following exception/error is thrown: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Unexpected error : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.pentaho.di.core.exception.KettleException: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Unable to read row from XML file 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:431) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processRow(GetXMLData.java:344) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.step.BaseStep.runStepThread(BaseStep.java:2430) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.run(GetXMLData.java:645) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : Caused by: org.pentaho.di.core.exception.KettleException: 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processPutRow(GetXMLData.java:564) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : at org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:416) 2008/05/01 02:41:13 - get XML Data 2.0 - ERROR (version 3.1.0-M1, build 701 from 2008/04/29 22:38:22) : ... 3 more Additional GUI only issues, if you put in the appropriate namespace prefix on the "Loop XPath" the Get Fields button does not return any values. If you use the "Get XPATH nodes" button it is incorrectly nesting the paths returned, taking sibling nodes and returning a path of Child1 Child1\Child2 when the correct result should be Child1 Child2

    Pentaho BI Platform Tracking | 9 years ago | Bryan Senseman
    org.dom4j.XPathException: Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2
  6. 0

    Exception in thread "AWT-EventQueue-0" org.dom4j.XPathException: Exception occurred evaluting XPath: /default:services/@resourceType. Exception: XPath expression uses unbound namespace prefix default at org.dom4j.xpath.DefaultXPath.handleJaxenException(DefaultXPath.java:374) at org.dom4j.xpath.DefaultXPath.selectNodes(DefaultXPath.java:134) at prototype.XPathActivityConfigurationPanel.runXPath(XPathActivityConfigurationPanel.java:712) at prototype.XPathActivityConfigurationPanel.access$3(XPathActivityConfigurationPanel.java:704) at prototype.XPathActivityConfigurationPanel$7.actionPerformed(XPathActivityConfigurationPanel.java:297) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6267) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6032) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    JIRA | 6 years ago | Sergejs Aleksejevs
    org.dom4j.XPathException: Exception occurred evaluting XPath: /default:services/@resourceType. Exception: XPath expression uses unbound namespace prefix default

    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.XPathException

      Exception occurred evaluting XPath: ns2:Item/axis2ns84147:ID/@schemeName. Exception: XPath expression uses unbound namespace prefix ns2

      at org.pentaho.di.trans.steps.getxmldata.GetXMLData.processPutRow()
    2. org.pentaho.di
      GetXMLData.getXMLRow
      1. org.pentaho.di.trans.steps.getxmldata.GetXMLData.processPutRow(GetXMLData.java:564)
      2. org.pentaho.di.trans.steps.getxmldata.GetXMLData.getXMLRow(GetXMLData.java:416)
      2 frames