使用JMeter录制时,继续获取java.lang.ArrayIndexOutOfBoundsException

时间:2017-08-21 16:53:35

标签: jmeter

我开始在版本3.1中遇到此错误而我刚刚安装了3.2,似乎我仍然在最新版本中反复出现同样的错误。

我正在运行HTTPs(s)测试脚本记录器,在我登录页面之后,它会正确记录这些步骤,然后停止记录,我不断收到相同的错误,数组索引输出无论何时点击我录制的网站,我都会受到约束。有什么想法吗?

        2017-08-21 12:05:52,719 INFO o.a.j.p.h.p.ProxyControl: Valid alias found for :root_ca:
    2017-08-21 12:05:52,719 INFO o.a.j.p.h.p.ProxyControl: Valid alias found for :intermediate_ca:
    2017-08-21 12:05:52,719 INFO o.a.j.p.h.p.Daemon: Creating Daemon Socket on port: 8080
    2017-08-21 12:05:52,719 INFO o.a.j.p.h.p.Daemon: Test Script Recorder up and running!
    2017-08-21 12:06:14,386 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]
    2017-08-21 12:06:15,760 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]
    2017-08-21 12:06:15,776 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]
    2017-08-21 12:06:15,807 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]
    2017-08-21 12:06:15,823 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]
    2017-08-21 12:06:16,493 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]
    2017-08-21 12:06:16,993 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]
    2017-08-21 12:06:17,056 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]
    2017-08-21 12:06:18,187 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]
    2017-08-21 12:06:18,312 ERROR o.a.j.JMeter: Uncaught exception: 
    java.lang.ArrayIndexOutOfBoundsException: 1
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.createAuthorization(ProxyControl.java:692) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.ProxyControl.deliverSampler(ProxyControl.java:624) ~[ApacheJMeter_http.jar:3.2 r1790748]
        at org.apache.jmeter.protocol.http.proxy.Proxy.run(Proxy.java:291) ~[ApacheJMeter_http.jar:3.2 r1790748]

1 个答案:

答案 0 :(得分:0)

这看起来像是根据以下标识报告并在JMeter 3.3中修复的错误(即将于2017年8月发布):

通过避免ArrayIndexOutOfBoundsException来解决这个问题,你仍然可以在夜间进行测试:

并提供

  • jmeter.log完整的堆栈跟踪以及可能的whold文件

  • 触发错误的HTTP请求内容,尤其是标题

通过这些元素,您可以获得更准确的答案。