gpt4 book ai didi

java - Jmeter 监听器显示 "javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?"

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:06:23 27 4
gpt4 key购买 nike

使用 jmeter 我正在尝试运行使用 HTTP 代理服务器记录的测试。但是在播放测试时,监听器会抛出以下异常。

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)

该网站还存在我永久存储异常的证书问题。此错误的原因可能是什么?任何帮助将不胜感激

最佳答案

错误消息表明您正在尝试使用服务器上使用 HTTP 而不是 HTTPS 的端口建立 SSL/TLS 连接。确保您拥有正确的端口 - 对于 HTTPS,通常是 443。

关于java - Jmeter 监听器显示 "javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10736621/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com