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警告[Camel(camel-1)スレッド#0 --file://../test_outbound/] RemoteFileProducer [71]:ファイルの書き込みに失敗しましたwith:ディレクトリを次の場所に変更できません:home 20130113 15:28:54,528 DEBUG [Camel(camel-1)thread#0 --file://../test_outbound/] RemoteFileProducer [86]:切断元:Endpoint [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->ローカルホストポート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)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]: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)thread#0 --sftp:// user @ host / outgoing] SftpOperations [389]:ディレクトリの変更:送信20130114 18:42:52,966 TRACE [Camel(camel-1)thread#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が見つかりました:outgoing 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)thread#0 --sftp:// user @ host / outgoing] SftpOperations [389]:ディレクトリの変更:ホーム20130114 18:42 :52,994 TRACE [Camel(camel-1)thread#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(camel-1)スレッド#0-file://../test_outbound/] SftpOperations [372]:getCurrentDirectory()20130114 19:15:53,670 TRACE [Camel(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)thread#0 --file://../test_outbound/] SftpOperations [430]:ディレクトリの変更:\ 20130114 19:15:53,749 TRACE [Camel(camel-1)thread#0 --file://../test_outbound/] SftpOperations [430]:ディレクトリの変更:ホーム20130114 19:15:53、796警告[Camel(camel-1)スレッド#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 に答える