Java SSL and ADCS

Can someone help me with java SSL ? DSHub prints a funny exception after some messages sent and received ( keys and certificates seem fine because the handshake doesn;t fail )
SSLException : Unsupported record version Unknown-23.3
ehub seems to work with the same keys and certificate + same ssl library…

I solved the problem myself, thanks to all who helped. It seems that sending empty protocol commands " \n" caused the ssl link to crash.
At least weird to me.