Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
4k views
in Java FTP by (160 points)
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?

2 Answers

0 votes
by (51.6k points)
Try using a command-line FTP client or an FTP client application like FileZilla to perform the same operation. My expection is that you will have the same problem with these, which would indicate that it's a permission problem on the server.

- Hans (EDT)
0 votes
by (160 points)
Got it. The server disabled the delete and append privilege, allowing for reading and writing only. Therefore,when it comes to overriding an existing file,permission denied....

Categories

...