Hi,

We are trying to create a simple route that writes files to an ftp server.
But we're unable to get this to work using version 2.10.3.

However, if we use version 2.10.2 our Route is working correctly, and a file is 
created on the ftp server.
Below you can see 2 traces .

Our endpoint is:  
ftp://[email protected]/Diether?password=<snip>&stepwise=false
We already tried changing the stepwise property, using //Diether as start 
directory, changed the path separator,...
I also found the following thread: 
http://mail-archives.apache.org/mod_mbox/camel-users/201010.mbox/%[email protected]%3e
Which seems to be related.

Is this a bug that was recently (re-) introduced and should we consider 
downgrading to the previous version?
Or am I overlooking something?


Succesfull using Camel 2.10.2:
13:45:40.889 [Camel (context) thread #1 - file://c:/docdata/isexport] DEBUG 
o.a.c.c.f.remote.RemoteFileProducer - Not already connected/logged in. 
Connecting to: 
Endpoint[ftp://[email protected]/Diether?password=******&stepwise=false]
13:45:40.889 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - Connecting using FTPClient: 
org.apache.commons.net.ftp.FTPClient@370bf5a4
13:45:40.889 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - Connecting to 
ftp://[email protected]:21 using connection timeout: 10000
13:45:40.902 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - Attempting to login user: testftp using 
password: ****
13:45:40.914 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - User testftp logged in: true
13:45:40.916 [Camel (context) thread #1 - file://c:/docdata/isexport] INFO  
o.a.c.c.f.remote.RemoteFileProducer - Connected and logged in to: 
Endpoint[ftp://[email protected]/Diether?password=******&stepwise=false]
13:45:40.916 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - buildDirectory(Diether)
13:45:40.918 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - Trying to build remote directory: Diether
13:45:40.922 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - changeCurrentDirectory(/)
13:45:40.922 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - Changing directory: /
13:45:40.923 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.f.remote.RemoteFileProducer - About to write 
[Diether/DD_AI2013023134540.xml] to 
[Endpoint[ftp://[email protected]/Diether?password=******&stepwise=false]] 
from exchange [Exchange[null]]
13:45:40.923 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - storeFile(Diether/DD_AI2013023134540.xml)
13:45:40.923 [Camel (context) thread #1 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - doStoreFile(Diether/DD_AI2013023134540.xml)



Errors using Camel 2.10.3:
13:52:06.715 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.impl.SharedProducerServicePool - Acquire: 
Endpoint[ftp://[email protected]/Diether?password=******&stepwise=false] 
service: 
RemoteFileProducer[ftp://[email protected]/Diether?password=******&stepwise=false]
13:52:06.715 [Camel (context) thread #0 - file://c:/docdata/isexport] DEBUG 
o.a.camel.processor.SendProcessor - >>>> 
Endpoint[ftp://[email protected]/Diether?password=******&stepwise=false] 
Exchange[null]
13:52:06.715 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.c.f.remote.RemoteFileProducer - Processing file: 
Diether/DD_AI201302313526.xml for exchange: Exchange[null]
13:52:06.715 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.c.f.remote.RemoteFileProducer - preWriteCheck send noop success: false
13:52:06.715 [Camel (context) thread #0 - file://c:/docdata/isexport] DEBUG 
o.a.c.c.f.remote.RemoteFileProducer - Not already connected/logged in. 
Connecting to: 
Endpoint[ftp://[email protected]/Diether?password=******&stepwise=false]
13:52:06.715 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - Connecting using FTPClient: 
org.apache.commons.net.ftp.FTPClient@764af73e
13:52:06.715 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - Connecting to 
ftp://[email protected]:21 using connection timeout: 10000
13:52:06.736 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - Attempting to login user: testftp using 
password: ****
13:52:06.750 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - User testftp logged in: true
13:52:06.752 [Camel (context) thread #0 - file://c:/docdata/isexport] INFO  
o.a.c.c.f.remote.RemoteFileProducer - Connected and logged in to: 
Endpoint[ftp://[email protected]/Diether?password=******&stepwise=false]
13:52:06.752 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - buildDirectory(Diether)
13:52:06.754 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - changeCurrentDirectory(/)
13:52:06.754 [Camel (context) thread #0 - file://c:/docdata/isexport] TRACE 
o.a.c.c.file.remote.FtpOperations - Changing directory: \\
13:52:06.755 [Camel (context) thread #0 - file://c:/docdata/isexport] WARN  
o.a.c.c.f.remote.RemoteFileProducer - Writing file failed with: File operation 
failed: 550 Failed to change directory.
 Cannot change directory to: \\. Code: 550


Best regards,
Diether




Reply via email to