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 3656010805 for ; Thu, 29 Aug 2013 03:11:45 +0000 (UTC) Received: (qmail 83523 invoked by uid 500); 29 Aug 2013 03:11:43 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 83356 invoked by uid 500); 29 Aug 2013 03:11:43 -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 83348 invoked by uid 99); 29 Aug 2013 03:11:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 03:11:41 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.220.51 as permitted sender) Received: from [209.85.220.51] (HELO mail-pa0-f51.google.com) (209.85.220.51) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Aug 2013 03:11:35 +0000 Received: by mail-pa0-f51.google.com with SMTP id lf1so302423pab.24 for ; Wed, 28 Aug 2013 20:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:content-disposition; bh=vLf7JSUFFtU1HH2HsVDkzsZbC+/ocKofn/j9bUdBJSg=; b=ybEVQBk78tUrqquALHASyxdN/0HAjnoeT5fLvR/pTBczEVx0j5ZT7K2X/hqsJvymrg 5oHNt2mm1tzOaHCRWfNAbSXXsbcEDauOVv324bJe3PTxhXICHSqOm1fgGoGWUfSAfMVi r3BX7AgSsYQeu1LLlZRurnl4J5vOOjlibh6zqiK30tL2k4uGRP1lvnFHqO4fYwWaE3oE RagJWA7GC17sAWssqHGL4XHEDptS0XRvE6CSyP//KJu5snhZH6lPlEeqoj4JSGR6xy+k b6hbide26JBTjaNpTl+6sczvvsU4piohir46Jeuto2T54UldqjGxpBVLiRYMTXL/JQbR epwg== X-Received: by 10.66.218.9 with SMTP id pc9mr1756152pac.162.1377745874543; Wed, 28 Aug 2013 20:11:14 -0700 (PDT) Received: from [10.66.16.122] ([203.114.244.88]) by mx.google.com with ESMTPSA id ta10sm37450402pab.5.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 28 Aug 2013 20:11:13 -0700 (PDT) Date: Thu, 29 Aug 2013 11:11:05 +0800 From: Willem jiang To: users@camel.apache.org Message-ID: In-Reply-To: <1377739406173-5738179.post@n5.nabble.com> References: <1377739406173-5738179.post@n5.nabble.com> Subject: Re: Issue when using ZipSplitter and sending entries to a file endpoint X-Mailer: sparrow 1.6.4 (build 1176) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org It looks like a bug of camel. Can you fill a JIRA and submit a simple test case to show the error=3F -- =20 Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) = (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On Thursday, August 29, 2013 at 9:23 AM, abdiels wrote: > Hello, > =20 > I found this problems and I am still scratching my head, maybe you guys= > can help me...I have a route like this: > =20 > //Compressed =46iles Route > //This route decompresses the files and sends them back to be > registered > from(=22seda:decompress=46iles=22).routeId(=22Decompress=46iles=22) > .split(new ZipSplitter()).streaming().shareUnitOfWork() > .log(=22LET'S SEE WHERE THIS GOES=21=21=21=22) > .choice() > .when(simple(=22=24=7Bproperty.CamelSplitComplete=7D =3D=3D false=22)) > .log(=22ENTRIES=21=21=21=21=22) > =20 > .to(=22file:=7B=7BfmsSys.Client=46ileArchiveRoot=7D=7D=3FfileName=3D=24= =7Bheader.=22 + > =46MSHeaders.ARCHIVE=5FPARTIAL=5FPATH + =22=7D/=24=7Bheader.zip=46ileNa= me=7D=22) > //.to(=22activemq:queue:ZipChild=46iles=22) > .when(simple(=22=24=7Bproperty.CamelSplitComplete=7D =3D=3D true=22)) > .log(=22ZIP=46ILE MULTIPLE ENTRIES CamelSplitComplete - > True=22) > .to(=22seda:CleanUp=22) //Todo: Make sure this is the > right place. > .otherwise() > .log(=22OHTERWISE=21=21=21=21=22) > .throwException(new =46MSException(=22Unexpected Result in > Un-Zipping=21=21=22, null)) > .end() > .log(=22AT THE END=21=21=21=21=21=21=22) > ; > =20 > The Zip =46ile that I am using to test contains two entries and I am us= ing > Camel 2.11.0 > =20 > When I run this I get: > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O LET'S= > SEE WHERE THIS GOES=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O =20 > ENTRIES=21=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O AT TH= E > END=21=21=21=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O LET'S= > SEE WHERE THIS GOES=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O =20 > ENTRIES=21=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O AT TH= E > END=21=21=21=21=21=21 > =20 > Those print outs are for the entries...the Actual Zip file never gets i= n > there as I would expect. Now let's say comment out the to(=22file...=22= ) line > and replace for the active MQ line or pretty much anything else then I = get > what I would expect: > =20 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O LET'S= > SEE WHERE THIS GOES=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O =20 > ENTRIES=21=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O AT TH= E > END=21=21=21=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O LET'S= > SEE WHERE THIS GOES=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O =20 > ENTRIES=21=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O AT TH= E > END=21=21=21=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O LET'S= > SEE WHERE THIS GOES=21=21=21 > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O =20 > ZIP=46ILE MULTIPLE ENTRIES CamelSplitComplete - True > =5Bad =230 - seda://decompress=46iles=5D Decompress=46iles IN=46O AT TH= E > END=21=21=21=21=21=21 > =20 > Some how when I put a to(=22file:...=22) it does not work as expected..= .I even > removed the choice and just left the splitting and still the does not w= ork, > it works like the first example. I tried looking here in the forum, in = the > book and all over the web and did not really stumble upon an answer. I > thought maybe it had to do with the end or endChoice, but that does not= seem > to be it since I removed the choice, like I said and that did not do it= . I > wonder if there is an issue with the combination ZipSplitter and > to(=22file:...). > =20 > Please advice, > =20 > Thank you, > =20 > Abdiel > =20 > =20 > =20 > =20 > =20 > -- > View this message in context: http://camel.465427.n5.nabble.com/Issue-w= hen-using-ZipSplitter-and-sending-entries-to-a-file-endpoint-tp5738179.ht= ml > Sent from the Camel - Users mailing list archive at Nabble.com (http://= Nabble.com).