undera / perfmon-agent

Server metrics fetching agent, based on SIGAR
Apache License 2.0
397 stars 138 forks source link

Jmeter agent HP-UX connection error - "main" java.lang.NoClassDefFoundError: java/util/ServiceLoader #10

Open ruthan opened 5 years ago

ruthan commented 5 years ago

Hello, im trying to connect to Jmeter agent on HP-UX with Java 1.5 and im gettting this error:

INFO 2019-04-25 20:07:10.799 [kg.apc.p] (): Yep, we received the 'test' command INFO 2019-04-25 20:07:10.858 [kg.apc.p] (): Starting measures: cpu:combined ERROR: java.lang.NoClassDefFoundError: java/util/ServiceLoader Problem's technical details go below Home directory was detected as: /home/jmeter/ServerAgent-2.2.3 Exception in thread "main" java.lang.NoClassDefFoundError: java/util/ServiceLoader at kg.apc.perfmon.metrics.PerfMonMetricsService.(PerfMonMetricsService.java:18) at kg.apc.perfmon.metrics.PerfMonMetricsService.getInstance(PerfMonMetricsService.java:23) at kg.apc.perfmon.metrics.AbstractPerfMonMetric.createMetric(AbstractPerfMonMetric.java:45) at kg.apc.perfmon.PerfMonMetricGetter.setUpMetrics(PerfMonMetricGetter.java:137) at kg.apc.perfmon.PerfMonMetricGetter.processCommand(PerfMonMetricGetter.java:61) at kg.apc.perfmon.PerfMonMetricGetter.processNextCommand(PerfMonMetricGetter.java:100) at kg.apc.perfmon.PerfMonWorker.read(PerfMonWorker.java:198) at kg.apc.perfmon.PerfMonWorker.processCommands(PerfMonWorker.java:87) at kg.apc.perfmon.AgentTool.processParams(AgentTool.java:75) at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:63)

Regarding of this disscussion some class in not in Java 1.5 so you have error in you documentation. https://groups.google.com/forum/#!topic/jmeter-plugins/eC9galDswXQ%5B1-25%5D