axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Bacsu <bba...@csc.com>
Subject Re: [Axis2] Help using AXIOMXPath
Date Wed, 08 Nov 2006 22:33:31 GMT
Hi

I am trying to use AXIOMXPath in a statement such as this (using Axis2 
version 1.0):

AXIOMXPath xpathExpression = new AXIOMXPath (xpathString); 
OMElement node= (OMElement)xpathExpression.selectSingleNode(OM_message); 

I have verified the XPath is valid.

But... I get the following error:

java.lang.NullPointerException
        at org.apache.axiom.om.xpath.DocumentNavigator.getDocumentNode(
DocumentNavigator.java:603)
        at org.jaxen.expr.DefaultAbsoluteLocationPath.evaluate(
DefaultAbsoluteLocationPath.java:97)
        at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:98
)
        at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:674)
        at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:213)
        at org.jaxen.BaseXPath.selectSingleNode(BaseXPath.java:234)

Any suggestions would be appreciated.

Thanks,

Brian Bacsu

Mime
View raw message