iT邦幫忙

0

試用Apache Jmeter 5.5時,Java不認識https?

  • 分享至 

  • xImage

java.net.MalformedURLException: unknown protocol: https
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at java.net.URL.(Unknown Source)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.getUrl(HTTPSamplerBase.java:1123)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1301)
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1290)
at org.apache.jmeter.threads.JMeterThread.doSampling(JMeterThread.java:651)
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:570)
at org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:501)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268)
at java.lang.Thread.run(Unknown Source)

有人遇過這個問題嗎?
要改那個部分,才能讓Apache JMeter能用https?

參考資料是這個
https://dotblogs.com.tw/yc421206/2022/10/15/load_stress_test_tool_for_jmeter

不過我是直接從官網下載 Apache JMeter
https://jmeter.apache.org/download_jmeter.cgi

解壓縮後
直接執行 \bin\jmeter.bat

player iT邦大師 1 級 ‧ 2022-11-17 11:45:02 檢舉
快暈倒了
檢查 Apache JMeter裡HTTP Request的田通訊協定的地方
竟然把"https" 輸入成"https "
多一個空格字元?
總算解決一項問題了 orz
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答