【发布时间】:2017-10-22 07:55:53
【问题描述】:
我一直在寻找这个问题的答案,但在互联网上找不到任何答案。也许这里有人以前遇到过这个问题。
我有一台装有 Jmeter 3.1 的 CentOS 机器。在这台机器上一切正常。我创建了一个新的虚拟机,并将 jmeter 目录复制到新机器上,一切都设置好了。测试执行工作正常,但是当我尝试使用任何插件时(cmdrunner-2.0.jar 或 JMeterPluginsCMD.sh) 我得到一个 Exception 回来了,没有太多信息是什么问题:
[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(内部版本 1.8.0_144-b01)
没有缺少环境变量。
欢迎提出任何建议
【问题讨论】:
-
@user7294900 我在没有 UI 的 linux 机器上运行,所以我无法检查这个。我尝试从 jmeter 网站再次下载该插件,并将其替换为我拥有的插件,但问题在于
标签: java linux jmeter jmeter-plugins