Ron McLeod wrote:This looks suspicious: String remoteDir = "//remoteDir//";
What is the actual directory that the FTP server will translate this to?: /home/usr/remoteDir?
Aalok Pandit wrote:All
The settings suggested in the link do not help(at least did not help in my case).
How I solved it(Hope it helps someone else):
I looked into the source code of FTPClient and browsed to the code which was throwing the error. There I realised that a verification which generally passes, was failing on the proxy server.
When we instantiate a FTPClient object, a boolean variable remoteVerificationEnabled is set to true by default. This variable is used while doing a connection verification, which fails in case of proxy servers.
So after the instantiation of FTPClient, we need to set the variable to false by calling the setter method.
eg:
Please correct me if I am wrong.
Dave Tolls wrote:I'm curious why they didn't show this using a single DataSet class:
That's how a TreeSet works (sort of).
Or do they expand on this later?