axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: [Axis2] Help using AXIOMXPath
Date Thu, 09 Nov 2006 04:10:07 GMT
You definitely need to switch to 1.1 branch nightly build...

-- dims

On 11/8/06, Brian Bacsu <bbacsu@csc.com> wrote:
>
> 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
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message