axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Schumann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-574) NullPointer in XMLBeans Factory.parse() after OMElement.toString()
Date Mon, 17 Apr 2006 15:57:19 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-574?page=comments#action_12374771 ] 

Jens Schumann commented on AXIS2-574:
-------------------------------------

Stacktrace for the error:

17:53:21,159 ERROR [TestApiPortMessageReceiverInOut] Error processing 
java.lang.RuntimeException: Data binding error
        at test.TestApiPortMessageReceiverInOut.fromOM(TestApiPortMessageReceiverInOut.java:137)
        at test.TestApiPortMessageReceiverInOut.invokeBusinessLogic(TestApiPortMessageReceiverInOut.java:56)
        at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:408)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:288)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:160)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NullPointerException
        at org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.java:3184)
        at org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1216)
        at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
        at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
        at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
        at foo.bar.RequestDocument$Factory.parse(Unknown Source)
        at test.TestApiPortMessageReceiverInOut.fromOM(TestApiPortMessageReceiverInOut.java:129)
        ... 26 more                                

> 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


Mime
View raw message