apache / apache/jmeter

Unable to execute JMX on Non GUI in Ubuntu

Open
#6,061 3 comments 0 reactions 0 assignees View on GitHub
need info
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

JMX to run on ubuntu on
Jmeter 5.5
Openjdk version "11.0.20" 2023-07-18
OpenJDK Runtime Environment (build 11.0.20+8-post-Ubuntu-1ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.20+8-post-Ubuntu-1ubuntu120.04, mixed mode, sharing)
javac 11.0.20

Machine(VM) Configuration:

NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL=https://www.ubuntu.com/
SUPPORT_URL=https://help.ubuntu.com/
BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/
PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

### Actual behavior

Error Seen:
[($User)@perf-test-instance-0:~/apache-jmeter-5.5/bin$](mailto:ven_sbhol@perf-test-instance-0:~/apache-jmeter-5.5/bin$) jmeter -n -t /home/($User)/ )/{$Test.jmx}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/usr/share/java/xstream.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/home/($User)/{$Test.jmx}’, conversion error com.thoughtworks.xstream.converters.ConversionException:
---- Debugging information ----
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message :
first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:109)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jmeter.save.ScriptWrapper
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/ResultCollector/objProp/value/sentBytes
line number : 5425
version : 2.13.20180731

### Steps to reproduce the problem

- Write a JMX file
- Upload in Ubuntu
- Make sure system matches to config mentioned above(In Expected)
- Run "jmeter -n -t "

### JMeter Version

5.5

### Java Version

11.0.20

### OS Version

Ubuntu "20.04.5 LTS (Focal Fossa)"

Contributor guide

Open the contributing guide

Research direction

Start with the reported `jmeter -n -t ` command and the NonGUIDriver error, then inspect the JMX XML around line 5425 at the `sentBytes` path. Reproduce on Ubuntu 20.04 with JMeter 5.5 and Java 11.20; done means the supplied JMX loads successfully in non-GUI mode without the conversion error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, ubuntu
Domain
cli, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.