1

我将骆驼从 2.8.0 升级到 2.10.3 版本,我的 sftp 组件开始失败。Afaik,sftp 组件默认使用逐步,并且在升级之前更改目录没有问题。

下面是我在骆驼/jsch 上看到的日志条目

20130113 15:28:54,509 INFO [Camel (camel-1) thread #0 - file://../test_outbound/] RemoteFileProducer[193]:连接并登录到:Endpoint[sftp://sftp-user@localhost /incoming?disconnect=true&privateKeyFile=xyz.ppk&privateKeyFilePassphrase= ** ] 20130113 15:28:54,528 WARN [Camel (camel-1) thread #0 - file://../test_outbound/] RemoteFileProducer[71]: 写入文件失败与:无法将目录更改为:home 20130113 15:28:54,528 DEBUG [Camel (camel-1) thread #0 - file://../test_outbound/] RemoteFileProducer[86]:断开连接:端点 [sftp:// sftp-user@localhost/incoming?disconnect=true&privateKeyFile=xyz.ppk&privateKeyFilePassphrase= **] 20130113 15:28:54,529 INFO [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations$JSchLogger[259]: JSCH -> 从 localhost 端口 22 断开连接 20130113 15:28:54,529 INFO [连接线程 localhost 会话] SftpOperations$JSchLogger[259]: JSCH -> Caught an exception, 由于套接字关闭而导致主循环

不知道为什么会这样?任何想法表示赞赏,谢谢。

cd 适用于 v2.8.0

20130114 18:42:52,956 INFO [Camel (camel-1) thread #0 - sftp://user@host/outgoing] RemoteFileConsumer[133]:连接并登录到:sftp://user@host:22 20130114 18 :42:52,956 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations [339]: getCurrentDirectory() 20130114 18:42:52,959 TRACE [Camel (camel-1) thread # 0 - sftp://user@host/outgoing] SftpConsumer [68]: doPollDirectory from absolutePath: 传出, dirName: null 20130114 18:42:52,959 TRACE [Camel (camel-1) thread #0 - sftp://user@主机/传出] SftpOperations [348]:changeCurrentDirectory(传出)20130114 18:42:52,959 TRACE [骆驼(camel-1)线程#0 - sftp://user@host/outgoing] SftpOperations [389]:更改目录:传出20130114 18:42:52,966 TRACE [骆驼 (camel-1) 线程 #0 - sftp://user@host/outgoing] SftpConsumer [81]:轮询目录:传出 20130114 18:42:52,966 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[415]: listFiles(.) 20130114 18:42:52,982 TRACE [Camel (camel-1) 线程 #0 - sftp://user@host/outgoing] SftpConsumer [94]:在目录中找到 2:传出 20130114 18:42:52,982 TRACE [Camel (camel-1) 线程 #0 - sftp: //user@host/outgoing] SftpOperations[348]: changeCurrentDirectory(/home/sftp-user) 20130114 18:42:52,982 TRACE [Camel (camel-1) thread #0 - sftp://user@host/outgoing] SftpOperations[389]:更改目录:/ 20130114 18:42:52,988 TRACE [Camel (camel-1) 线程 #0 - sftp://user@host/outgoing] SftpOperations[389]:更改目录:home 20130114 18:42 :52,994 TRACE [骆驼(camel-1)线程#0-sftp://user@host/outgoing] SftpOperations [389]:更改目录:sftp-user 20130114 18:42:53,000 调试 [Camel (camel-1) 线程 #0 - sftp://user@host/outgoing] GenericFileConsumer[84]:轮询花费 0.044 秒:传出

并以 2.10.3 失败

20130114 19:15:53,530 INFO [Camel (camel-1) thread #0 - file://../test_outbound/] RemoteFileProducer[193]:连接并登录到:Endpoint[sftp://user@host/incoming ?disconnect=true&knownHostsFile=known_hosts&privateKeyFile=sftp-user.ppk&privateKeyFilePassphrase= **&separator=Auto] 20130114 19:15:53,530 TRACE [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations[305]: buildDirectory(incoming,false) 20130114 19:15:53,530 TRACE [骆驼 (camel-1) 线程 #0 - file://../test_outbound/] SftpOperations[372]: getCurrentDirectory() 20130114 19:15:53,670 TRACE [骆驼 (camel-1) 线程 #0 - 文件:/ /../test_outbound/] SftpOperations[381]: changeCurrentDirectory(/home/sftp-user) 20130114 19:15:53,670 TRACE [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations [372]:getCurrentDirectory() 20130114 19:15:53,670 TRACE [Camel (camel-1) 线程 #0 - file://../test_outbound/] SftpOperations[430]:更改目录:\ 20130114 19:15:53,749 TRACE [Camel (camel-1) thread #0 - file://../test_outbound/] SftpOperations[430]: 改变目录: home 20130114 19:15:53,796 WARN [Camel (camel-1) thread #0 - file://../test_outbound/] RemoteFileProducer[71]:写入文件失败:无法将目录更改为:home

看起来分隔符很糟糕,但我尝试了所有 3 个选项(Windows、Unix、Auto)......没有一个工作。

4

1 回答 1

0

被接受为错误并已修复,请参阅

https://issues.apache.org/jira/browse/CAMEL-5970

于 2013-01-26T19:23:33.837 回答