• 启动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:LTJmeterapache-jmeter-3.0inproxyserver.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新手解决问题之后,会特别高兴。

  • 相关阅读:
    面向对象程序设计2020第二次作业
    工作日志。SQL篇
    正则表达式 转
    jquery ajax初级
    Javascript 面向对象编程
    C#开发的高性能EXCEL导入、导出工具DataPie(支持MSSQL、ORACLE、ACCESS,附源码下载地址)
    asp.net后台操作javascript:confirm返回值(转)
    SQL学习之索引(转)
    linq学习(一)
    SQL基础数据库执行及优化2012.06.02听课记录+资料收集
  • 原文地址:https://www.cnblogs.com/ldmjy/p/9061450.html
Copyright © 2020-2023  润新知