[英]Jmeter listener showing “ javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?”
Using jmeter I am trying to run a test that was recorded using HTTP proxy Server.使用 jmeter 我试图运行一个使用 HTTP 代理服务器记录的测试。 But on playing the test following exception is thrown in the listener.但是在播放测试时,侦听器中会抛出以下异常。
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:521)
at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:722)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1029)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1056)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1040)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:405)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)
at org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:483)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:965)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:951)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:348)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
at java.lang.Thread.run(Thread.java:619)
The website also had certificate issue for which i permanently stored exception.What can be the reasons for this error?该网站也有证书问题,我永久存储了异常。此错误的原因是什么? Any help would be appreciated任何帮助,将不胜感激
The error message indicates that you are trying to establish an SSL/TLS connection using a port on the server that speaks HTTP and not HTTP S .该错误消息表明您正在尝试使用服务器上使用 HTTP 而不是 HTTP S的端口建立 SSL/TLS 连接。 Make sure you have the correct port - usually 443 for HTTPS.确保您拥有正确的端口——HTTPS 通常为 443。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.