Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 23187 invoked from network); 19 Aug 2008 03:56:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Aug 2008 03:56:43 -0000 Received: (qmail 3705 invoked by uid 500); 19 Aug 2008 03:56:42 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 3680 invoked by uid 500); 19 Aug 2008 03:56:42 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 3668 invoked by uid 99); 19 Aug 2008 03:56:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Aug 2008 20:56:42 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2008 03:55:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D6207234C1AA for ; Mon, 18 Aug 2008 20:55:52 -0700 (PDT) Message-ID: <1398646932.1219118152862.JavaMail.jira@brutus> Date: Mon, 18 Aug 2008 20:55:52 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-834) Trailing slash missing in SftpConsumer In-Reply-To: <1316156942.1219064992555.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45052#action_45052 ] Claus Ibsen commented on CAMEL-834: ----------------------------------- Hmm strange. You can enable {{TRACE}} logging at {{org.apache.camel}} and then the logging might hint what could be wrong. > Trailing slash missing in SftpConsumer > -------------------------------------- > > Key: CAMEL-834 > URL: https://issues.apache.org/activemq/browse/CAMEL-834 > Project: Apache Camel > Issue Type: Bug > Components: camel-ftp > Affects Versions: 1.4.0 > Environment: Windows Vista Business, JDK 1.6.0_05 > Reporter: Aleksandar Vidakovic > > When this route > {code} > > > > > {code} > is configured the files in the remote directory are download, but subsequent calls of the method "pollDir" result in this exception: > {code} > [ Thread: 1 RemoteFileComponent] SftpConsumer WARN Caught SftpException:2: No such file > [ Thread: 1 RemoteFileComponent] SftpConsumer WARN Doing nothing for now, need to determine an appropriate action > [ Thread: 1 RemoteFileComponent] ScheduledPollConsumer WARN An exception occured while polling: Endpoint[sftp://someuser@hostname/path/to/directory/?password=secret&directory=true&binary=true&consumer.useFixedDelay=false&consumer.setNames=true&consumer.recursive=false]: No such file 2: No such file > {code} > As you can see the slash is definitely in the configured route. If I check for the missing slash and add it to the dir variable (line 115 in SftpConsumer) then the consumer works: > {code} > if(!dir.startsWith("/")) { > dir = "/" + dir; > } > {code} > Didn't have the time to have a closer look. The root cause of the missing slash is somewhere else. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.