commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mihael Knezevic <m.kneze...@porta.de>
Subject Re: [net]
Date Mon, 30 May 2005 14:00:26 GMT
fist of all: put something into your mail subject

then, i was i little bit too fast with my reply. your error lies somewhere in 
the disconnect method. 

the ftpclient object tries to logout, but i can't see a line where you log in. 
might be the problem.

Am Montag, 30. Mai 2005 16:51 schrieb Amihai Fuks:
> Hi,
> 
> We are using commons-net-1.2.2.jar (happens also with 1.4.0). While running 
the following code:
> try
> {
>  connection.connect();
> }
> catch(FTPServiceException e)
> {
>  e.printStackTrace();
> }
> finally
> {
>  try
>  {
>   connection.disconnect();
>  }
>  catch(FTPServiceException e)
>  {
>   e.printStackTrace();
>  }
> }
> 
> We experience this error:
> 
> FTP server connection/login error
> Exception in thread "Thread-6" java.lang.NullPointerException
>       at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:404)
>       at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:438)
>       at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:487)
>       at org.apache.commons.net.ftp.FTP.quit(FTP.java:699)
>       at org.apache.commons.net.ftp.FTPClient.logout(FTPClient.java:678)
>       
> Does anyone have an idea what the problem might be?
> 
> Thanks
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message