commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amihai Fuks" <ami...@telmap.com>
Subject [net]
Date Mon, 30 May 2005 14:51:15 GMT
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


Mime
View raw message