Skip to Main Content

Java APIs

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!

FTP Connection Problem

843790Dec 27 2006 — edited Dec 28 2006
Hi
I want to implement FTP to upload a file onto FTP Server.
I am using Jakarta Commons Net and Golden FTP Server for testing purpose.
I am able to connect to the server but soon it is throwing an exception which i am mentioning below.

Connected to 10.112.75.57.
org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed without indication.
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:290)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:444)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:472)
at org.apache.commons.net.ftp.FTP.cwd(FTP.java:698)
at org.apache.commons.net.ftp.FTPClient.changeWorkingDirectory(FTPClient
.java:633)
at getDataFiles.getDataFiles(getDataFiles.java:39)
at getDataFiles.main(getDataFiles.java:12)

I have tried out in several ways and the firewall for my system is in OFF.
Could anyone get me the solution for this problem in detail asap.
Thanks in advance,
Vijay
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 25 2007
Added on Dec 27 2006
11 comments
8,441 views