Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Jmeter插件执行抛出ArrayIndexOutOfBoundsException_Java_Linux_Jmeter_Jmeter Plugins - Fatal编程技术网

Java Jmeter插件执行抛出ArrayIndexOutOfBoundsException

Java Jmeter插件执行抛出ArrayIndexOutOfBoundsException,java,linux,jmeter,jmeter-plugins,Java,Linux,Jmeter,Jmeter Plugins,我一直在寻找这个问题的答案,但在互联网上找不到任何答案。也许这里有人以前遇到过这个问题 我有一台CentOS机器,带有Jmeter 3.1。这台机器一切正常。我创建了一个新的VM,并将jmeter目录复制到新机器上,并进行了所有设置。测试执行工作正常,但当我尝试使用任何插件(cmdrunner-2.0.jar或JMeterPluginsCMD.sh)时 我得到一份工作 异常返回,信息不多出了什么问题: [root@box bin]# java -jar "/opt/apache-jmeter-3

我一直在寻找这个问题的答案,但在互联网上找不到任何答案。也许这里有人以前遇到过这个问题

我有一台CentOS机器,带有Jmeter 3.1。这台机器一切正常。我创建了一个新的VM,并jmeter目录复制到新机器上,并进行了所有设置。测试执行工作正常,但当我尝试使用任何插件(cmdrunner-2.0.jar或JMeterPluginsCMD.sh)时 我得到一份工作 异常返回,信息不多出了什么问题:

[root@box bin]# java -jar "/opt/apache-jmeter-3.1/lib/cmdrunner-2.0.jar" -n --tool Reporter  --input-jtl "/tmp/data.csv" --plugin-type SynthesisReport --generate-csv "/tmp/report.csv"
WARN    2017-10-22 12:41:57.204 [jmeter.u] (): Exception 'null' occurred when fetching String property:'sampleresult.default.encoding', defaulting to:ISO-8859-1
WARN    2017-10-22 12:41:57.224 [jmeter.u] (): Exception 'null' occurred when fetching String property:'jmeterPlugin.prefixPlugins'
INFO    2017-10-22 12:41:57.224 [kg.apc.j] (): Using JMeterPluginsCMD v. N/A
INFO    2017-10-22 12:41:57.229 [jmeter.u] (): Setting Locale to en_US
INFO    2017-10-22 12:41:57.238 [kg.apc.j] (): Loading user properties from: /opt/apache-jmeter-3.1/bin/user.properties
INFO    2017-10-22 12:41:57.238 [kg.apc.j] (): Loading system properties from: /opt/apache-jmeter-3.1/bin/system.properties
ERROR: java.lang.ArrayIndexOutOfBoundsException: 0
*** Problem's technical details go below ***
Home directory was detected as: /opt/apache-jmeter-3.1/lib
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
        at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:75)
        at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93)
        at sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:359)
...
...
错误:java.lang.ArrayIndexOutOfBoundsException:0

这就是我能得到的。这两台机器之间的唯一区别是:

工作平台:

内核3.10.0-514.26.2.el7.x86_64 java(构建1.8.0_131-b12)

不工作:

内核3.10.0-693.2.2.el7.x86_64, java(build 1.8.0_144-b01)

没有缺少任何环境变量


任何建议都是非常受欢迎的

我简直不敢相信-百胜更新java解决了我的问题。问题是,我上周刚刚更新了java。

这是这个特定平台上的一个java错误:


@user7294900我在一台没有UI的linux机器上运行,所以我无法检查这一点。我曾尝试从jmeter网站再次下载该插件,并用我拥有的插件替换它,但问题在于这就是为什么它毫无意义。它可以在一台机器上工作,但不能在另一台机器上工作,使用稍新的java版本。