Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 2208 invoked from network); 6 Jun 2007 18:41:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 18:41:56 -0000 Received: (qmail 76846 invoked by uid 500); 6 Jun 2007 18:41:53 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 76798 invoked by uid 500); 6 Jun 2007 18:41:53 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 76504 invoked by uid 99); 6 Jun 2007 18:41:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 11:41:51 -0700 X-ASF-Spam-Status: No, hits=-99.2 required=10.0 tests=ALL_TRUSTED,INFO_TLD X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 11:41:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3D11071419A for ; Wed, 6 Jun 2007 11:41:26 -0700 (PDT) Message-ID: <18596508.1181155286247.JavaMail.jira@brutus> Date: Wed, 6 Jun 2007 11:41:26 -0700 (PDT) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-2757) problem with client execution in xmlbeans mode In-Reply-To: <18711577.1180710375641.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-2757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502024 ] Davanum Srinivas commented on AXIS2-2757: ----------------------------------------- We've resolved this issue in latest svn. You should be able to work w/o setting the qualified atrribute. > problem with client execution in xmlbeans mode > ---------------------------------------------- > > Key: AXIS2-2757 > URL: https://issues.apache.org/jira/browse/AXIS2-2757 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Affects Versions: 1.2 > Reporter: Stephane Roy > > There is a problem to create a web service with the xmlbeans mode. I tried the following scenario in Axis2.1.1.1 and Axis2.1.2 but I have the same error each time. > 1) I generate the server part with the command: > $AXIS2_HOME/bin/wsdl2java.sh -uri myService.wsdl -p my.package -o /tmp/my/dir/server -d xmlbeans -s -wv 1.1 -ss -sd > 2) I compile and deploy the server in Tomcat > 3) I generate the client part with the command: > $AXIS2_HOME/bin/wsdl2java.sh -uri myService.wsdl -p my.package -o /tmp/my/dir/client -d xmlbeans -s > 4) I compile and start the client and I got the following error as soon as the client tries to call any method of the web service: > java.lang.NullPointerException > at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteDefaultNs(BaseNsStreamWriter.java:529) > at com.ctc.wstx.sw.SimpleNsStreamWriter.writeDefaultNamespace(SimpleNsStreamWriter.java:113) > at com.ctc.wstx.sw.SimpleNsStreamWriter.writeNamespace(SimpleNsStreamWriter.java:121) > at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeNamespace(MTOMXMLStreamWriter.java:148) > at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElement(StreamingOMSerializer.java:238) > at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:71) > at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:54) > at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:490) > at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:783) > at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808) > at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:234) > at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:222) > at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:808) > at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:418) > at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:55) > at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84) > at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) > at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) > at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) > at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) > at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) > at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) > at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558) > at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176) > at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73) > at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305) > at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330) > at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) > at my.package.myServiceStub.myMethod(myServiceStub.java:xxx) > After analysis, I found a workaround to my problem. By analysing the web service example of the Axis2 tutorial, I noticed that the WSDL included this definition: > >>> > elementFormDefault="qualified" > >>> > Since I didn't have it in my web service, I added this definition in my XSD and the NullPointerException doesn't not occur anymore ! > If this definition is required in the XSD schema, Axis2 documentation should mention it. > Thanks in advance. > PS: This problem has been submitted to the User mailing list: > http://marc.info/?l=axis-user&m=117915717919750&w=2 -- 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