2012-05-24 130 views
7

使用jmeter我試圖運行使用HTTP代理服務器記錄的測試。但是在播放測試時,下面的異常會被拋入監聽器。Jmeter監聽器顯示「javax.net.ssl.SSLException:無法識別的SSL消息,明文連接?」

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) 

該網站也有證書問題,我永久存儲exception.What可能是這個錯誤的原因是什麼? 任何幫助,將不勝感激

回答

17

錯誤消息表明您正試圖建立一個SSL/TLS連接使用服務器端口說服HTTP而不是HTTP。確保你有正確的端口 - 通常是443的HTTPS。

+0

您希望我設置代理服務器端口或請求默認端口的端口? – Mandy

+0

我認爲代理只用於記錄會話。如果直接重播記錄的會話,請連接到服務器上的正確端口。 – Robert

+0

你!該問題已使用端口443解決 – Mandy

相關問題