You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Mikael Andersson (JIRA)" <ji...@apache.org> on 2018/03/19 13:44:00 UTC

[jira] [Commented] (CAMEL-12370) Camel-SFTP: errors in SSH routes after changes in read-lock

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

Mikael Andersson commented on CAMEL-12370:
------------------------------------------

In case it helps, when troubleshooting this issue it seems to work fine on Windows but I get this error on Linux

> Camel-SFTP: errors in SSH routes after changes in read-lock  
> -------------------------------------------------------------
>
>                 Key: CAMEL-12370
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12370
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sftp
>    Affects Versions: 2.21.0
>            Reporter: Andrea Cosentino
>            Priority: Major
>             Fix For: 2.22.0
>
>
> {code:java}
> 2018-03-17 12:39:37.411 WARN 1 — [OUT/compressed] o.a.c.c.file.remote.SftpConsumer : sftp://username@hostname.com/OUT/compressed?binary=true&delay=5m&greedy=true&idempotentKey=%24%7Bfile%3Aname%7D-%24%7Bfile%3Asize%7D&idempotentRepository=%23theRepo&include=filename.*zip&maxMessagesPerPoll=10&noop=true&password=xxxxxx&readLock=changed&streamDownload=true cannot begin processing file: RemoteFile[filename.zip] due to: org.apache.camel.component.file.remote.SftpRemoteFileJCraft cannot be cast to com.jcraft.jsch.ChannelSftp$LsEntry. Caused by: [java.lang.ClassCastException - org.apache.camel.component.file.remote.SftpRemoteFileJCraft cannot be cast to com.jcraft.jsch.ChannelSftp$LsEntry] java.lang.ClassCastException: org.apache.camel.component.file.remote.SftpRemoteFileJCraft cannot be cast to com.jcraft.jsch.ChannelSftp$LsEntry at org.apache.camel.component.file.remote.strategy.SftpChangedExclusiveReadLockStrategy.acquireExclusiveReadLock(SftpChangedExclusiveReadLockStrategy.java:97) ~[camel-ftp-2.21.0.jar!/:2.21.0] at org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport.begin(GenericFileProcessStrategySupport.java:49) ~[camel-core-2.21.0.jar!/:2.21.0] at org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.begin(GenericFileRenameProcessStrategy.java:37) ~[camel-core-2.21.0.jar!/:2.21.0] at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:360) [camel-core-2.21.0.jar!/:2.21.0] at org.apache.camel.component.file.remote.RemoteFileConsumer.processExchange(RemoteFileConsumer.java:137) [camel-ftp-2.21.0.jar!/:2.21.0] at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:219) [camel-core-2.21.0.jar!/:2.21.0] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:183) [camel-core-2.21.0.jar!/:2.21.0] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.21.0.jar!/:2.21.0] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.21.0.jar!/:2.21.0] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_151] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_151] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_151] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_151] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_151] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_151] at java.lang.Thread.run(Thread.java:748) [na:1.8.0_151]{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)