码迷,mamicode.com
首页 > Web开发 > 详细

启动Jmeter录制代理进行录制,报 jmeter.protocol.http.proxy.ProxyControl

时间:2018-05-19 20:36:57      阅读:1523      评论:0      收藏:0      [点我收藏+]

标签:拷贝   generate   comm   default   server   record   seve   ssm   could not   

使用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

标签:拷贝   generate   comm   default   server   record   seve   ssm   could not   

原文地址:https://www.cnblogs.com/ldmjy/p/9061450.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!