Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.8k views
in Java FTP by (220 points)
Hello,

When I do the following code :

ftp.quit()


I sometimes get the following exception :

java.lang.NullPointerException
   at com.enterprisedt.net.ftp.FTPControlSocket.log(FTPControlSocket.java:808)
   at com.enterprisedt.net.ftp.FTPControlSocket.readReply(FTPControlSocket.java:640)
   at com.enterprisedt.net.ftp.FTPControlSocket.sendCommand(FTPControlSocket.java:604)
   at com.enterprisedt.net.ftp.FTPClient.quit(FTPClient.java:2408)
   at com.cypherit.bbrad.server.jobs.FTPThread.run(FTPThread.java:505)


Anyone got any ideas on what would cause this, am I doing something incorrect.

Many thanks,
James

2 Answers

0 votes
by (162k points)
You certainly shouldn't get this. What version are you using?

If not the latest, 1.5.4, please download here:

http://www.enterprisedt.com/products/ed ... nload.html

If you are using 1.5.4, please post the log file.
0 votes
by (220 points)
I am using 1.5.1.

I will try updating and then post back if I am still getting the same problems.

Thanks

Categories

...