0

我們正試圖在Jmeter 3.1中運行https請求。Jmeter 3.1-javax.net.ssl.SSLException:收到致命警報:protocol_version

enter image description here 但是在執行獲取跟隨錯誤時。

javax.net.ssl.SSLException: Received fatal alert: protocol_version 
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.writeRecord(Unknown Source) 
at sun.security.ssl.AppOutputStream.write(Unknown Source) 
at java.io.BufferedOutputStream.flushBuffer(Unknown Source) 
at java.io.BufferedOutputStream.flush(Unknown Source) 
at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828) 
at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116) 
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) 
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) 
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) 
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) 
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) 
at org.apache.jmeter.protocol.http.sampler.HTTPHC3Impl.sample(HTTPHC3Impl.java:269) 
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74) 
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166) 
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155) 
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475) 
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418) 
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249) 
at java.lang.Thread.run(Unknown Source) 

我們嘗試以下解決方案,但我以前不解決這個問題:

  1. 加入 「https.default.protocol =的TLSv1」 中的 「jmeter.properties」 文件
  2. 試圖解決在 提供http://rajanmanoj.blogspot.in/2011/02/how-to-test-ssl-using-jmeter.html 此鏈接

我們利用JMeter 3.1,JAVA JDK 1.7,Windows 7的

回答

0

這很高原因是協議版本不匹配。客戶端和服務器使用的SSL協議版本不匹配。

確保您的系統中安裝了最新版本的Java和JMeter。還要檢查JMETER_HOME\bin文件夾中的安全證書。

你可以檢查this question瞭解更多詳情。

0

根據JVM的版本,Https默認協議可能會有所不同。 你可以改變它。轉到jmeter主目錄。打開jmeter.properties文件。取消註釋行:

https.default.protocol=SSLv3 

可能是您需要在更改後重新啓動jmeter。不確定。

相關問題