Dec 14th, 2010, 12:36 PM
The simplest FTP example is in the sample repo that was pointed out by Brandon earlier. My bigger concern is are you sure you are using the latest snapshot? The problem you are describing is exactly what was reported earlier and was fixed with that issue
Dec 14th, 2010, 01:22 PM
I have downloaded the 2.0.1 build and am sure that i have got that in my classpath in STS.
please check anything obviously wrong in the attached xml configuration file.
This xml with remote-directory="test" writes a <inputfilename>.xml.writting file and error with 550 failed to open file.
I could do same operation (get) outside on windows cmd line being same user. So I dont think any permission issue.
Dec 14th, 2010, 01:27 PM
Try to put a '/' at the end of the remote-directory (e.g. remote-directory="test/")
Dec 15th, 2010, 03:18 AM
no good -
when I put test/ with localdirectory file:c:/test/out it seems creating a file with .writting and error on console saying test/\filename.xml . server replied 501 invalid file or file name
"test\" - is not working and not giving any error either. I tried most of the possible combinations but seems no result.
Just wanted to make sure do i need a file out bound to write the file or anything like that. I have tried only with ftp inbound and stderror for error channel.
I am stuck and dont have much time to finish this task so might go and use apache ftpclient directly.
Last edited by arungn; Dec 15th, 2010 at 03:22 AM.
Dec 15th, 2010, 05:32 AM
Well one thing i noticed is that you using fileType=3. We only support binary (2) and ascii (0) for now, so I am not sure if that causes the issue.
What is your FTP server and what platform it is running on?
I am also assuming that you transferring it to windows?
Can you transfer it through CLI (ftp get)?
Could you also make sure that your program does not exit before the file is fully transferred in case your file is big.
Can you also look at the FTP samples? It has both Inbound and Outbound sample.
Dec 15th, 2010, 06:30 AM
ok. I will try the suggested options and get back to you.
Dec 15th, 2010, 09:05 AM
Also, if you still have an issue but somehow get it to work with FTPclient directly it would be nice to compare the code, since it seem to be a platform/environment specific issue which I can't reproduce.