Andrea Cosentino created CAMEL-12370:
----------------------------------------
Summary: 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
Affects Versions: 2.21.0
Reporter: Andrea Cosentino
Fix For: 2.22.0
2018-03-17 12:39:37.411 WARN 1 --- [OUT/compressed]
o.a.c.c.file.remote.SftpConsumer :
sftp://[email protected]/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]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)