Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 70703 invoked from network); 7 Nov 2006 02:33:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 02:33:01 -0000 Received: (qmail 24553 invoked by uid 500); 7 Nov 2006 02:33:09 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 24511 invoked by uid 500); 7 Nov 2006 02:33:09 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 24500 invoked by uid 99); 7 Nov 2006 02:33:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 18:33:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 18:32:57 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8A0B67142F7 for ; Mon, 6 Nov 2006 18:32:37 -0800 (PST) Message-ID: <2067862.1162866757562.JavaMail.jira@brutus> Date: Mon, 6 Nov 2006 18:32:37 -0800 (PST) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Assigned: (AXIS2-1625) Axis2 OMElement navigation is broken In-Reply-To: <28303075.1162849177015.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/AXIS2-1625?page=all ] Davanum Srinivas reassigned AXIS2-1625: --------------------------------------- Assignee: Eran Chinthaka > Axis2 OMElement navigation is broken > ------------------------------------ > > Key: AXIS2-1625 > URL: http://issues.apache.org/jira/browse/AXIS2-1625 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: om > Reporter: Gul Onural > Assigned To: Eran Chinthaka > Priority: Blocker > > What I am trying to do is really simple: > I have a service method takes OMElement as input and returns > an OMElement as output. > At the beginning of the method, I print the OMElement input parameter > and I see it as expected. But when I try to iterate elements of the > OMElement using following code I don't see the child elements but get > null pointer instead. > Is this a known issue ? This code was working couple of weeks ago. > Gul > Xml snippet > ========== > > > String > > > Code snippet > ========== > Iterator children = element.getChildren(); > while (children.hasNext()) { > OMElement root = (OMElement) children.next(); > System.out.println("ELEMENT = " + root.toString()); > OMElement temp = root.getFirstChildWithName(new QName( > "http://example.com", "name")); > if (temp != null) { > System.out.println("NAME = " + temp.getText()); > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org