Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12370

Camel-SFTP: errors in SSH routes after changes in read-lock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.21.0
    • Fix Version/s: 2.21.1, 2.22.0
    • Component/s: camel-sftp
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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]

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              acosentino Andrea Cosentino
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: