camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niels <>
Subject Exception FTP Component
Date Mon, 16 Jan 2012 08:25:38 GMT
Hey everybody,

I'm using to ftp component to consume from a ftp server.
The little application seems to do the job but when investigating the log files this exception
shows up:

Trying to recover by disconnecting from remote server forcing a re-connect at next poll: ftp://userl@server:21
 Error occurred while disconnecting from ftp://user@server:21 due: File operation failed:
421 Terminating connection.
 FTP response 421 received.  Server closed connection.. Code: 421. This exception will be
 Consumer FtpConsumer[ftp://server?delay=900000&delete=true&password=******&username=user]
could not poll endpoint: Endpoint[ftp://server?de$
 FTP response 421 received.  Server closed connection.. Code: 421
 org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed:
421 Timeout (120 seconds): closing control connection.
 FTP response 421 received.  Server closed connection.. Code: 421
        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 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: FTP response 421 received.
 Server closed connection.
		at org.apache.camel.component.file.remote.FtpOperations.getCurrentDirectory(
		... 13 more

This is the route I'm using to consume the service:

from("ftp://" + props.getProperty(FTP_URL) + "?username=" + props.getProperty(FTP_USER) +
"&password=" + props.getProperty(FTP_PWD) + "&delete=true&delay=" + props.getProperty(FTP_DELAY))
				.to("file://" + props.getProperty(ROOT_DIR) + "/img").end()
				.to("file://" + props.getProperty(ROOT_DIR) + "/pdf").end()
			.to("file://" + props.getProperty(ROOT_DIR) + "/junk");

Now I'm wondering if this could be an issue with camel? In my opinion I think it has something
to do with the FTP server itself and not so much with camel.
Therefore I'm asking some experts opinion on my issue.

And please if you have any remarks on my code, I happy to here them I'm just a novice when
it comes to camel.




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message