Please take a review at http://cr.openjdk.java.net/~weijun/8207223/webrev.00/ UNEXPECTED_MESSAGE indicates a flaw in the peer's protocol implementation, which should result in a SSLProtocolException. Thanks Max