Brian-
 
can we see your services.xml ?

M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its
contents
----- Original Message -----
Sent: Wednesday, November 08, 2006 5:33 PM
Subject: Re: [Axis2] Help using AXIOMXPath


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

Reply via email to