Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.9k views
in Java FTP by
I've written a method to test if a file is a directory and recursively get the contents of that directory.Half way through the get it fails throwing the following exceptions :Can't open passive connection /Cannot assign requested address

Below is part of the debug output...


DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.126 : ---> PASV
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.206 : 227 Entering Passive Mode (30,0,2,214,7,70)
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.286 : ---> RETR //config/NetCache.cfg_24_08_14_43
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.376 : 150 Opening BINARY mode data connection for '//config/NetCache.cfg_24_08_
14_43' (28606 bytes).
DEBUG [com.enterprisedt.net.ftp.FTPClient] 30 Sep 2005 13:40:46.827 : Transferred 28606 bytes from remote host
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.827 : 226 Transfer complete.

DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.827 : ---> PASV
DEBUG [com.enterprisedt.net.ftp.FTPControlSocket] 30 Sep 2005 13:40:46.917 : 425 Can't open passive connection: Cannot assign requested address.
Exception Received during SFTP Comms: Can't open passive connection: Cannot assign requested address.

any ideas please?

3 Answers

0 votes
by (162k points)
The server has run out of data sockets by the look of it. A new socket is used for each file transfer. The server log might tell you more.

I've written a method to test if a file is a directory and recursively get the contents of that directory.Half way through the get it fails throwing the following exceptions :Can't open passive connection /Cannot assign requested address

0 votes
by
What we do to make sure that the server does not run out of datasockets?Any advice will be greatly appreciated
Thanks!
0 votes
by (162k points)
To start with have a search of the forums

What we do to make sure that the server does not run out of datasockets?Any advice will be greatly appreciated
Thanks!

Categories

...