JMeter - 错误来自哪里以及为什么?

时间:2014-01-10 08:43:54

标签: java jmeter

javax.net.ssl.SSLHandshakeException:    Received    fatal    alert:    handshake_failure
                    at    sun.security.ssl.Alerts.getSSLException(Unknown    Source)
                    at    sun.security.ssl.Alerts.getSSLException(Unknown    Source)
                    at    sun.security.ssl.SSLSocketImpl.recvAlert(Unknown    Source)
                    at    sun.security.ssl.SSLSocketImpl.readRecord(Unknown    Source)
                    at    sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown    Source)
                    at    sun.security.ssl.SSLSocketImpl.startHandshake(Unknown    Source)
                    at    sun.security.ssl.SSLSocketImpl.startHandshake(Unknown    Source)
                    at    sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown    Source)
                    at    sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown    Source)
                    at    sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown    Source)
                    at    org.apache.jmeter.protocol.http.sampler.HTTPJavaImpl.sample(HTTPJavaImpl.java:487)
                    at    org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:62)
                    at    org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1088)
                    at    org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1077)
                    at    org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:429)
                    at    org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
                    at    java.lang.Thread.run(Unknown    Source)

1 个答案:

答案 0 :(得分:0)

请使用jdk1.7。只需将jdk更改为1.7即可解决同样的问题。请试试。

  1. 安装jdk 1.7
  2. 更改环境变量
  3. 重新启动
  4. 现在https应该可以工作。