My application got this FTPException while trying to upload some txt and tif files to a remote server using binary mode.Here's the stacktrace info:
Nested Exception is:
com.enterprisedt.net.ftp.FTPException: Permission denied.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:577)
at com.enterprisedt.net.ftp.FTPClient.initPut(FTPClient.java:613)
at com.enterprisedt.net.ftp.FTPClient.putBinary(FTPClient.java:719)
at com.enterprisedt.net.ftp.FTPClient.putBinary(FTPClient.java:702)
at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java:549)
at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java:512
I checked the ftp server settings and found nothing wrong.
To be more strange,that exception does not always show up.
Once a while,the application worked and i could see the file uploaded to ftp server!
Can anybody tell me what's the problem?