Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

Sridevi

Posts

6

Joined

Tue Dec 20, 2011 8:05 pm

"Not logged in" error message

by Sridevi » Tue Dec 20, 2011 8:28 pm

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.
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: "Not logged in" error message

by support2 » Tue Dec 20, 2011 10:01 pm

Post a debug level log file. Note that after 15 minutes most FTP servers will time your connection out.
no avatar
User

Sridevi

Posts

6

Joined

Tue Dec 20, 2011 8:05 pm

Re: "Not logged in" error message

by Sridevi » Tue Dec 20, 2011 11:03 pm

Will you be able to tell me how to set the max value for timeout in UNIX based system?
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: "Not logged in" error message

by support2 » Tue Dec 20, 2011 11:10 pm

That depends on the server - talk to your server administrator or consult the documentation.
no avatar
User

Sridevi

Posts

6

Joined

Tue Dec 20, 2011 8:05 pm

Re: "Not logged in" error message

by Sridevi » Tue Dec 20, 2011 11:19 pm

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
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: "Not logged in" error message

by support2 » Tue Dec 20, 2011 11:38 pm

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.
no avatar
User

Sridevi

Posts

6

Joined

Tue Dec 20, 2011 8:05 pm

Re: "Not logged in" error message

by Sridevi » Wed Dec 21, 2011 4:45 pm

Okay, Thanks for the responses.

Regards,
Sridevi

Who is online

Users browsing this forum: Google [Bot] and 18 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron