启动Jmeter录制代理进行录制,报 jmeter.protocol.http.proxy.ProxyControl
Posted 笨笨的小猫
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了启动Jmeter录制代理进行录制,报 jmeter.protocol.http.proxy.ProxyControl相关的知识,希望对你有一定的参考价值。
使用jmeter代理录制Http请求时,启动HTTP(S) Test Script Recorder报jmeter.protocol.http.proxy.ProxyControl,
日志为:
2018/05/19 15:47:05 INFO - jmeter.protocol.http.proxy.ProxyControl: Creating Proxy CA in D:\\LT\\Jmeter\\apache-jmeter-3.0\\bin\\proxyserver.jks
2018/05/19 15:47:05 ERROR - jmeter.protocol.http.proxy.ProxyControl: Could not initialise key store java.io.IOException: >> 非法选项: -ext
尝试 keytool -help <<
Command failed, code: 1
\'keytool -genkeypair -alias :root_ca: -dname "CN=_ DO NOT INSTALL unless this is your certificate (JMeter root CA), OU=Username: liutao, C=CN" -keyalg RSA -keystore proxyserver.jks -storepass {redacted} -keypass {redacted} -validity 7 -ext bc:c\'
at org.apache.jorphan.exec.KeyToolUtils.genkeypair(KeyToolUtils.java:165)
at org.apache.jorphan.exec.KeyToolUtils.generateProxyCA(KeyToolUtils.java:232)
at org.apache.jmeter.protocol.http.proxy.ProxyControl.initDynamicKeyStore(ProxyControl.java:1426)
at org.apache.jmeter.protocol.http.proxy.ProxyControl.initKeyStore(ProxyControl.java:1353)
at org.apache.jmeter.protocol.http.proxy.ProxyControl.startProxy(ProxyControl.java:476)
at org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui.startProxy(ProxyControlGui.java:516)
at org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui.actionPerformed(ProxyControlGui.java:390)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatche
解决过程:
1、查看各个原件配置是否正常
2、jmeter下bin目录是否有proxyserver.jks,目录下面确实没有,拷贝进去之后,重启Jmeter问题没有解决
3、
问题解决,可以正常录制。
PS:作为jmeter新手解决问题之后,会特别高兴。
以上是关于启动Jmeter录制代理进行录制,报 jmeter.protocol.http.proxy.ProxyControl的主要内容,如果未能解决你的问题,请参考以下文章