You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/02/01 08:07:00 UTC

[jira] [Commented] (CAMEL-16095) Update camel-ssh to work with both SSHD 1.x and 2.x

    [ https://issues.apache.org/jira/browse/CAMEL-16095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276124#comment-17276124 ] 

Claus Ibsen commented on CAMEL-16095:
-------------------------------------

Upgraded to SSHD 2.5

> Update camel-ssh to work with both SSHD 1.x and 2.x
> ---------------------------------------------------
>
>                 Key: CAMEL-16095
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16095
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-ssh
>    Affects Versions: 3.7.0
>         Environment: Plain Karaf 4.3.0 with camel-ssh installed as feature:
> {{karaf@root()> bundle:list -t 0 | grep -i ssh}}
> {{ 44 x Active x 30 x 4.3.0 x Apache Karaf :: Shell :: SSH}}
> {{ 46 x Active x 30 x 2.5.1 x Apache Mina SSHD :: OSGi}}
> {{ 47 x Active x 30 x 2.5.1 x Apache Mina SSHD :: SCP}}
> {{ 48 x Active x 30 x 2.5.1 x Apache Mina SSHD :: SFTP}}
> {{121 x Active x 50 x 3.7.1 x camel-ssh }}
>            Reporter: Jan Schulze
>            Priority: Minor
>             Fix For: 3.8.0
>
>
> Component camel-ssh is not working in Karaf 4.3.0, because Karaf upgraded to SSHD 2.x. This results in the stack trace below when using Camel to write a file via SSH. A discussion about the issue can be found at: [http://camel.465427.n5.nabble.com/Component-quot-camel-ssh-quot-broken-NoSuchMethodError-ConnectFuture-getSession-td5904212.html]
> Stack Trace:
> {{org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[F2205BFA0B31B1C-0000000000000000]}}
> {{ at org.apache.camel.CamelExecutionException.wrapCamelExecutionException(CamelExecutionException.java:45) ~[!/:3.7.1]}}
> {{ at org.apache.camel.support.DefaultExchange.setException(DefaultExchange.java:425) ~[!/:3.7.1]}}
> {{ at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:69) ~[!/:3.7.1]}}
> {{ at org.apache.camel.processor.SendProcessor.lambda$process$2(SendProcessor.java:188) ~[!/:3.7.1]}}
> {{ at org.apache.camel.support.cache.DefaultProducerCache.doInAsyncProducer(DefaultProducerCache.java:317) ~[!/:3.7.1]}}
> {{ at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:187) ~[!/:3.7.1]}}
> {{ at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryTask.doRun(RedeliveryErrorHandler.java:714) [!/:3.7.1]}}
> {{ at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$RedeliveryTask.run(RedeliveryErrorHandler.java:623) [!/:3.7.1]}}
> {{ at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148) [!/:3.7.1]}}
> {{ at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60) [!/:3.7.1]}}
> {{ at org.apache.camel.processor.Pipeline.process(Pipeline.java:147) [!/:3.7.1]}}
> {{ at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:312) [!/:3.7.1]}}
> {{ at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:207) [!/:3.7.1]}}
> {{ at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:76) [!/:3.7.1]}}
> {{ at java.util.TimerThread.mainLoop(Timer.java:556) [?:?]}}
> {{ at java.util.TimerThread.run(Timer.java:506) [?:?]}}
> {{Caused by: java.lang.NoSuchMethodError: 'org.apache.sshd.client.session.ClientSession org.apache.sshd.client.future.ConnectFuture.getSession()'}}
> {{ at org.apache.camel.component.ssh.SshHelper.sendExecCommand(SshHelper.java:84) ~[?:?]}}
> {{ at org.apache.camel.component.ssh.SshProducer.process(SshProducer.java:74) ~[?:?]}}
> {{ at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:66) ~[!/:3.7.1]}}
> {{ ... 13 more}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)