升级后Camel sftp组件启动失败

时间:2013-01-13 23:54:42

标签: apache-camel jsch

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

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

  

20130113 15:28:54,509 INFO [Camel(camel-1)thread#0 -   file://../test_outbound/] RemoteFileProducer [193]:已连接和   登录:   端点[?SFTP:// SFTP用户@本地/来电断开=真安培; privateKeyFile = xyz.ppk&安培; privateKeyFilePassphrase = ** ]   20130113 15:28:54,528 WARN [Camel(camel-1)thread#0 -   file://../test_outbound/] RemoteFileProducer [71]:写入文件失败   with:无法将目录更改为:home 20130113 15:28:54,528 DEBUG   [Camel(camel-1)thread#0 - file://../test_outbound/]   RemoteFileProducer [86]:断开连接:   端点[?SFTP:// SFTP用户@本地/来电断开=真安培; 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 - >捕获异常,由于套接字关闭而留下主循环

不确定为什么会这样?感谢任何想法,谢谢。

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)线程#0 - sftp:// user @ host / outgoing] SftpOperations [339]:   getCurrentDirectory()20130114 18:42:52,959 TRACE [Camel(camel-1)   线程#0 - sftp:// user @ host / outgoing] SftpConsumer [68]:   来自absolutePath的doPollDirectory:outgoing,dirName:null 20130114   18:42:52,959 TRACE [Camel(camel-1)thread#0 -   sftp:// user @ host / outgoing] SftpOperations [348]:   changeCurrentDirectory(outgoing)20130114 18:42:52,959 TRACE [Camel   (camel-1)线程#0 - sftp:// user @ host / outgoing] SftpOperations [389]:   更改目录:传出20130114 18:42:52,966 TRACE [Camel   (camel-1)线程#0 - sftp:// user @ host / outgoing] SftpConsumer [81]:   投票目录:传出20130114 18:42:52,966 TRACE [Camel   (camel-1)线程#0 - sftp:// user @ host / outgoing] SftpOperations [415]:   listFiles(。)20130114 18:42:52,982 TRACE [Camel(camel-1)thread#0 -   sftp:// user @ host / outgoing] SftpConsumer [94]:在目录中找到2:   传出20130114 18:42:52,982 TRACE [Camel(camel-1)thread#0 -   sftp:// user @ host / outgoing] SftpOperations [348]:   changeCurrentDirectory(/ home / sftp-user)20130114 18:42:52,982 TRACE   [Camel(camel-1)线程#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(camel-1)线程#0 - sftp:// user @ host / outgoing]   SftpOperations [389]:更改目录:sftp-user 20130114   18:42:53,000 DEBUG [Camel(camel-1)thread#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]:已连接和   登录:   端点[SFTP://用户@主机/传入断开=真安培; knownHostsFile = known_hosts中&安培; privateKeyFile = SFTP-user.ppk&安培; privateKeyFilePassphrase = ** &安培;隔板=自动]   20130114 19:15:53,530 TRACE [Camel(camel-1)thread#0 -   file://../test_outbound/] SftpOperations [305]:   buildDirectory(传入,错误)20130114 19:15:53,530 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 [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)thread#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)......都没有用。

1 个答案:

答案 0 :(得分:0)

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

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