This discussion is archived
0 Replies Latest reply: Jan 28, 2009 6:02 AM by 843851 RSS

SSL message with unsupported version occured

843851 Newbie
Currently Being Moderated

So I am trying to learn some secure communications implementations in Xlets and called the folowing main method in a Xlet running in A STB with MHP 1.1:
public static void main(String[] args) throws UnknownHostException, IOException {
          // TODO Auto-generated method stub
          String host = "";
          int port = 443;
          SSLSocketFactory factory = (SSLSocketFactory)SSLSocketFactory.getDefault();
          SSLSocket socket = (SSLSocket) factory.createSocket(host, port);
          try {
               System.out.println("Starting SSL handshake...");
               socket.addHandshakeCompletedListener(new MyHandshakeListener());
               System.out.println("No errors, certificate is already trusted");
          //     System.out.println("Just connected to "
               //          + socket.getRemoteSocketAddress());

               PrintWriter out = new PrintWriter(new OutputStreamWriter(socket
               out.println("GET "
                         + ""
                         + " HTTP/1.1");
               out.println("Connection: Closed");

               BufferedReader input = new BufferedReader(new InputStreamReader(

               String line;

               while ((line = input.readLine()) != null) {


          } catch (SSLException e) {
But I am getting the exception below and I have not found too much help. If anyone knows how to solve this! SSL message with unsupported version occured
[1#7:1] at;)V(Unknown Source)
[1#7:1] at;Ltv/osmosys/security/net/ssl/CBCCipher;Ltv/osmosys/security/net/ssl/MAC;)V(Unknown Source)
[1#7:1] at;Z)V(Unknown Source)
[1#7:1] at;)V(Unknown Source)
[1#7:1] at Source)
[1#7:1] at Source)
[1#7:1] at test.TestValidHttps.main([Ljava/lang/String;)V(Unknown Source)