Hi, I have written a code for connecting to FTP server It is properly connected with the referance server but during the copying file from remote server to local machine it giving me an nullpointer exception
could you please give me some suggesion that where i need to change the code or some alternet option.
Hi, Thanks for the update. This error occurs where you call the get method(i.e at the time serching the file in remote FTP Server) And one more thing this error comes when we set connectType PASV for Active it is working fine.
it very difficult to understand me why this error comes for connection mode PASSIVE
java.lang.NullPointerException at com.enterprisedt.net.ftp.FTPClient.initGet(FTPClient.java:1088) at com.enterprisedt.net.ftp.FTPClient.getASCII(FTPClient.java:1110) at com.enterprisedt.net.ftp.FTPClient.get(FTPClient.java:1021) at myFTPClient.main(myFTPClient.java:22) Exception in thread "main"