axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-2667) xmlbeans on both client and service side throws NPE without envelope.build()
Date Tue, 15 May 2007 02:20:16 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-2667?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

robert lazarski updated AXIS2-2667:
-----------------------------------

    Attachment: LotesClient.java
                tissV2_01_01.xsd
                tissnetV2_01_01.xsd

> xmlbeans on both client and service side throws NPE without envelope.build() 
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-2667
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2667
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>    Affects Versions: 1.2
>         Environment: java 6, linux
>            Reporter: robert lazarski
>         Attachments: LotesClient.java, tissComplexTypesV2_01_01.xsd, tissGuiasV2_01_01.xsd,
tissLoteGuiasV2_01_01.wsdl, tissnetV2_01_01.xsd, tissSimpleTypesV2_01_01.xsd, tissV2_01_01.xsd
>
>
> This stack trace occurs client side: 
> [java] java.lang.NullPointerException
>      [java]     at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteDefaultNs(BaseNsStreamWriter.java:529)
>      [java]     at com.ctc.wstx.sw.SimpleNsStreamWriter.writeDefaultNamespace(SimpleNsStreamWriter.java:113)
>      [java]     at com.ctc.wstx.sw.SimpleNsStreamWriter.writeNamespace(SimpleNsStreamWriter.java:121)
>      [java]     at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeNamespace (MTOMXMLStreamWriter.java:148)
>      [java]     at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElement(StreamingOMSerializer.java:238)
>      [java]     at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode
(StreamingOMSerializer.java:71)
>      [java]     at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:54)
>      [java]     at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream
(OMSerializerUtil.java:490)
>      [java]     at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:783)
>      [java]     at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume
(OMElementImpl.java:808)
>      [java]     at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:234)
>      [java]     at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize
(SOAPEnvelopeImpl.java:222)
>      [java]     at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808)
>      [java]     at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume (OMNodeImpl.java:418)
>      [java]     at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:55)
>      [java]     at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java
:84)
>      [java]     at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
>      [java]     at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java
:1973)
>      [java]     at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
>      [java]     at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
>      [java]     at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
>      [java]     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>      [java]     at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>      [java]     at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558)
>      [java]     at org.apache.axis2.transport.http.HTTPSender.sendViaPost (HTTPSender.java:176)
>      [java]     at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
>      [java]     at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java
:305)
>      [java]     at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
>      [java]     at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
>      [java]     at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
>      [java]     at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
>      [java]     at br.hapvida.webservices.tissloteguias.endpoint.TissLoteGuiasStub.tissLoteGuias_Operation(TissLoteGuiasStub.java:215)
>      [java]     at org.test.LotesClient.invokeLotes(LotesClient.java:56)
>      [java]     at org.test.LotesClient.main (LotesClient.java:23)
> Manually editing the generated stub to invoke envelope.build() solves the client side
issue. However, server side simply throws NPE without a stacktrace or indication from where
it occurred. Editing the in / out MR to also invoke envelope.build() solves the server side
issue as well. 
> wsdl2java invoked as follows: 
>   <target name="wsdl_lotes" >
>       <delete dir="wsdl_lotes_output" />
>       <delete dir="${build}" />
>       <delete dir="${dist}" />
>       <mkdir dir="${build.classes}" />
>       <mkdir dir="${dist}" />
>       <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
>           <classpath refid="axis.classpath"/>
>           <arg value="-d"/>
>           <arg value="xmlbeans"/>
>           <arg value="-uri"/>
>           <arg file="wsdl/tissLoteGuiasV2_01_01.wsdl"/>
>           <arg value="-ss"/>
>           <arg value="-ssi"/>
>           <arg value="-g"/>
>           <arg value="-sd"/>
>           <arg value="-o"/>
>           <arg file="wsdl_lotes_output"/>
>           <arg value="-p"/>
>           <arg value="br.hapvida.webservices.tissLoteGuias.endpoint"/>
>       </java>
>       <!-- Move the schema folder to classpath -->
>       <move todir="${build.classes}">
>           <fileset dir="wsdl_lotes_output/resources">
>               <include name="*schema*/**/*.class"/>
>               <include name="*schema*/**/*.xsb"/>
>           </fileset>
>       </move>
>   </target>
> Relevent files annexed as attachments. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message