[ http://issues.apache.org/jira/browse/AXIS2-574?page=all ]

Jens Schumann updated AXIS2-574:
--------------------------------

    Attachment: axis-574.tar.gz

Attached an archive containing the sources to demonstrate the bug. Provided 
.aar files should work with axis2.war upload out of the box.

Use TestApi.aar-without-build  (rename to .aar only) and execute RequestTest to 
see the error.

TestApi.aar-with-build will not throw NullPointerException. 

Changes to generated InOut class: I added line 52 and 53

 OMElement firstElement = msgContext.getEnvelope().getBody().getFirstElement();
  log.info(firstElement);

Sorry for the size;)


> NullPointer in XMLBeans Factory.parse() after OMElement.toString()
> ------------------------------------------------------------------
>
>          Key: AXIS2-574
>          URL: http://issues.apache.org/jira/browse/AXIS2-574
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Versions: 0.95
>     Reporter: Jens Schumann
>  Attachments: axis-574.tar.gz
>
> If I call toString() in my generated InOut Class on 
> msgContext.getEnvelope().getBody().getFirstElement() before calling 
> XMLBeans#Factory.parse() I get an NullPointer in 
> org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(). The 
> NullPointerException seems to be related to sending a SOAP Header and not 
> calling getEnvelipe().build() before calling tostring()
> For further discussion see
> http://marc.theaimsgroup.com/?l=axis-user&m=114523119514899&w=2
> I will attach an working example shortly.

-- 
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

Reply via email to