Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.4k views
in Java FTP by (260 points)
edtftpj 1.5.2
RHLinux to RHLinux

server A logs in B,C correctly from 1 am to 23 pm, but it hangs when logged in at 0 am.

code:
try{
    log.info("Logging in:"+this.account.getIp());
    ftp.login(account.getUser(), account.getPassword());
    ftp.setTimeout(this.ftpConnectionTimeout);
    ftp.setConnectMode(FTPConnectMode.PASV);
    ftp.setType(FTPTransferType.BINARY);
}
catch(Exception ex)
{
    log.error("Exception when login & set PARAM", ex);
}


Log as below:
connecting: 192.168.0.109
connecting: 192.168.0.108
Logging in:192.168.0.108
Logging in:192.168.0.109

and it hangs just until my timeout watch thread kills it.


BUT!!! When the app is deployed in Unix to login Linux, and Login Unix, or the Linux to login Unix, erverything just goes well.
Error occurs just when the Linux logging Linux...

thx for help.

1 Answer

0 votes
by (51.6k points)
edtFTPj doesn't have any code that checks the current time, so this must be an error that occurs on the server-side. I suggest you investigate it as a server error. For example, try it with a command-line FTP client and see if the same error occurs. Is there any reason why you've set the timeout after the log-in attempt? You may as well place it before so at least you won't have to kill the thread.

- Hans (EDT)

Categories

...