[Beepcore-java-users] TLS profile error
Status: Beta
Brought to you by:
huston
|
From: Gilberto M. <gil...@fu...> - 2005-09-16 10:06:10
|
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
|