Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 90264 invoked from network); 8 Nov 2006 22:34:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Nov 2006 22:34:10 -0000 Received: (qmail 59527 invoked by uid 500); 8 Nov 2006 22:34:13 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 59503 invoked by uid 500); 8 Nov 2006 22:34:13 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 59492 invoked by uid 99); 8 Nov 2006 22:34:13 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2006 14:34:13 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [20.137.52.152] (HELO amer-mta08.csc.com) (20.137.52.152) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2006 14:33:59 -0800 Received: from amer-gw09.amer.csc.com (amer-gw09.amer.csc.com [20.6.39.245]) by amer-mta08.csc.com (Switch-3.1.6/Switch-3.1.0) with ESMTP id kA8MXbNF014645 for ; Wed, 8 Nov 2006 17:33:38 -0500 (EST) In-Reply-To: <19e0530f0611081230y6ebdb982h9d6f7eec29bad2b4@mail.gmail.com> To: axis-user@ws.apache.org Subject: Re: [Axis2] Help using AXIOMXPath MIME-Version: 1.0 X-Mailer: Lotus Notes 652HF83 November 04, 2004 From: Brian Bacsu X-MIMETrack: S/MIME Sign by Notes Client on Brian Bacsu/FSG/CSC(652HF83|November 04, 2004) at 11/08/2006 05:33:20 PM, Serialize by Notes Client on Brian Bacsu/FSG/CSC(652HF83|November 04, 2004) at 11/08/2006 05:33:20 PM, Serialize complete at 11/08/2006 05:33:20 PM, S/MIME Sign failed at 11/08/2006 05:33:20 PM: The cryptographic key was not found, Serialize by Router on AMER-GW09/SRV/CSC(Release 6.5.3|September 14, 2004) at 11/08/2006 05:32:30 PM, Serialize complete at 11/08/2006 05:32:30 PM Message-ID: Date: Wed, 8 Nov 2006 17:33:31 -0500 Content-Type: multipart/alternative; boundary="=_alternative 007BE6B985257220_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 007BE6B985257220_= Content-Type: text/plain; charset="US-ASCII" 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 --=_alternative 007BE6B985257220_= Content-Type: text/html; charset="US-ASCII"
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
--=_alternative 007BE6B985257220_=--