Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
7.9k views
in Java FTP by (180 points)
Hi,

I am getting the below error when I am trying to conenct to FTP Server

2009-08-31 10:08:00,384 ERROR Client could not connect to (S)FTP-server.

com.enterprisedt.net.ftp.FTPException: 530 Please login with USER and PASS
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(Unknown Source)
at com.enterprisedt.net.ftp.FTPClient.setType(Unknown Source)

I have Complete FTP Manager installed on my machine with FTP enabled on port 21.
A user has already been defined in Complete FTP Manager.

Same setup works with SFTP but throws the above exception with FTP.
Do I have to set up something in Complete FTP Manager so that it acts only as FTP Server?
If not where can I specifically define USER and PASS for FTP?

Hope there is enough information in this message to help me solve the problem.

Thanks in advance!

Supriya

4 Answers

0 votes
by (51.6k points)
Hi Supriya

Try looking at the logs. To do this, click "Logs" in the navigation panel, and then in the log panel click ServiceRecent.log. Scroll up to find the latest login attempt and see what messages were shown in the log. If there's not enough detail then you need to increase the logging level. By default the logging level is "Information". To get more detail select "Debug".

If that doesn't help to clarify the problem then you can post the relevant portion of the log here (make sure to remove any confidential data), or e-mail the log (zipped up) to support@enter...

- Hans (EnterpriseDT)
0 votes
by (162k points)
Also, post the whole Java client log at the DEBUG level (or email it if it is too big).
0 votes
by (162k points)
please post your code that connects. Are you calling login(username,pass)?
0 votes
by (180 points)
Hi Bruce,

Thanks for your quick response!

I use login(username,pass)

The problem seems to have been fixed now.

itsFtpClient.setType(FTPTransferType.BINARY); was set before login statement.
I works without error when we set the type after login statement.

Thanks again,
Supriya

Categories

...