axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gul Onural" <>
Subject RE: Axis2 OMElement navigation is broken
Date Tue, 07 Nov 2006 01:41:24 GMT
 I am trying to understand this issue further. I have checked the axiom
jar files in the Axis2 RC1.1 distribution to compare with working ones.

I have an Axis2 distribution from Sept 27 and Axiom OM navigation was
working there. The axiom jar files in that distribution are 1.1.1 (for
example axiom-impl-1.1.1.jar).

The axiom jar files come with the Axis2 RC1.1. nightly don't have
versions in their names.

What version of axiom is used in Axis2 RC1.1 nightly? Does Axis2 use
nightly build of axiom or release version of axiom ?

If I cannot navigate on the OMElement using axiom, what would you
recommend as a workaround, if there is any? I am using RawXML message
receivers and I am not using generated code to avoid wsdl2java bugs
(although it doesn't seem to be a good decision anymore because of the
axiom navigation issue below).


-----Original Message-----
From: Gul Onural (JIRA) [] 
Sent: Monday, November 06, 2006 4:40 PM
To: Onural, Gul (CAR:SI12)
Subject: [jira] Created: (AXIS2-1625) Axis2 OMElement navigation is

Axis2 OMElement navigation is broken

                 Key: AXIS2-1625
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: om
            Reporter: Gul Onural
            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. 


Xml snippet
<tns:CreateSimpleXXXRequest xsi:schemaLocation="
CommonTypes.xsd" xmlns:tns=""


Code snippet 
Iterator children = element.getChildren(); 
while (children.hasNext()) { 
OMElement root = (OMElement); 
  System.out.println("ELEMENT = " + root.toString()); 
    OMElement temp = root.getFirstChildWithName(new QName( 
       "", "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:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message