TLS profile error

"Gilberto Migliavacca" <[email protected]> Fri, 16 Sep 2005 12:06:01 +0200
Newsgroups gmane.network.beep.beepcore.java.general
Message-ID <000001c5baa6$3f4d86b0$2a00a8c0@GILBERTO>
Hi 
Could anyone help me about TLS profile? I'm a newbie in Beep protocol 
When I send a message over a channel I have this error:

16-set-2005 11.50.50 org.beepcore.beep.transport.tcp.TCPSession
processNextFrame
GRAVE: javax.net.ssl.SSLException: Unsupported record version Unknown
83.71
16-set-2005 11.50.50 org.beepcore.beep.core.SessionImpl terminate
GRAVE: Unsupported record version Unknown 83.71

This is my code

The initiator:

...
 ProfileRegistry reg = Utility.setProfileRegistry(); 

 // Initiate a session with the sync4j side server
 Session session;
 try {
   //start session
   session = TCPSessionCreator.initiate(host, port, reg);
   // set TLS mode for session
   session = TLSProfile.getDefaultInstance().startTLS((TCPSession)
session);
 } catch (BEEPException e) {
   e.printStackTrace();
 }
...


the listener 

...
 ProfileRegistry reg = Utility.setProfileRegistry();

 try {
   // Loop listening for new Sessions
   while (true) {
      TCPSession tcpSession = TCPSessionCreator.listen(port, reg);
   }
 } catch (Exception e) {
   System.out.println("Listener exiting");
 }
...


In the "Utility.setProfileRegistry()" method I set two profile: TLS and
a proprietary protocol 



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php