camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbogdanoff <>
Subject Re: FOUND CAUSE! - FTP Move fails - have found cause but don't understands why
Date Wed, 05 Mar 2014 23:39:59 GMT
I did more debugging and found the cause

If you have streamDownload=true 

Take a look at 

at line 345

            if (endpoint.getConfiguration().isStreamDownload()) {
                InputStream is = client.retrieveFileStream(remoteName); 
                result = true;
            } else {
                os = new ByteArrayOutputStream();
                result = client.retrieveFile(remoteName, os);

If you have streamDownload=true (the default is false) the FTPClient gets
into a different state than what FTPOperations expects.  Then from that
point on, every time there is a call to FTPClient, the FTPClient is "one
call behind" what FTPOperations thinks it is and you get strange behavior.

I am hoping that this is enough info for the people that are knowledgeable
of this code to see the issue.  

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

View raw message