You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jens Schumann (JIRA)" <ji...@apache.org> on 2006/04/17 17:57:18 UTC
[jira] Updated: (AXIS2-574) NullPointer in XMLBeans Factory.parse()
after OMElement.toString()
[ 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