java - 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)
解决方案
推荐阅读
- excel - 如何删除在 1 列中具有相同值且在另一列中具有相同对应值的行?(值是文本)
- python-3.x - 使用 pd.IntervalIndex 插入新数据列时出错
- java - JPA2 Criteria Query以选择表A中未在表B中找到引用的记录
- linux - 根据字符串中的某个值进行排序。
- python - 逐句查找文本中的关键字
- ruby-on-rails - 偏执狂 gem 实现到没有模型的表
- php - 是否可以在 CodeIgniter 中使用手动 SQL 查询?
- asp.net - AsyncFileUpload 在用户控件的 UpdatePanel 中导致回发
- angular - MEAN.io 创建 CRUD 应用程序
- azure - Azure ARM 模板 - 嵌套资源参考