Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1677BD659 for ; Mon, 9 Jul 2012 10:47:38 +0000 (UTC) Received: (qmail 76960 invoked by uid 500); 9 Jul 2012 10:47:37 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 76768 invoked by uid 500); 9 Jul 2012 10:47:37 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 76541 invoked by uid 99); 9 Jul 2012 10:47:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2012 10:47:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 546F2141887 for ; Mon, 9 Jul 2012 10:47:35 +0000 (UTC) Date: Mon, 9 Jul 2012 10:47:35 +0000 (UTC) From: "jessy (JIRA)" To: issues@commons.apache.org Message-ID: <1440842193.22191.1341830855347.JavaMail.jiratomcat@issues-vm> In-Reply-To: <275942066.13241.1341564576653.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Comment Edited] (COMPRESS-194) Unable to create a TAR file that contains an entry which is >8 GB in size. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COMPRESS-194?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13= 409300#comment-13409300 ]=20 jessy edited comment on COMPRESS-194 at 7/9/12 10:47 AM: --------------------------------------------------------- Stefan, I tried to setBigNumberMode to tarOutputStream.BIGNUMBER_STAR [ =3D1 ].=20 However, i found that tarring completes without any exceptions, and shows t= he tar archive size as 9GB(which is my input of 9GB content file). But ,when i tried to unzip using winrar( windows ), I was unsuccessful in o= pening this tar. Got the error dialog "The archive is corrupt=E2=80=9D=20 When I tried to open the tar thru windows right click menu , I found my con= tent file size is 0 bytes. I have taken care to close all streams .=20 I have attached my code snippet with this thread.=20 Could you kindly look at my below code snippet and suggest what might be th= e rootcause for this.=20 Regards, Jes =20 was (Author: jessy_2012): Stefan, I tried to setBigNumberMode to tarOutputStream.BIGNUMBER_STAR [ =3D1 ].=20 However, i found that tarring completes without any exceptions, and shows t= he tar archive size as 9GB(which is my input of 9GB content file). But ,when i tried to unzip( windows ), I was unsuccessful in opening this t= ar. Got the error dialog "The archive is corrupt=E2=80=9D=20 When I tried to open the tar thru windows right click menu , I found my con= tent file size is 0 bytes. I have taken care to close all streams .=20 I have attached my code snippet with this thread.=20 Could you kindly look at my below code snippet and suggest what might be th= e rootcause for this.=20 Regards, Jes =20 > Unable to create a TAR file that contains an entry which is >8 GB in size= .=20 > -------------------------------------------------------------------------= -- > > Key: COMPRESS-194 > URL: https://issues.apache.org/jira/browse/COMPRESS-194 > Project: Commons Compress > Issue Type: Bug > Components: Archivers > Affects Versions: 1.4.1 > Environment: I am using win xp and Red HatLinux 5.1v, but this sh= ould be platform independent. > Reporter: jessy > Priority: Critical > Fix For: 1.4 > > Attachments: tarImplntion.txt > > > The common-compress-1.4.1 api says it supports unlimited file sizes for t= ar and untar operations. [http://ant.apache.org/antlibs/compress/] > Only Untar operations on a file > 8GB is fixed, > But creating a tar on a file >8GB is not working. > When I try to do " tarOutputStream.putArchiveEntry(archiveEntry); "=20 > i get the below exception.=20 > java.lang.RuntimeException: entry size '9633985364' is too big ( > 858993= 4591 ) > =09at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.fa= ilForBigNumber(TarArchiveOutputStream.java:572) > =09at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.fa= ilForBigNumbers(TarArchiveOutputStream.java:557) > =09at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.pu= tArchiveEntry(TarArchiveOutputStream.java:297) > Looking for a fix ..=20 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira