Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 85658 invoked from network); 15 Apr 2010 11:38:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Apr 2010 11:38:15 -0000 Received: (qmail 33493 invoked by uid 500); 15 Apr 2010 11:38:15 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 33299 invoked by uid 500); 15 Apr 2010 11:38:12 -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 33284 invoked by uid 99); 15 Apr 2010 11:38:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Apr 2010 11:38:11 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Apr 2010 11:38:06 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1O2NOD-0002mz-RM for users@camel.apache.org; Thu, 15 Apr 2010 04:37:45 -0700 Message-ID: <28254146.post@talk.nabble.com> Date: Thu, 15 Apr 2010 04:37:45 -0700 (PDT) From: watcher To: users@camel.apache.org Subject: SFTP rename problems MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: patrick@daly.ws Apache Camel 2.2 Windows Server 2003 I'm running an application that polls an SFTP server. I works to a point but after some time the applications fails trying to get an exclusive lock on the file. Whick seems to indicate that it is a permission problem. However restarting the application (camel) fixes the issue. Could it be a fault with camel? [code] [/code] [code] 15 Apr 2010 10:17:57,077 ERROR [Camel thread 0: SftpComponent] SftpConsumer.log(248) | Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot rename file from: user/incoming/test_file.pdf to: test_file.pdf.camelExclusiveReadLock] org.apache.camel.component.file.GenericFileOperationFailedException: Cannot rename file from: user/incoming/test_file.pdf to: test_file.pdf.camelExclusiveReadLock at org.apache.camel.component.file.remote.SftpOperations.renameFile(SftpOperations.java:205) at org.apache.camel.component.file.strategy.GenericFileRenameExclusiveReadLockStrategy.acquireExclusiveReadLock(GenericFileRenameExclusiveReadLockStrategy.java:68) at org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport.begin(GenericFileProcessStrategySupport.java:44) at org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.begin(GenericFileRenameProcessStrategy.java:38) at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:221) at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:137) at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:103) at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:106) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) at java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: 3: at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2287) at com.jcraft.jsch.ChannelSftp.rename(ChannelSftp.java:1479) at org.apache.camel.component.file.remote.SftpOperations.renameFile(SftpOperations.java:202) ... 16 more [/code] -- View this message in context: http://old.nabble.com/SFTP-rename-problems-tp28254146p28254146.html Sent from the Camel - Users mailing list archive at Nabble.com.