2013-01-13 183 views
1

我将2.8.0版本的驼峰升级到2.10.3版本,我的sftp组件启动失败。 012faAfaik,sftp组件在默认情况下逐步使用,并且无需更改升级之前的目录。升级后骆驼sftp组件启动失败

下面是一个日志条目,我在骆驼参见/ jsch

20130113 15:28:54509 INFO [骆驼(骆驼-1)线#0 - 文件://../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]:Writing fil e failed with:无法将目录更改为:home 20130113 15:28:54,528调试 [Camel(camel-1)thread#0 - file://../test_outbound/] RemoteFileProducer [86]:断开连接: 端点: 20130113 15:28:[SFTP // SFTP用户@本地/来电断开=真& privateKeyFile = xyz.ppk & privateKeyFilePassphrase = **?] 54529 INFO [骆驼(骆驼-1)线#0 - sftpOperations $ JSchLogger [259]:JSCH - > 断开本地主机端口22 20130113 15:28:54,529信息 [连接线程本地主机会话] SftpOperations $ JSchLogger [259]: JSCH - >抓住一个例外,离开主体OOP由于插座关闭

不知道为什么会发生这种情况?任何想法表示感谢,谢谢。

CD可与V2.8.0

20130114 18:42:52956 INFO [骆驼(骆驼-1)线#0 - SFTP://用户@主机/传出] 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:outgoing,dirName:null 20130114 1 8: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)thread#0 - sftp:// user @ host/outgoing] SftpOperations [389]: 更改目录:传出20130114 18:42:52,966 TRACE [Camel (camel-1)thread#0 - sftp://用户@主机/传出] 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)thread#0- sftp:// user @ host/outgoing] SftpConsumer [94]:Found 2 in directory: outgoing 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) )thread#0 - sftp:// user @ host/outgoing] SftpOperations [389]:改变目录:/ 20130114 18:42:52,988 TRACE [Camel(camel-1)thread#0 - sftp:// user @主机/外出] SftpOperations [389]:改变目录:home 20130114 18:42:52,994 TRACE [Camel(camel-1)thread#0 - sftp:// user @ host/outgoing] SftpOperations [389]:Changing目录:sftp-user 20130114 18:42:53000 DEBUG [骆驼(骆驼-1)线#0 - SFTP://用户@主机/传出] GenericFileConsumer [84]:拍摄0.044秒 轮询:传出

和失败与2.10.3

20130114 19:15:53530 INFO [骆驼(骆驼-1)线#0 - 文件://../test_outbound/] RemoteFileProducer [193]:连接并登录到 : 端点[sftp:// user @ host/incoming?disconnect = true & knownHostsFile = known_hosts & privateK eyFile = SFTP-user.ppk & privateKeyFilePassphrase = ** &隔板=自动] 20130114 19:15:53530 TRACE [骆驼(骆驼-1)线#0 - 文件://../test_outbound/] SftpOperations [305]: buildDirectory(incoming,false)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) thread#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]:getCurrentD irectory()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 - 文件://../test_outbound/] RemoteFileProducer [71]:写入失败的文件: 目录无法更改为:家庭

貌似分离器是坏的,但我尝试了所有的3个选项(在Windows,Unix,自动)...没有工作。

+0

回复到V2.8.0,SFTP又开始工作,但我想用CamelSpringJUnit4ClassRunner这仅适用于2.10.x – aug70co

回答