Created a carbon app using WSO2 ei611 using Inbound-endpoint-file.deployed
on WSO2.
Works good for local files.
When given FTP url
(ftp://username:password@servername/folder1/folder2/folder3), throws warn-
error WARN FilePollingConsumer Unable to access or read file or directory : username":@"servername/folder1/folder2/folder3. Reason: The file does not exists!
Used hexadecimal password in the url(as password had spl chars), still did
not work.
I changed all FTP folders/subfolders to 'chmod 777', still no luck.
I know, EI611 use apache-commons-ftp. The error string, is used in this library.
I then downloaded apache-commons-net-3.6 and used the same library and ran
a FTP client java from WSO2 server machine , and it works fine , in
connecting to FTP server, using java.
So, where's the problem? Hello, WSO2? care to answer?
Solution
adding vfs.passive=true did the magic. Thanks for the tip. I did saw this paramter earlier while developing, but ignored it, thinking, it is of no value.