赞
踩
一、异常日志
- javax.net.ssl.SSLHandshakeException: SSL handshake failed.
- Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
- at com.sun.net.ssl.internal.ssl.EngineInputRecord.bytesInCompletePacket(EngineInputRecord.java:152)
- at com.sun.net.ssl.internal.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:806)
- at com.sun.net.ssl.internal.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:721)
- at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:607)
- at org.apache.mina.filter.ssl.SslHandler.unwrap(SslHandler.java:725)
- at org.apache.mina.filter.ssl.SslHandler.unwrapHandshake(SslHandler.java:663)
- at org.apache.mina.filter.ssl.SslHandler.handshake(SslHandler.java:549)
- at org.apache.mina.filter.ssl.SslHandler.messageReceived(SslHandler.java:349)
- at org.apache.mina.filter.ssl.SslFilter.messageReceived(SslFilter.java:476)
- ... 15 more
二、问题原因
客户端产生该异常,是因为对方提供的不是 https 服务的端口
服务端产生该异常,是因为客户端以 http 协议访问服务端的 https 服务
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。