Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 32536 invoked from network); 14 Jun 2007 22:59:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jun 2007 22:59:17 -0000 Received: (qmail 68495 invoked by uid 500); 14 Jun 2007 22:59:11 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 68479 invoked by uid 500); 14 Jun 2007 22:59:11 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 68468 invoked by uid 99); 14 Jun 2007 22:59:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2007 15:59:11 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [69.147.97.96] (HELO web63711.mail.re1.yahoo.com) (69.147.97.96) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 14 Jun 2007 15:59:07 -0700 Received: (qmail 23525 invoked by uid 60001); 14 Jun 2007 22:58:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=BL5TpUJ5H7Vbss4E5tB6nfG7dA9qjQWHVi4FELj4IXDzO49FX3GgjwlGJgalVqOOfXT1LvRRP+Dm+obB/bdeknkaLZvlXKOpnwdyOzhftGqTxeoAYyA+svCGeo+wthhF8yrsO9zEG/6KpuwE/EcwMDKHagQJBkY0fOwO9pYpeTY=; X-YMail-OSG: pyQKycwVM1lkOW_3d.buPvqosbUJIJQ7nb0SFoMj3PzNq7BWlaZj06MnV3XWtsOOULVmk9cO3QGYQ4ZgoldJCc0igg-- Received: from [65.205.251.51] by web63711.mail.re1.yahoo.com via HTTP; Thu, 14 Jun 2007 15:58:46 PDT Date: Thu, 14 Jun 2007 15:58:46 -0700 (PDT) From: Chris Shah Subject: Re: Large Size files To: axis-user@ws.apache.org In-Reply-To: <668775.32385.qm@web63708.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2098345996-1181861926=:13598" Content-Transfer-Encoding: 8bit Message-ID: <197264.13598.qm@web63711.mail.re1.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-2098345996-1181861926=:13598 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I can see the following on my client : Exception in thread "main" java.lang.OutOfMemoryError: Java heap space Does this mean that MTOM is really not enabled ? Otherwise why would client run out of space ? Thanks for your help Chris Chris Shah wrote: I tried returning a response object consisting of an "xsd:string" and "xmime:base64Binary". basically just switched the request and response object types in the sample. Then I implemented the client and service code accordingly, and set enableMTOM in axis2.xml t true. I can download small files using the client. Large files give me the error below. Is it necessary to return an OMElement or a byte[]? Why will a base64Binary object not work? Why does it work then while uploading to the service and not while downloading ? Thanks for your help Chris Exception in thread "HttpConnection-8080-1" java.lang.IllegalStateException: Response already committed at org.apache.axis2.transport.http.server.AxisHttpResponseImpl.assertNotCommitted(AxisHttpResponseImpl. at org.apache.axis2.transport.http.server.AxisHttpResponseImpl.sendError(AxisHttpResponseImpl.java:120) at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:297) at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:184) at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:74) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor. at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java at java.lang.Thread.run(Thread.java:595) Paul Fremantle wrote: Chris Simply define a service that returns an OMElement (like the sample) or a byte[] It works in exactly the same way. Paul On 6/14/07, Chris Shah wrote: > I could successfully run the sample MTOM code in AXIS 2 installation to > upload large file ~ 200 MB. > What should I do to be able to download it from the service. Is there a > sample wsdl I cna look at somewhere ? > > Any pointers ? > > thx > Chris > > Paul Fremantle wrote: > Chris > > You should use the MTOM capability of Axis2. AFAIK Axis1 cannot cope > with 200Mb files. > > The Axis2 design allows streaming of large files. > See this guide: > http://ws.apache.org/axis2/1_2/mtom-guide.html > > Paul > > On 6/13/07, Chris Shah wrote: > > Hello, > > > > I am writing a WS specification for my service . What is the best way to > > expose zipped text files of size around 200 MB ( not more ) through this > > service ? > > > > Thanks > > Chris > > > > ________________________________ > > Boardwalk for $500? In 2007? Ha! > > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! > > Games. > > > > > > > -- > Paul Fremantle > Co-Founder and VP of Technical Sales, WSO2 > OASIS WS-RX TC Co-chair > > blog: http://pzf.fremantle.org > paul@wso2.com > > "Oxygenating the Web Service Platform", www.wso2.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > ________________________________ > Don't get soaked. Take a quick peak at the forecast > with theYahoo! Search weather shortcut. > > -- Paul Fremantle Co-Founder and VP of Technical Sales, WSO2 OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org paul@wso2.com "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org --------------------------------- Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. --------------------------------- We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. --0-2098345996-1181861926=:13598 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
I can see the following on my client :
 
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
 
Does this mean that MTOM is really not enabled ? Otherwise why would client run out of space ?
 
Thanks for your help
 
Chris

Chris Shah <chrs_shah@yahoo.com> wrote:
I tried returning a response object consisting of  an "xsd:string" and "xmime:base64Binary".
basically just switched the request and response object types in the sample. Then I implemented the client and service code accordingly, and set enableMTOM in axis2.xml t true.
 
I can download small files using the client. Large files give me the error below.
 
Is it necessary to return an OMElement or a byte[]? Why will a base64Binary object not work? Why does it work then while uploading to the service and not while downloading ?
 
Thanks for your help
Chris
 
 
Exception in thread "HttpConnection-8080-1" java.lang.IllegalStateException: Response already committed
        at org.apache.axis2.transport.http.server.AxisHttpResponseImpl.assertNotCommitted(AxisHttpResponseImpl.
        at org.apache.axis2.transport.http.server.AxisHttpResponseImpl.sendError(AxisHttpResponseImpl.java:120)
        at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:297)
        at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:184)
        at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:74)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
        at java.lang.Thread.run(Thread.java:595)
 


Paul Fremantle <pzfreo@gmail.com> wrote:
Chris

Simply define a service that returns an OMElement (like the sample) or a byte[]
It works in exactly the same way.

Paul

On 6/14/07, Chris Shah wrote:
> I could successfully run the sample MTOM code in AXIS 2 installation to
> upload large file ~ 200 MB.
> What should I do to be able to download it from the service. Is there a
> sample wsdl I cna look at somewhere ?
>
> Any pointers ?
>
> thx
> Chris
>
> Paul Fremantle wrote:
> Chris
>
> You should use the MTOM capability of Axis2. AFAIK Axis1 cannot cope
> with 200Mb files.
>
> The Axis2 design allows streaming of large files.
> See this guide:
> http://ws.apache.org/axis2/1_2/mtom-guide.html
>
> Paul
>
> On 6/13/07, Chris Shah wrote:
> > Hello,
> >
> > I am writing a WS specification for my service . What is the best way to
> > expose zipped text files of size around 200 MB ( not more ) through this
> > service ?
> >
> > Thanks
> > Chris
> >
> > ________________________________
> > Boardwalk for $500? In 2007? Ha!
> > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo!
> > Games.
> >
> >
>
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
> ________________________________
> Don't get soaked. Take a quick peak at the forecast
> with theYahoo! Search weather shortcut.
>
>


--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

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



Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.


We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list. --0-2098345996-1181861926=:13598--