Hi,
I have written a ftp file download code using spring integration ftp. The code works fine on linux machines. Today I moved my code to test server which is a windows machine.
When I tried running file download schedular I got
org.springframework.integration.MessagingException : java.io.FileNotFoundException:
The problem is, that the ftpclient is adding the ftp location path to my local path.
Eg: FTP LOCATION - MyFTP/myremotefolder
EG: LOCAL LOCATION - mylocalfolder/users
But while copying the file, I get the following logs:
WARN 2013-02-02 17:30:01,250 [pool-4-thread-1] (MessagingGatewaySupport.java:240) (doSendAndReceive) - failure occurred in gateway sendAndReceive
org.springframework.integration.MessagingException : java.io.FileNotFoundException: mylocalfolder\users\MyFTP\myremotefolder\file_2013 0202.csv.writing (The system cannot find the path specified)
The code was working fine in linux machines. I am using the windows ftp client.
Where am I going wrong. Please help.
Regards,
Annuk![]()


Reply With Quote
