Skip to main content

we are facing a Readtimeout error when ever we are trying to uplaod a file to box using ftp the library we are using is commons-net-3.9.0 previously we are using commons-net3.2 with that we are able to upload with out any problem 


can you let us know if box is expecting some ftpclientProperty(like any timeout's) to be set or are we actually supposed to set any ftpClientProperty to overcome this issue . and after upgrading to commnos-net3.9.0  we have set ControlKeepAliveReplyTimeout property with which it's working in few cases and for rest with this property being set it's still failing with above error .please find the Stack Trace Below


Thanks in Advance 


 


StackTrace :::Failed because of :::Read timed out
java.net.SocketTimeoutException: Read timed out

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)

at java.net.SocketInputStream.read(SocketInputStream.java:171)

at java.net.SocketInputStream.read(SocketInputStream.java:141)

at sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:476)

at sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:470)

at sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)

at sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1369)

at sun.security.ssl.SSLSocketImpl.access$300(SSLSocketImpl.java:73)

at sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:978)

at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)

at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)

at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)

at java.io.InputStreamReader.read(InputStreamReader.java:184)

at java.io.BufferedReader.fill(BufferedReader.java:161)

at java.io.BufferedReader.readLine(BufferedReader.java:324)

at java.io.BufferedReader.readLine(BufferedReader.java:389)

at org.apache.commons.net.ftp.FTP.getReply(FTP.java:565)

at org.apache.commons.net.ftp.FTP.getReply(FTP.java:556)

at org.apache.commons.net.ftp.FTPClient.completePendingCommand(FTPClient.java:1193)

at org.apache.commons.net.ftp.FTPClient._storeFile(FTPClient.java:972)

at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:3274)

at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:3295)

Hi Parth, 


Welcome to Box Community and glad to help! 


We've created a new forum where our specialists could answer all your FTP queries. Please feel free to join us through https://forum.box.com/


We'd love to have you there!


Reply