Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 44493 invoked from network); 1 Apr 2008 08:34:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Apr 2008 08:34:00 -0000 Received: (qmail 74703 invoked by uid 500); 1 Apr 2008 08:33:51 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 74680 invoked by uid 500); 1 Apr 2008 08:33:51 -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 74669 invoked by uid 99); 1 Apr 2008 08:33:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 01:33:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pzfreo@gmail.com designates 209.85.198.186 as permitted sender) Received: from [209.85.198.186] (HELO rv-out-0910.google.com) (209.85.198.186) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 08:33:08 +0000 Received: by rv-out-0910.google.com with SMTP id c24so997809rvf.28 for ; Tue, 01 Apr 2008 01:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=rOMXquUGJtBltPhxE2TqzpgAEnKnU5kZMDiSnE2dCoE=; b=dWVuw+MXcSq8hvHD5KhNBr+UK0pIdmZBy7vWkoNkFTuQdLj4qyzVfv++mKx4HqmGgtI7Owg0A0qPbf+1GiP+vEV2UykMrwj2dGISfDkE81/g6c9knBKxCb5ODoax0s5vdtYZBvCkLX2zUDFhcPSHgQbLRCndoJ+gdxxZi/Qa8WQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uN4ehZ1/PGxOPuipjm6mRQA0LECFqcSLMqP9Gd83xqjUHqDPTVvj4FB8ya+8DJ4570IxYU1KtapV6S/WAjBVtyOedmMoSALiLl+24j7myHQCjudT2O/0sD68pZvYJnhz319PgB24rTybASKJgx0zS4e/CW4+2zIIwjeTQ1LU/LE= Received: by 10.141.79.12 with SMTP id g12mr4073880rvl.182.1207038800755; Tue, 01 Apr 2008 01:33:20 -0700 (PDT) Received: by 10.140.171.8 with HTTP; Tue, 1 Apr 2008 01:33:20 -0700 (PDT) Message-ID: <88f5d710804010133h12df1458ld5e706ca94a4b109@mail.gmail.com> Date: Tue, 1 Apr 2008 09:33:20 +0100 From: "Paul Fremantle" To: axis-user@ws.apache.org Subject: Re: MTOM attachments larger than 2.1GB (Integer.MAX_VALUE?) In-Reply-To: <06187E87ED301441A11B7E71C0303E4B479184@server2.stvg.2interaction.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <06187E87ED301441A11B7E71C0303E4B479184@server2.stvg.2interaction.com> X-Virus-Checked: Checked by ClamAV on apache.org I believe if the file is cached correctly you can work around this by not accessing the file via Axiom but simply casting the DataSource as a FileDataSource and then working on the file directly. Of course we still need to fix Axiom! DataHandler dataHandler = (DataHandler)omText.getDataHandler(); FileDataSource fileDataSource = (FileDataSource)dataHandler.getDataSource(); File file = fileDataSource.getFile(); file.renameTo(new File("MyFile.bin")); Paul On Tue, Apr 1, 2008 at 9:08 AM, Roy Willy Haug wrote: > I have created an issue for this in Jira: > > https://issues.apache.org/jira/browse/AXIS2-3686 > > (I set fix version to 1.4, although I realize it might be too late. :-) > ) > > Regards Roy Willy Haug > > > > > > > -----Original Message----- > > From: Thilina Gunarathne [mailto:csethil@gmail.com] > > Sent: 1. april 2008 00:29 > > To: axis-user@ws.apache.org > > Subject: Re: MTOM attachments larger than 2.1GB (Integer.MAX_VALUE?) > > > > Please log a Jira with all these details... > > > > I think the fix needs start from the FileAccessor getSize() onwards.. > > > > thanks, > > Thilina > > > > On Mon, Mar 31, 2008 at 12:01 PM, Andreas Veithen > > wrote: > > > Roy, > > > > > > This seems to be a limitation of AXIOM that uses the int type for > all > > > length variables in the org.apache.axiom.attachments.Attachments > class > > > and various other classes it depends on. > > > > > > Regards, > > > > > > Andreas > > > > > > > > > > > > Quoting Roy Willy Haug : > > > > > > > Hi, > > > > > > > > > > > > > > > > We have a well working file transfer service that works with > files up > > to > > > > approximately 2.1 GB (probably Integer.MAX_VALUE: 2147483647 > bytes?). > > > > > > > > > > > > > > > > When transferring even larger files, Axis2 fails with the > following > > > > message: > > > > > > > > > > > > > > > > org.apache.axis2.AxisFault: Referenced Attachment not found > in > > the > > > > MIME Message. > > > > ContentID:1.urn:uuid:A5D5C69F8A5ED5E2571206965262714@apache.org > > > > > > > > > > > > > > > > > > > > > > > > What happens is: > > > > > > > > > > > > > > > > The client transfers the complete file to the server. > > > > > > > > The server correctly caches the file in the attachmentDIR folder. > > > > > > > > The AxisFault is thrown. > > > > > > > > > > > > > > > > The server-side cached file have the exact same byte-length as > the > > file > > > > the client sent, so every byte has been transferred. > > > > > > > > > > > > > > > > I am currently using Windows XP with NTFS and support for files > much > > > > larger than 2.1 GB on both sides, Axis2 1.3, document-literal > style, > > > > ADB, MTOM and caching to disk. > > > > > > > > > > > > > > > > Any ideas? > > > > > > > > > > > > > > > > The DataHandler that is supplied to the client stub is generated > like > > > > this: > > > > > > > > FileDataSource datasource = new > FileDataSource(localFile); > > > > > > > > dh = new DataHandler(datasource); > > > > > > > > > > > > > > > > > > > > > > > > Parts of my Axis2.xml file: > > > > > > > > true > > > > > > > > false > > > > > > > > true > > > > > > > > > name="attachmentDIR">C:/TEMP/da_server_temp/ > > > > > > > > 50000 > > > > > > > > > > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > > > > > Roy Willy Haug > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > > > > > > > > > > > -- > > Thilina Gunarathne - http://thilinag.blogspot.com > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-user-help@ws.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-user-help@ws.apache.org > > -- Paul Fremantle Co-Founder and VP of Technical Sales, WSO2 Apache Synapse PMC Chair 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