Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in Java FTP by (320 points)
this is the scenario:
i create a function getfiles() // that downloads the files from the server.
{
ftp = new FTPClient(host);
.........................
..........................
}
it works fine at the first go but when the connection is lost i catch the exception "Socket Exception:software caused...." and run the same function again in the exception.
This time the exception is "no route to host"

1 Answer

0 votes
by (161k points)
Post 1) a bit more code 2) log file

this is the scenario:
i create a function getfiles() // that downloads the files from the server.
{
ftp = new FTPClient(host);
.........................
..........................
}
it works fine at the first go but when the connection is lost i catch the exception "Socket Exception:software caused...." and run the same function again in the exception.
This time the exception is "no route to host"

Categories

...