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 37BB110081 for ; Wed, 14 Aug 2013 06:55:04 +0000 (UTC) Received: (qmail 92284 invoked by uid 500); 14 Aug 2013 06:55:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 91884 invoked by uid 500); 14 Aug 2013 06:55:00 -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 91868 invoked by uid 99); 14 Aug 2013 06:54:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 06:54:58 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.219.54 as permitted sender) Received: from [209.85.219.54] (HELO mail-oa0-f54.google.com) (209.85.219.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 06:54:54 +0000 Received: by mail-oa0-f54.google.com with SMTP id o6so12884018oag.27 for ; Tue, 13 Aug 2013 23:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=FyN/6Kc1TKyi6HJpN+QzK4SmNxUII2W1B4RZg90MpA8=; b=p0e3ETkA7TGs1gOddqU2Awzi2aWfLq4IBacKVpkxMMcUPqh+bKC5OUt6q02GkLuEjV F4JsCQoDiurYKvOn/pDz0evY47ckEIAPDuNSQ4QhNFZY9xcIfx/mgvcdpHRT7mh/DEGa trEP2dm5EyRoLVsLn3NgWabSjU8GcyUvvs/YNMDwGEIK3mrjaSippVIus4ED9+N6euI/ jJvuJG/35riaZQ6tbFWrPMX763R/8688Q7YvHSiqIOX8nMzEz+FqB4MCOjThLQTk9Faz 4kR3totH7Q0mEQ4icTkhmE6mrmL+fG+WfsR00mQ66549USi3jQZFfSxjJTTigTO58Ai2 D43w== X-Received: by 10.182.213.133 with SMTP id ns5mr2827518obc.62.1376463274301; Tue, 13 Aug 2013 23:54:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.79.200 with HTTP; Tue, 13 Aug 2013 23:54:14 -0700 (PDT) In-Reply-To: <392E7ED9F266794DA841B356A22CF5B8D6830BF65D@MBXNDA.headstrong.com> References: <392E7ED9F266794DA841B356A22CF5B8D68304F68C@MBXNDA.headstrong.com> <392E7ED9F266794DA841B356A22CF5B8D6830BF65D@MBXNDA.headstrong.com> From: Claus Ibsen Date: Wed, 14 Aug 2013 08:54:14 +0200 Message-ID: Subject: Re: SFTP stops polling files when delete option is set to true To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi See here with some points what you can do to investigate a problem and what can help to fix it http://camel.apache.org/support On Wed, Aug 14, 2013 at 8:15 AM, Mohammad Shadab Ali wrote: > Hi, > > I found in one of the post that using localWorkingDirectory option resolv= e this issue, but this also doesn't solves the problem. > Please help I got stuck with this issue. > > Thank you in advance. > > > Regards, > Shadab > > -----Original Message----- > From: Mohammad Shadab Ali > Sent: Tuesday, August 13, 2013 3:03 PM > To: users@camel.apache.org > Subject: SFTP stops polling files when delete option is set to true > > Hi, > > I am using SFTP component to transfer files from secured FTP location. Wh= en I am using delete=3Dfalse then it polls multiple files without any error= , but when I use delete=3Dtrue then after polling and deleting few files it= gets stuck and stops polling the files with the following exception. > > > 6e54878ec6fdcdcdbd26 13.08.2013 12:11:07.899 *ERROR* [Camel (sftp2file) t= hread #9 - sftp] org.apache.camel.component.file.remote.SftpConsumer Caused= by: [org.apache.camel.component.file.GenericFileOperationFailedException -= Cannot retrieve file: /home/hs/SFTP/3 - Copy (5) - Copy.txt] org.apache.ca= mel.component.file.GenericFileOperationFailedException: Cannot retrieve fil= e: /home/hs/SFTP/3 - Copy (5) - Copy.txt > at org.apache.camel.component.file.remote.SftpOperations.= retrieveFileToFileInLocalWorkDirectory(SftpOperations.java:602) > at org.apache.camel.component.file.remote.SftpOperations.= retrieveFile(SftpOperations.java:470) > at org.apache.camel.component.file.GenericFileConsumer.pr= ocessExchange(GenericFileConsumer.java:333) > at org.apache.camel.component.file.remote.RemoteFileConsu= mer.processExchange(RemoteFileConsumer.java:94) > at org.apache.camel.component.file.GenericFileConsumer.pr= ocessBatch(GenericFileConsumer.java:175) > at org.apache.camel.component.file.GenericFileConsumer.po= ll(GenericFileConsumer.java:136) > at org.apache.camel.impl.ScheduledPollConsumer.doRun(Sche= duledPollConsumer.java:140) > at org.apache.camel.impl.ScheduledPollConsumer.run(Schedu= ledPollConsumer.java:92) > at java.util.concurrent.Executors$RunnableAdapter.call(Un= known Source) > at java.util.concurrent.FutureTask$Sync.innerRunAndReset(= Unknown Source) > at java.util.concurrent.FutureTask.runAndReset(Unknown So= urce) > at java.util.concurrent.ScheduledThreadPoolExecutor$Sched= uledFutureTask.access$301(Unknown Source) > at java.util.concurrent.ScheduledThreadPoolExecutor$Sched= uledFutureTask.run(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unkn= own Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unk= nown Source) > at java.lang.Thread.run(Unknown Source) Caused by: 4: > at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:980) > at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:870) > at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:849) > at org.apache.camel.component.file.remote.SftpOperations.= retrieveFileToFileInLocalWorkDirectory(SftpOperations.java:586) > ... 15 more > Caused by: java.io.IOException: inputstream is closed > at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2327= ) > at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2317= ) > at com.jcraft.jsch.ChannelSftp.checkStatus(ChannelSftp.ja= va:1930) > at com.jcraft.jsch.ChannelSftp._sendCLOSE(ChannelSftp.jav= a:1943) > at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java:975) > ... 18 more > > > I am using camel-2.9.0 > > Thanks in advance. > > > > Regards, > Shadab > > > ________________________________ > *** This e-mail (and any attachments), is confidential and may be privile= ged. It may be read, copied and used only by intended recipients. Unauthori= zed access to this e-mail (or attachments) and disclosure or copying of its= contents or any action taken in reliance on it is unlawful. Unintended rec= ipients must notify the sender immediately by e-mail/phone & delete it from= their system without making any copies or disclosing it to a third person.= *** > > This e-mail (and any attachments), is confidential and may be privileged.= It may be read, copied and used only by intended recipients. Unauthorized = access to this e-mail (or attachments) and disclosure or copying of its con= tents or any action taken in reliance on it is unlawful. Unintended recipie= nts must notify the sender immediately by e-mail/phone & delete it from the= ir system without making any copies or disclosing it to a third person. > > > *** This e-mail (and any attachments), is confidential and may be privile= ged. It may be read, copied and used only > by intended recipients. Unauthorized access to this e-mail (or attachment= s) and disclosure or copying of its > contents or any action taken in reliance on it is unlawful. Unintended re= cipients must notify the sender immediately > by e-mail/phone & delete it from their system without making any copies o= r disclosing it to a third person.*** > This e-mail (and any attachments), is confidential and may be privileged.= It may be read, copied and used only > by intended recipients. Unauthorized access to this e-mail (or attachment= s) and disclosure or copying of its > contents or any action taken in reliance on it is unlawful. Unintended re= cipients must notify the sender immediately > by e-mail/phone & delete it from their system without making any copies o= r disclosing it to a third person. > > --=20 Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen