camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marek Niewiadomski (JIRA)" <>
Subject [jira] [Created] (CAMEL-4269) Connection to sftp server occasionally don't want to come back
Date Tue, 26 Jul 2011 11:54:11 GMT
Connection to sftp server occasionally don't want to come back

                 Key: CAMEL-4269
             Project: Camel
          Issue Type: Bug
          Components: camel-ftp
    Affects Versions: 2.7.3, 2.7.2
         Environment: windows, linux
            Reporter: Marek Niewiadomski

Problem appear if somebody kill logged on user on sftp server while you are connected with
Camel is not able to reconnect on next poll even if it says that it will do this.
RemoteFileConsumer is not connected but it thinks that it is still logged in.

I think "loggedIn" flag should be down after each disconnecting action like in attached patch.

2011-07-24 22:35:14,848 WARN  [RemoteFilePollingConsumerPollStrategy:37] Trying to recover
by disconnecting from remote server forcing a re-connect at next poll: sftp://test@host 
2011-07-24 22:35:14,849 WARN  [RemoteFilePollingConsumerPollStrategy:52] Consumer Consumer[sftp://test@host/test?delay=60000&delete=true&localWorkDirectory=%2Fvar%2Ftest%2Ftemp&password=xxxx&throwExceptionOnConnectFailed=true]
could not poll endpoint: sftp://test@host/test?delay=60000&delete=true&localWorkDirectory=%2Fvar%2Ftest%2Ftemp&password=xxxx&throwExceptionOnConnectFailed=true
caused by: Cannot change directory to: test 
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot change directory
to: test
	at org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(
	at org.apache.camel.component.file.remote.SftpOperations.changeCurrentDirectory(
	at org.apache.camel.component.file.remote.SftpConsumer.doPollDirectory(
	at org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(
	at org.apache.camel.component.file.GenericFileConsumer.poll(
	at java.util.concurrent.Executors$
	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(
	at java.util.concurrent.FutureTask.runAndReset(
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(
	at java.util.concurrent.ScheduledThreadPoolExecutor$
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
	at java.util.concurrent.ThreadPoolExecutor$
Caused by: 4: 
	at org.apache.camel.component.file.remote.SftpOperations.doChangeDirectory(
	... 14 more
Caused by: Pipe closed
	at com.jcraft.jsch.ChannelSftp.fill(
	at com.jcraft.jsch.ChannelSftp.header(
	at com.jcraft.jsch.ChannelSftp._realpath(
	... 15 more

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message