Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
7.9k views
in Java FTP by (160 points)
Hi,

I am getting Accept timed out exception while uploading a file.
The exception occurs after the ftp connection is successful.

Following is the stack trace:
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:358)
at java.net.ServerSocket.implAccept(ServerSocket.java:470)
at java.net.ServerSocket.accept(ServerSocket.java:438)
at com.enterprisedt.net.ftp.internal.FTPActiveDataSocket.acceptConnection(FTPActiveDataSocket.java:185)
at com.enterprisedt.net.ftp.internal.FTPActiveDataSocket.getOutputStream(FTPActiveDataSocket.java:201)
at com.enterprisedt.net.ftp.FTPClient.getOutputStream(FTPClient.java:3101)
at com.enterprisedt.net.ftp.FTPClient.putData(FTPClient.java:2692)
at com.enterprisedt.net.ftp.FTPClient.putStream(FTPClient.java:2428)
at com.enterprisedt.net.ftp.FTPClient.put(FTPClient.java:2396)
at com.enterprisedt.net.ftp.FileTransferClient.uploadFile(FileTransferClient.java:785)
at com.enterprisedt.net.ftp.FileTransferClient.uploadFile(FileTransferClient.java:759)

2 Answers

0 votes
by (162k points)
Might be a firewall blocking the server's connection back to the client.

Try passive mode.
0 votes
by (160 points)
Thank you Bruce, it worked.

Categories

...