FTPClient connection problem

I use the org.apache.commons.net.ftp.FTPClient class connect to the FTP server,sometimes,it doesn't work,stuck at the FTPClient.connect(hostname) method,and don't catch any exception and quit,does anyone know this class,and can i set the timeout parameter for the connect()
[297 byte] By [ethana] at [2007-11-27 0:12:45]
# 1
http://jakarta.apache.org/commons/net/api/org/apache/commons/net/ftp/FTPClient.html http://jakarta.apache.org/commons/net/api/org/apache/commons/net/SocketClient.html#setDefaultTimeout(int)
ejpa at 2007-7-11 21:55:35 > top of Java-index,Core,Core APIs...