about FTPClient

Hi,

"list" and "get" methods work well when I'm connected to one server but doesn't work at all when connected to another one: onto that one I can log on without any problems and all functions work using "CuteFtp", but errors come when I try to use "list" and "get" from FTPClient package :

http://www.enterprisedt.com/downloads/ftp/doc/index.html

what could be the problem ?

thanks

Yves

[434 byte] By [ybucher] at [2007-9-26 1:38:13]
# 1
i too have used htis package in a Ftp client but tested only on my server and worked properly.please please explain the problem, tell me what exception it generates and on what server it gives the prob
parul_patidar at 2007-6-29 2:25:55 > top of Java-index,Archived Forums,Java Programming...
# 2

ok, here is the story: (I use "JBuilder 4")

I create a FTPClient to connect "datascope.reuters.com",

I use "login" with a username and password,

use "pwd" to know the current directory,

use "system" to know the type of OS,

set the transfer type to "BINARY" or "ASCII" (I tried both)

until there it works well, no problem.

But then I try to use "list" with a mask ("*.L")

or "get" (with local path file name and remote file name), it seems to try a moment, but then throws me an IO Exception which I catch.

But as I told u, it works properly using "CuteFtp"

so .... will be happy to know the trick ...

Yves

ybucher at 2007-6-29 2:25:55 > top of Java-index,Archived Forums,Java Programming...
# 3
i used this api sometime ago and when i tried list command it used to give one of FTPException or IOException(i don't remember exactly which exception it was) when there was no file at server with the name given in list() method. when it get a file it doesn't give the exception.
parul_patidar at 2007-6-29 2:25:55 > top of Java-index,Archived Forums,Java Programming...