Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 67515 invoked from network); 4 Jan 2011 13:57:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jan 2011 13:57:07 -0000 Received: (qmail 31860 invoked by uid 500); 4 Jan 2011 13:57:06 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 31534 invoked by uid 500); 4 Jan 2011 13:57:06 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 31526 invoked by uid 99); 4 Jan 2011 13:57:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jan 2011 13:57:05 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of afkham@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-iw0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jan 2011 13:56:57 +0000 Received: by iwn40 with SMTP id 40so15801764iwn.32 for ; Tue, 04 Jan 2011 05:56:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=WSwJcyC5a40ZtAx7GGmnNhjWmXnIr6dfP9yptLv4l6w=; b=wZhM2pTPoeP4iHsuLcoA2eSO1n97JMO7EyuJSto7urd9QaJyvH0B6jo299uVknk5il tGw8OT0Zuz5D7+8ziD/VaixDe06e1rKypqIqiH0YaXaL+FXlxgeVM0FUyU7S7Pgf7Kwo MYw701N2gSMl/g+Qh6BlK0VwKw+W5aDqy3ugg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=nvNRBc40l2MY2gsJxWPLPeF8tSWz2q5Tgr3OwQsakJaeKmCNbiZyZZxNLh1BeC7Ej9 TmuchNsvZ5cFwmNCSrn/SQS0Z0btFNLbSs3SxO8Vu6kr7fOfbn04lWUJqEtsoAv6Jk9l 2KBH8Fk8ud5MjQAU1PxIi+XzBAXz/hUmHsgsU= Received: by 10.231.37.129 with SMTP id x1mr5657220ibd.1.1294149396610; Tue, 04 Jan 2011 05:56:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.16.133 with HTTP; Tue, 4 Jan 2011 05:56:16 -0800 (PST) From: Afkham Azeez Date: Tue, 4 Jan 2011 19:26:16 +0530 Message-ID: Subject: MTOM broken? To: java-dev@axis.apache.org Content-Type: multipart/alternative; boundary=0003255740ce123ef6049905a3d4 X-Virus-Checked: Checked by ClamAV on apache.org --0003255740ce123ef6049905a3d4 Content-Type: text/plain; charset=ISO-8859-1 Is MTOM working properly in the current Axis2 trunk? We have some services with the enableMTOM parameter set to true and when we invoke those services using stubs generated using WSDL2Java, we get this error on the client side. Basically, the client cannot process the response it received. com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '-' (code 45) in prolog; expected '<' at [row,col {unknown-source}]: [1,1] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:648) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225) at org.apache.axiom.util.stax.dialect.DisallowDoctypeDeclStreamReaderWrapper.next(DisallowDoctypeDeclStreamReaderWrapper.java:34) at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225) at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:204) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:154) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:140) at org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:67) at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:179) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) If enableMTOM is set to false either in the service or the relevant operation, the invocation returns successfully. These services & clients were working fine earlier. Any idea what could have gone wrong? Thanks Azeez * * --0003255740ce123ef6049905a3d4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Is MTOM working properly in the current Axis2 trunk?

We = have some services with the enableMTOM parameter set to true and when we in= voke those services using stubs generated using WSDL2Java, we get this erro= r on the client side. Basically, the client cannot process the response it = received.

com.ctc.wstx.exc.WstxUnexpectedCharEx= ception: Unexpected character '-' (code 45) in prolog; expected = 9;<'
=A0at [row,col {unknown-source}]: [1,1]
at com.ctc.wstx.sr.StreamScanner.throwUnexpecte= dChar(StreamScanner.java:648)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStrea= mReader.java:2047)
at com.ctc.wstx.sr.Bas= icStreamReader.next(BasicStreamReader.java:1069)
at org.apache.axiom.util.stax.wrapper.XMLSt= reamReaderWrapper.next(XMLStreamReaderWrapper.java:225)
at org.apache.axiom.ut= il.stax.dialect.DisallowDoctypeDeclStreamReaderWrapper.next(DisallowDoctype= DeclStreamReaderWrapper.java:34)
at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrappe= r.next(XMLStreamReaderWrapper.java:225)
at org.apache.axiom.om= .impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681)
at org.apache.axiom.om.impl.b= uilder.StAXOMBuilder.next(StAXOMBuilder.java:214)
at org.apache.axiom.so= ap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.j= ava:204)
at org.a= pache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPMod= elBuilder.java:154)
at org.apache.axiom.so= ap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java= :140)
at org.apac= he.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:67)
at org.apache.axis2.tr= ansport.TransportUtils.createDocumentElement(TransportUtils.java:179)
=
at org.apache.axis2.tr= ansport.TransportUtils.createSOAPMessage(TransportUtils.java:145)
at org.apache.axis2.tr= ansport.TransportUtils.createSOAPMessage(TransportUtils.java:108)
at org.apache.axis2.transp= ort.TransportUtils.createSOAPMessage(TransportUtils.java:67)
at org.apache.axis2.de= scription.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:3= 54)
at org.apache= .axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:42= 1)
at org.apache.axis2.de= scription.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)=
at org.apache.ax= is2.client.OperationClient.execute(OperationClient.java:165)


If enableMTOM is set to false either i= n the service or the relevant operation, the invocation returns successfull= y.=A0

These services & clients were working fi= ne earlier.=A0

Any idea what could have gone wrong?

Thanks
Azeez


--0003255740ce123ef6049905a3d4--