You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Önder Sezgin (JIRA)" <ji...@apache.org> on 2018/10/02 13:42:00 UTC

[jira] [Resolved] (CAMEL-12848) camel-sftp : on windows stepwise = true change directory fails to change directory

     [ https://issues.apache.org/jira/browse/CAMEL-12848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Önder Sezgin resolved CAMEL-12848.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.23.0
       Regression: Unit Test Broken

> camel-sftp : on windows stepwise = true change directory fails to change directory
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-12848
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12848
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sftp
>         Environment: Windows
>            Reporter: Önder Sezgin
>            Assignee: Önder Sezgin
>            Priority: Minor
>             Fix For: 2.23.0
>
>
> 2018-10-02 11:18:34,692 [main ] INFO SftpSimpleConsumeRecursiveTest - ********************************************************************************
> 2018-10-02 11:18:34,692 [main ] INFO SftpSimpleConsumeRecursiveTest - Testing: testSftpSimpleConsumeRecursive(org.apache.camel.component.file.remote.sftp.SftpSimpleConsumeRecursiveTest)
> 2018-10-02 11:18:34,692 [main ] INFO SftpSimpleConsumeRecursiveTest - ********************************************************************************
> 2018-10-02 11:18:34,697 [main ] INFO DefaultCamelContext - Apache Camel 2.23.0-SNAPSHOT (CamelContext: camel-3) is starting
> 2018-10-02 11:18:34,698 [main ] INFO DefaultManagementStrategy - JMX is disabled
> 2018-10-02 11:18:34,703 [main ] INFO DefaultTypeConverter - Type converters loaded (core: 195, classpath: 1)
> 2018-10-02 11:18:34,712 [main ] INFO DefaultCamelContext - StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
> 2018-10-02 11:18:34,716 [main ] INFO DefaultCamelContext - Skipping starting of route foo as its configured with autoStartup=false
> 2018-10-02 11:18:34,716 [main ] INFO DefaultCamelContext - Total 1 routes, of which 0 are started
> 2018-10-02 11:18:34,716 [main ] INFO DefaultCamelContext - Apache Camel 2.23.0-SNAPSHOT (CamelContext: camel-3) started in 0.019 seconds
> 2018-10-02 11:18:34,732 [main ] INFO SftpOperations - Known host file not configured, using user known host file: target/user-home/.ssh/known_hosts
> 2018-10-02 11:18:34,835 []-nio2-thread-1] INFO ServerUserAuthService - Session admin@/127.0.0.1:55121 authenticated
> 2018-10-02 11:18:34,871 [main ] INFO DefaultCamelContext - Route: foo started and consuming from: sftp://localhost:21000/target/res/home?delay=10s&disconnect=true&password=xxxxxx&recursive=true&username=admin
> 2018-10-02 11:18:34,871 [main ] INFO MockEndpoint - Asserting: mock://result is satisfied
> 2018-10-02 11:18:35,975 [target/res/home] WARN ilePollingConsumerPollStrategy - Trying to recover by force disconnecting from remote server and re-connecting at next poll: sftp://admin@localhost:21000
> 2018-10-02 11:18:35,976 [target/res/home] WARN SftpConsumer - Consumer SftpConsumer[sftp://localhost:21000/target/res/home?delay=10s&disconnect=true&password=xxxxxx&recursive=true&username=admin] failed polling endpoint: sftp://localhost:21000/target/res/home?delay=10s&disconnect=true&password=xxxxxx&recursive=true&username=admin. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot change directory to: C:]
> org.apache.camel.component.file.GenericFileOperationFailedException: Cannot change directory to: C:
>  at org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:644) ~[classes/:?]
>  at org.apache.camel.component.file.remote.SftpOperations.changeCurrentDirectory(SftpOperations.java:632) ~[classes/:?]
>  at org.apache.camel.component.file.remote.SftpOperations.changeToParentDirectory(SftpOperations.java:658) ~[classes/:?]
>  at org.apache.camel.component.file.remote.SftpConsumer.pollSubDirectory(SftpConsumer.java:98) ~[classes/:?]
>  at org.apache.camel.component.file.remote.SftpConsumer.doPollDirectory(SftpConsumer.java:177) ~[classes/:?]
>  at org.apache.camel.component.file.remote.RemoteFileConsumer.doSafePollSubDirectory(RemoteFileConsumer.java:261) ~[classes/:?]
>  at org.apache.camel.component.file.remote.SftpConsumer.pollSubDirectory(SftpConsumer.java:95) ~[classes/:?]
>  at org.apache.camel.component.file.remote.SftpConsumer.doPollDirectory(SftpConsumer.java:177) ~[classes/:?]
>  at org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:86) ~[classes/:?]
>  at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.23.0-SNAPSHOT.jar:2.23.0-SNAPSHOT]
>  at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.23.0-SNAPSHOT.jar:2.23.0-SNAPSHOT]
>  at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.23.0-SNAPSHOT.jar:2.23.0-SNAPSHOT]
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_161]
>  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_161]
>  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_161]
>  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_161]
>  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_161]
>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_161]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_161]
> Caused by: com.jcraft.jsch.SftpException: Invalid filename
>  at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2873) ~[jsch-0.1.54.jar:?]
>  at com.jcraft.jsch.ChannelSftp._realpath(ChannelSftp.java:2367) ~[jsch-0.1.54.jar:?]
>  at com.jcraft.jsch.ChannelSftp.cd(ChannelSftp.java:342) ~[jsch-0.1.54.jar:?]
>  at org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(SftpOperations.java:642) ~[classes/:?]
>  ... 18 more
> 2018-10-02 11:18:44,873 [main ] INFO SftpSimpleConsumeRecursiveTest - ********************************************************************************
> 2018-10-02 11:18:44,873 [main ] INFO SftpSimpleConsumeRecursiveTest - Testing done: testSftpSimpleConsumeRecursive(org.apache.camel.component.file.remote.sftp.SftpSimpleConsumeRecursiveTest)
> 2018-10-02 11:18:44,873 [main ] INFO SftpSimpleConsumeRecursiveTest - Took: 10.157 seconds (10157 millis)
> 2018-10-02 11:18:44,873 [main ] INFO SftpSimpleConsumeRecursiveTest - ********************************************************************************
> 2018-10-02 11:18:44,874 [main ] INFO DefaultCamelContext - Apache Camel 2.23.0-SNAPSHOT (CamelContext: camel-3) is shutting down
> 2018-10-02 11:18:44,874 [main ] INFO DefaultShutdownStrategy - Starting to graceful shutdown 1 routes (timeout 10 seconds)
> 2018-10-02 11:18:44,875 [ - ShutdownTask] INFO DefaultShutdownStrategy - Route: foo shutdown complete, was consuming from: sftp://localhost:21000/target/res/home?delay=10s&disconnect=true&password=xxxxxx&recursive=true&username=admin
> 2018-10-02 11:18:44,876 [main ] INFO DefaultShutdownStrategy - Graceful shutdown of 1 routes completed in 0 seconds
> 2018-10-02 11:18:44,878 [main ] INFO DefaultCamelContext - Apache Camel 2.23.0-SNAPSHOT (CamelContext: camel-3) uptime 10.181 seconds
> 2018-10-02 11:18:44,878 [main ] INFO DefaultCamelContext - Apache Camel 2.23.0-SNAPSHOT (CamelContext: camel-3) is shutdown in 0.004 seconds



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