commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aidan Diffey <aidan.dif...@gmail.com>
Subject [NET] SSL nsupported,record version
Date Wed, 01 Dec 2010 20:38:49 GMT
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
         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: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message