Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36509937B for ; Wed, 14 Dec 2011 15:14:21 +0000 (UTC) Received: (qmail 47299 invoked by uid 500); 14 Dec 2011 15:14:20 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 47264 invoked by uid 500); 14 Dec 2011 15:14:20 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 47241 invoked by uid 99); 14 Dec 2011 15:14:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 15:14:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Daniel.Baptista@performgroup.com designates 195.245.231.130 as permitted sender) Received: from [195.245.231.130] (HELO mail1.bemta5.messagelabs.com) (195.245.231.130) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 15:14:13 +0000 Received: from [195.245.231.99:33575] by server-6.bemta-5.messagelabs.com id 48/13-23505-E2DB8EE4; Wed, 14 Dec 2011 15:13:50 +0000 X-Env-Sender: Daniel.Baptista@performgroup.com X-Msg-Ref: server-9.tower-84.messagelabs.com!1323875630!7885137!1 X-Originating-IP: [62.254.204.191] X-StarScan-Version: 6.4.3; banners=performgroup.com,-,- X-VirusChecked: Checked Received: (qmail 28273 invoked from network); 14 Dec 2011 15:13:50 -0000 Received: from 191-204-254-62.static.virginmedia.com (HELO mail.performgroup.com) (62.254.204.191) by server-9.tower-84.messagelabs.com with AES128-SHA encrypted SMTP; 14 Dec 2011 15:13:50 -0000 Received: from PERFELEXC10.ptv.com ([169.254.1.62]) by PERFELEXC11.ptv.com ([169.254.2.77]) with mapi id 14.01.0289.001; Wed, 14 Dec 2011 15:13:49 +0000 From: Daniel Baptista To: "users@camel.apache.org" Subject: RE: Unmarshalling gzipped file Thread-Topic: Unmarshalling gzipped file Thread-Index: AQHMunHDJQKGa9Xx9UyYhwUKnbR/NZXbb0pA Date: Wed, 14 Dec 2011 15:13:49 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.116.110] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi,=20 Thanks for the prompt response Claus I guess I have a DataFormat to write.= =20 Cheers, Dan.=20 -----Original Message----- From: Claus Ibsen [mailto:claus.ibsen@gmail.com]=20 Sent: 14 December 2011 15:04 To: users@camel.apache.org Subject: Re: Unmarshalling gzipped file Hi The gzip data format does not support files (eg with ZipFileEntry) etc. I think we have a JIRA ticket to improve this. We love contributions :) On Wed, Dec 14, 2011 at 3:57 PM, Daniel Baptista wrote: > Hi All, > > I am trying to uncompress a gzipped file using the following route > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > > > However I am getting this exception.. > > java.util.zip.ZipException: incomplete literal/length tree > =A0 =A0 =A0 =A0at java.util.zip.InflaterInputStream.read(InflaterInputStr= eam.java:147) > =A0 =A0 =A0 =A0at java.util.zip.GZIPInputStream.read(GZIPInputStream.java= :92) > =A0 =A0 =A0 =A0at java.io.FilterInputStream.read(FilterInputStream.java:9= 0) > =A0 =A0 =A0 =A0at org.apache.camel.util.IOHelper.copy(IOHelper.java:105) > =A0 =A0 =A0 =A0at org.apache.camel.util.IOHelper.copy(IOHelper.java:92) > =A0 =A0 =A0 =A0at org.apache.camel.impl.GzipDataFormat.unmarshal(GzipData= Format.java:51) > > I have checked with 7zip and I am able to open the files located in c:/fo= o/downloaded and the properties (according to 7zip) =A0of the compressed fi= le is gzip. > > What am I doing wrong? > > Thanks, Dan. --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/