vijayan created NET-486:
---------------------------
Summary: FtpClient 3.0.1 - SocketTimeoutException - Read Timed out
Key: NET-486
URL: https://issues.apache.org/jira/browse/NET-486
Project: Commons Net
Issue Type: Bug
Components: FTP
Affects Versions: 3.0.1
Reporter: vijayan
Priority: Critical
In a random intervals, we receive the following error while transferring the
file to a FTP server. Have implemented control keep alive mechanism with
timeout of 120 seconds. Issue is the file has been transferred successfuly but
still getting this exception. What is the cause and how to avoid it?
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.BufferedReader.fill(BufferedReader.java:136)
at java.io.BufferedReader.read(BufferedReader.java:157)
at
org.apache.commons.net.io.CRLFLineReader.readLine(CRLFLineReader.java:58)
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:310)
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:290)
at org.apache.commons.net.ftp.FTP.getReply(FTP.java:632)
at
org.apache.commons.net.ftp.FTPClient.completePendingCommand(FTPClient.java:1561)
at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:581)
at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1704)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira