I am using Java 1.5.0_21. I am a single client connecting to a single FTP server. The server is running FTPES mode.
Cheers for the help. On 2 December 2010 00:18, sebb <[email protected]> wrote: > On 1 December 2010 20:38, Aidan Diffey <[email protected]> wrote: >> Hello all. >> >> I was wondering if anyone had any idea on what causes the following >> error message when I am trying to connect an FTP client (using >> Common.net FTPSClient) with explicit SSL to a server. >> I can connect >> using FileZilla and FTPES mode correctly. >> >> 220 "Welcome" >> AUTH TLS >> 234 Proceed with negotiation. >> USER **** >> 331 Please specify the password. >> PASS **** >> 230 Login successful. >> OPTS UTF8 ON >> 200 Always in UTF8 mode. >> PBSZ 0 >> 200 PBSZ set to 0. >> PROT P >> 200 PROT now Private. >> TYPE I >> 200 Switching to Binary mode. >> CWD Commands >> 250 Directory successfully changed. >> TYPE A >> 200 Switching to ASCII mode. >> PASV >> 227 Entering Passive Mode (10,20,3,112,117,87). >> STOR command.xml >> 150 Ok to send data. >> >> Exception in thread "main" javax.net.ssl.SSLException: Unsupported >> record version Unknown-48.48 > > A web search suggests that this occurs when the SSL stream gets out of > step somehow, and this confuses the decoder. > > This may be related to the Java version you are using - have you tried > with a different one? > What Java version are you using currently? > > Does it happen with multiple servers and multiple files? > Is there a publicly accessible server that shows the behaviour? > >> at >> com.sun.net.ssl.internal.ssl.InputRecord.readV3Record(InputRecord.java:375) >> at >> com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:360) >> at >> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:782) >> at >> com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:739) >> at >> com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75) >> at >> sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411) >> at >> sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453) >> at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183) >> at java.io.InputStreamReader.read(InputStreamReader.java:167) >> at java.io.BufferedReader.fill(BufferedReader.java:136) >> at java.io.BufferedReader.readLine(BufferedReader.java:299) >> at java.io.BufferedReader.readLine(BufferedReader.java:362) >> at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:294) >> at org.apache.commons.net.ftp.FTP.getReply(FTP.java:619) >> at >> org.apache.commons.net.ftp.FTPClient.completePendingCommand(FTPClient.java:1244) >> at >> org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:401) >> >> >> Regards >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
