Conexión FTP agotada 421: error del analizador

La pregunta ha sido editada. Estoy tratando de enumerar todos los archivos en un directorio FTP, y aunque el código funciona bien cuando se ejecuta en un proyecto normal de Netbeans, cuando se usa el mismo código en un proyecto de Maven, sus resultados en unconexión agotada 421 . ¿Cómo puedo deshacerme de esto?

Código:

FTPClient ftpClient = new FTPClient();
ftpClient.connect(host, 21);
ftpClient.login(user, pass);
ftpClient.enterLocalPassiveMode();
ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
FTPClientConfig conf = new FTPClientConfig(FTPClientConfig.SYST_UNIX);
ftpClient.configure(conf);
inputStream = FTPUtil.downloadSingleFile(ftpClient, filePath);
ftpClient.list();                         // It works
ftpClient.listNames("/");                 // It works
ftpClient.changeWorkingDirectory("/");    // It works
FTPFile[] files = ftpClient.listFiles("/");// It hangs and stops 421 connection timed out

losRegistro de FileZilla es:-

    (000370)04-04-2013 16:04:32 - (not logged in) (127.0.0.1)> Connected, sending welcome message...
    (000370)04-04-2013 16:04:32 - (not logged in) (127.0.0.1)> 220 ftp connection started...
    (000370)04-04-2013 16:04:32 - (not logged in) (127.0.0.1)> USER raja
    (000370)04-04-2013 16:04:32 - (not logged in) (127.0.0.1)> 331 Password required for raja
    (000370)04-04-2013 16:04:32 - (not logged in) (127.0.0.1)> PASS ****
    (000370)04-04-2013 16:04:32 - raja (127.0.0.1)> 230 Logged on
    (000370)04-04-2013 16:04:32 - raja (127.0.0.1)> TYPE I
    (000370)04-04-2013 16:04:32 - raja (127.0.0.1)> 200 Type set to I
    (000370)04-04-2013 16:04:32 - raja (127.0.0.1)> PASV
    (000370)04-04-2013 16:04:32 - raja (127.0.0.1)> 227 Entering Passive Mode (127,0,0,1,237,187)
    (000370)04-04-2013 16:04:32 - raja (127.0.0.1)> SYST
    (000370)04-04-2013 16:04:32 - raja (127.0.0.1)> 215 UNIX emulated by FileZilla
    (000366)04-04-2013 16:04:33 - raja (127.0.0.1)> 421 Connection timed out.

Las excepciones del lado del cliente son: -

Respuestas a la pregunta(1)

Su respuesta a la pregunta