Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
8.1k views
in Java FTP by (200 points)
Hi,
I get the following error message when I try to connect to my web based FTP server:

com.enterprisedt.net.ftp.ControlChannelIOException: Read timed out
at com.enterprisedt.net.ftp.FTPControlSocket.readLine(FTPControlSocket.java:1014)
at com.enterprisedt.net.ftp.FTPControlSocket.readReply(FTPControlSocket.java:1074)
at com.enterprisedt.net.ftp.FTPControlSocket.validateConnection(FTPControlSocket.java:418)
at com.enterprisedt.net.ftp.FTPControlSocket.<init>(FTPControlSocket.java:384)
at com.enterprisedt.net.ftp.FTPControlSocket.<init>(FTPControlSocket.java:355)
at com.enterprisedt.net.ftp.FTPClient.connect(FTPClient.java:958)
at com.enterprisedt.net.ftp.FileTransferClient.connect(FileTransferClient.java:383)
at ijio.applet.desktops.modules.shared.classes.TeacherClass.run(TeacherClass.java:393)
at java.lang.Thread.run(Unknown Source)

The code referenced at line 393 in my class is connect(). The code is the exact same as on a desktop application built to learn/test the EDTFTPj package which successfully connected/uploaded/downloaded files to and from the same FTP server.

Any help will be greatly appreciated.

Thanks.

4 Answers

0 votes
by (162k points)
Try posting the relevant bit of the log file at DEBUG level.
0 votes
by (200 points)
DEBUG [FTPClient] 13 Feb 2010 15:21:41.359 : Class: com.enterprisedt.net.ftp.FTPClient
Location: http://iji-online.jsn-server4.com/lib/edtftpj.jar
Version: 2.0.5
Build timestamp: 19-Oct-2009 13:44:01 EST
Java version: 1.6.0_17
CLASSPATH: C:\PROGRA~1\Java\jre6\classes
OS name: Windows XP
OS arch: x86
OS version: 5.1

DEBUG [FTPClient] 13 Feb 2010 15:21:41.796 : Class: com.enterprisedt.net.ftp.FTPClient
Location: http://iji-online.jsn-server4.com/lib/edtftpj.jar
Version: 2.0.5
Build timestamp: 19-Oct-2009 13:44:01 EST
Java version: 1.6.0_17
CLASSPATH: C:\PROGRA~1\Java\jre6\classes
OS name: Windows XP
OS arch: x86
OS version: 5.1

DEBUG [FileTransferClient] 13 Feb 2010 15:21:56.812 : Configured client
DEBUG [FTPClient] 13 Feb 2010 15:21:56.812 : Connecting to /72.9.248.130:22
DEBUG [FTPControlSocket] 13 Feb 2010 15:21:57.046 : SSH-2.0-OpenSSH_4.3
ERROR [FTPControlSocket] 13 Feb 2010 15:22:57.578 : Read failed ('' read so far)
ERROR [FTPControlSocket] 13 Feb 2010 15:22:57.578 : Failed to initialize control socket : Read timed out
0 votes
by (200 points)
This problem is now fixed.

I could enlighten people as to the resolution, but I don't think I will get over the embarrassment of what a stupid mistake I was making and how it wasted 7 days of otherwise productive time. :oops: :oops: :oops: :oops: :oops: :oops: :oops:
0 votes
by (200 points)
Hi frulhaque,

Can you please reply what you did to solve this issue?
I am also facing this issue :(

Thanks,
sassubra

Categories

...