首页 > 解决方案 > apache骆驼文件从sftp下载到本地目录。我收到此错误:com.jcraft.jsch.SftpException:没有这样的文件

问题描述

我能够使用骆驼路由定义中的以下 uri 从 sftp 目录成功下载一个/所有文件

my uri exp:
sftp://[username@]hostName[:port]/directoryName[?options]

当我使用选项作为

&move=.done

但我收到以下错误。我该如何解决?

o.a.c.c.file.remote.SftpOperations       : Cannot delete file: 
********************txt
com.jcraft.jsch.SftpException: No such file
       at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2873) ~[jsch-0.1.54.jar:na]
       at com.jcraft.jsch.ChannelSftp.rm(ChannelSftp.java:1985) ~[jsch-0.1.54.jar:na]
       at org.apache.camel.component.file.remote.SftpOperations.deleteFile(SftpOperations.java:438) ~[camel-ftp-2.20.2.jar:2.20.2]
       at org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport.renameFile(GenericFileProcessStrategySupport.java:100)

标签: javaapache-camelurisftpcamel-ftp

解决方案


推荐阅读