Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.2k views
in Java FTP by (300 points)
Hi , I am using com.enterprisedt.net.ftp.FTPClient to login my FTPSERVER

using the following command
ftpClient.login(USER_NAME,PASSWORD());

But some times am getting "Not logged in" error.

I am logging in to a FTP server with some domain name. bUt i log in only with user name and pwd and host name as the dns name.

In some 10, 15 , 20 minutes I get a "not logged in" error.

It is not occuring always, not in any specific pattern also, but immedietly after the error the connection is succesful.

[INFO] [FTPPull : getFTPConnection] - Error occured while FTP login : Not logged in The host is xxx.yyy.in The port used is 6370 [12] [2011-11-10 14:59:18 CET ]

but next connection was succesful

[INFO] [FTPPull : getFTPConnection] - Login Successful [12] [2011-11-10 15:09:18 CET ]

Please help, not sure why sometimes getting connected and sometimes not connected.

6 Answers

0 votes
by (162k points)
Post a debug level log file. Note that after 15 minutes most FTP servers will time your connection out.
0 votes
by (300 points)
Will you be able to tell me how to set the max value for timeout in UNIX based system?
0 votes
by (162k points)
That depends on the server - talk to your server administrator or consult the documentation.
0 votes
by (300 points)
Hi,
Thanks for the response!

Can I set the max value in ftpClient.setTimeout, so that the timeout never occurs, if yes what value I can set for it. Please help.

Regards,
Sridevi
0 votes
by (162k points)
That's the client timeout for socket reads and writes. It won't and can't stop the server disconnecting you after 15 minutes of inactivity.
0 votes
by (300 points)
Okay, Thanks for the responses.

Regards,
Sridevi

Categories

...