camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toxels87 <>
Subject File is 0 bytes after FTP transfer (in some cases)
Date Fri, 07 Mar 2014 12:17:02 GMT
I have a route where files are downloaded from aan FTP endpoint, to a local

In some cases, the incoming file is 0 bytes, while the file on the FTP
server is not empty.

Can you think of any reasons why the file transferred is empty?

my code:

CronScheduledRoutePolicy policy = new CronScheduledRoutePolicy();
        policy.setRouteStartTime("30 0/30 7-19 ? * MON-SAT");
                .noAutoStartup() // no auto startup, startup time controlled
                .process(new Processor() {
                    public void process(Exchange exchange) throws Exception
                        LOGGER.log(Level.INFO, "### cronfile.route - Full
file Transfer Complete: Route SUSPENDED");
                        CamelContext context = exchange.getContext();

                        // remove exchange from the in flight registry so we
can stop this route without trouble

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message