camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: FTP disconnect problem
Date Fri, 17 Apr 2015 10:52:34 GMT

Ah yeah you hit a corner case there. You can use the sendEmptyMessage
option and then filter that in the route, then a disconnect is called.
But we should do a disconnect anyway when 0 is polled. You are welcome
to log a JIRA ticket

Btw which Camel version do you use?

On Fri, Apr 17, 2015 at 12:45 PM, Nick Bryan <> wrote:
> I'm playing around with the ftp component but have a problem with the disconnect option.
 It's defined as follows
> .from("ftp://host:21/distribution?Username=user
> &Password=pass
> &fileName=file.dtd
> &passiveMode=true
> &delay=600s
> &maximumReconnectAttempts=3
> &reconnectDelay=5000
> &useFixedDelay=false
> &disconnect=true")
> This works fine until a poll returns 0 files at which point it doesn't disconnect and
the next poll then fails with
> Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException
- File operation failed:  Software caused connection abort: recv failed. Code: 250]
> org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed:
 Software caused connection abort: recv failed. Code: 250
>         at org.apache.camel.component.file.remote.FtpOperations.getCurrentDirectory(
>         at org.apache.camel.component.file.remote.FtpConsumer.pollDirectory(
>         at org.apache.camel.component.file.GenericFileConsumer.poll(
>         at org.apache.camel.impl.ScheduledPollConsumer.doRun(
>         at
>         at java.util.concurrent.Executors$
>         at java.util.concurrent.FutureTask.runAndReset(
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(
>         at java.util.concurrent.ScheduledThreadPoolExecutor$
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at
> Caused by: Software caused connection abort: recv failed
> It never recovers and needs a restart.  Although this appears to be a problem with how
disconnect is handled in the ftp component can someone give me pointers on how to work round
> Many thanks
> Nick
> (camel newbie)

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message