Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FtpProtocolException: PORT :500

807603Nov 13 2007 — edited Nov 13 2007
I have create a class to create FTP connection then upload files.
However while running the script, it breaks and i get the following error:
Exception in thread "main" sun.net.ftp.FtpProtocolException: PORT :500 Illegal PORT command, EPSV ALL in effect

        at sun.net.ftp.FtpClient.openDataConnection(FtpClient.java:435)
        at sun.net.ftp.FtpClient.put(FtpClient.java:594)
        at sun.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:482)
        at FileUpload.upload(Play1.java:114)
        at Play1.main(Play1.java:56)
Java Result: 1
Edited by: zaher1988 on Nov 13, 2007 4:03 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2007
Added on Nov 13 2007
4 comments
652 views