Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML

1,039 views
Skip to first unread message

Rajani Pagadala

unread,
Dec 14, 2015, 1:53:22 PM12/14/15
to jmeter-plugins, rajan...@yahoo.com
Hi jmeter-plugins,

When I execute the JMeter test from the Mvn throws the below error. I have attached the JMX file, Error file, POM file.

Please help me! It's a road block for me!

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building cc-rest-perf 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for kg.apc:perfmon:jar:1.0.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ jmeter ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\gitrepository\cc-rest-perf\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jmeter ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\gitrepository\cc-rest-perf\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ jmeter ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\gitrepository\cc-rest-perf\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ jmeter ---
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[INFO] Compiling 1 source file to C:\gitrepository\cc-rest-perf\target\test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.14.1:test (default-test) @ jmeter ---
[INFO] 
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ jmeter ---
[INFO] Building jar: C:\gitrepository\cc-rest-perf\target\jmeter-0.0.1-SNAPSHOT.jar
[INFO] 
[INFO] --- jmeter-maven-plugin:1.10.1:jmeter (jmeter-tests) @ jmeter ---
[INFO]  
[INFO] -------------------------------------------------------
[INFO]  P E R F O R M A N C E    T E S T S
[INFO] -------------------------------------------------------
[INFO]  
[INFO]  
[info]  
[debug] JMeter is called with the following command line arguments: -n -t C:\gitrepository\cc-rest-perf\src\test\jmeter\CC_REST.jmx -l C:\gitrepository\cc-rest-perf\target\jmeter\results\20151214-CC_REST.jtl -d C:\gitrepository\cc-rest-perf\target\jmeter -j C:\gitrepository\cc-rest-perf\target\jmeter\logs\CC_REST.jmx.log
[info] Executing test: CC_REST.jmx
[debug] Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'C:\gitrepository\cc-rest-perf\src\test\jmeter\CC_REST.jmx', conversion error com.thoughtworks.xstream.converters.ConversionException: kg.apc.jmeter.threads.SteppingThreadGroup : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] ---- Debugging information ----
[debug] message             : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
[debug] cause-message       : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] class               : org.apache.jorphan.collections.ListedHashTree
[debug] required-type       : org.apache.jorphan.collections.ListedHashTree
[debug] converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
[debug] path                : /jmeterTestPlan/hashTree/hashTree/kg.apc.jmeter.threads.SteppingThreadGroup
[debug] line number         : 14
[debug] ------------------------------- : kg.apc.jmeter.threads.SteppingThreadGroup : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] ---- Debugging information ----
[debug] message             : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
[debug] cause-message       : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] class               : org.apache.jorphan.collections.ListedHashTree
[debug] required-type       : org.apache.jorphan.collections.ListedHashTree
[debug] converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
[debug] path                : /jmeterTestPlan/hashTree/hashTree/kg.apc.jmeter.threads.SteppingThreadGroup
[debug] line number         : 14
[debug] -------------------------------
[debug] message             : kg.apc.jmeter.threads.SteppingThreadGroup : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] ---- Debugging information ----
[debug] message             : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
[debug] cause-message       : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] class               : org.apache.jorphan.collections.ListedHashTree
[debug] required-type       : org.apache.jorphan.collections.ListedHashTree
[debug] converter-type      : org.apache.jmeter.save.converters.HashTreeConverter
[debug] path                : /jmeterTestPlan/hashTree/hashTree/kg.apc.jmeter.threads.SteppingThreadGroup
[debug] line number         : 14
[debug] -------------------------------
[debug] cause-exception     : com.thoughtworks.xstream.converters.ConversionException
[debug] cause-message       : kg.apc.jmeter.threads.SteppingThreadGroup : kg.apc.jmeter.threads.SteppingThreadGroup
[debug] first-jmeter-class  : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:67)
[debug] class               : org.apache.jmeter.save.ScriptWrapper
[debug] required-type       : org.apache.jorphan.collections.ListedHashTree
[debug] converter-type      : org.apache.jmeter.save.ScriptWrapperConverter
[debug] path                : /jmeterTestPlan/hashTree/hashTree/kg.apc.jmeter.threads.SteppingThreadGroup
[debug] line number         : 14
[debug] version             : 2.13 r1665067
[debug] -------------------------------
[info] Completed Test: CC_REST.jmx
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE



Thanks,
Raj
pom.txt
JMXfile.txt
error.txt

Rajani Pagadala

unread,
Dec 14, 2015, 1:58:54 PM12/14/15
to jmeter-plugins, rajan...@yahoo.com
I have attached the CC_REST.jmx.log from the Target folder.
CC_REST.jmx.log

Rajani Pagadala

unread,
Dec 16, 2015, 7:29:51 PM12/16/15
to jmeter-plugins, rajan...@yahoo.com
I have figured it out what was the issue.



On Monday, December 14, 2015 at 10:53:22 AM UTC-8, Rajani Pagadala wrote:

lion...@gmail.com

unread,
Nov 21, 2016, 5:55:40 AM11/21/16
to jmeter-plugins, rajan...@yahoo.com
Hi Rajani,

What was the issue? I am getting the same error.

Regards

Arshad Ali

unread,
Sep 13, 2023, 10:13:31 AM9/13/23
to jmeter-plugins
I am getting the below error when running the JMX script through the command line (using Putty) on the node server. 
This script is working fine on the local system through JMeter.  My Network was not allowing me to download the plugin manager from Jmeter so I downloaded the concurrency thread group jar file and pasted it into the lib folder and some jars in the ext folder. I have uploaded the same JMeter version with all jar files on the Noder server from my local system.

Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'/home/appadmin/softrun/01_script/MVP5_multithreading_DryRun_9Sep23.jmx'.

Cause:

CannotResolveClassException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup

 

Detail:com.thoughtworks.xstream.converters.ConversionException:

---- Debugging information ----

cause-exception     : com.thoughtworks.xstream.converters.ConversionException

cause-message       :

first-jmeter-class  : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:66)

class               : org.apache.jmeter.save.ScriptWrapper

required-type       : org.apache.jmeter.save.ScriptWrapper

converter-type      : org.apache.jmeter.save.ScriptWrapperConverter

path                : /jmeterTestPlan/hashTree/hashTree/com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup

line number         : 194

version             : 5.4.1

-------------------------------

An error occurred: Error in NonGUIDriver Problem loading XML from:'/home/appadmin/softrun/01_script/MVP5_multithreading_DryRun_9Sep23.jmx'.

Cause:

CannotResolveClassException: com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup

 

Detail:com.thoughtworks.xstream.converters.ConversionException:

---- Debugging information ----

cause-exception     : com.thoughtworks.xstream.converters.ConversionException

cause-message       :

first-jmeter-class  : org.apache.jmeter.save.converters.HashTreeConverter.unmarshal(HashTreeConverter.java:66)

class               : org.apache.jmeter.save.ScriptWrapper

required-type       : org.apache.jmeter.save.ScriptWrapper

converter-type      : org.apache.jmeter.save.ScriptWrapperConverter

path                : /jmeterTestPlan/hashTree/hashTree/com.blazemeter.jmeter.threads.concurrency.ConcurrencyThreadGroup

line number         : 194

version             : 5.4.1

-------------------------------


Please help me to solve this issue. 

Dmitri T

unread,
Sep 13, 2023, 11:17:21 AM9/13/23
to jmeter-plugins
The error clearly states that Concurrency Thread Group plugin is not installed.
  1. Download https://jmeter-plugins.org/files/packages/jpgc-casutg-2.10.zip 
  2. Unpack it
  3. Copy jmeter-plugins-casutg-2.10.jar to lib/ext folder of your JMeter installation
  4. Copy jmeter-plugins-cmn-jmeter-0.6.jar to lib folder of your JMeter installation
That should be sufficient

Also be aware that according to 9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure you should always be using the latest version of JMeter so consider upgrading to JMeter 5.6.2  (or whatever is the latest stable version available at JMeter downloads page)

You might also find this information useful
  1. Plugins Manager Network Configuration
  2. Plugins Manager from Command-Line
  3. And last but not the least given "script is working fine on the local system" you can just copy it on the "node server" (whatever it is) using SCP

Arshad Salmani

unread,
Sep 14, 2023, 9:05:01 AM9/14/23
to jmeter-...@googlegroups.com
Hi,

Thanks for the reply and support. I have downloaded the latest Jmeter (5.6.2) and concurrency thread group jars and also uploaded the Latest Jmeter (5.6.2) along with Jar to the node server. But now getting the below error.

I used the below command to execute the script from master server 50 to slave 51 server. The same command was working fine earlier.

nohup /opt/apache-jmeter-5.6.2/bin/jmeter -Djava.rmi.server.hostname=10.104.180.50 -n -t MVP5_multithreading_DryRun.jmx  -l MVP5_multithreading_DryRun_14Sep23.jtl -R 10.104.180.51:4000 > MVP5_multithreading_DryRun_14Sep23.log 2>&1 & 

nohup: ignoring input

nohup: failed to run command '/opt/apache-jmeter-5.6.2/bin/jmeter': No such file or directory



Arshad Salmani

Senior QA Engineer


+971 56 828 0883

asalmani@shory.com


Sky Tower, Office 1006

Al Reem Island, Abu Dhabi, UAE

Shory.com


Connect with us on LinkedIn

Follow us on Twitter | Instagram | Facebook

Shory Insurance Brokers is a licensed broker by the Central Bank of UAE with license number (287)


--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jmeter-plugins/acddd922-c5da-4aa3-af37-b3f442822aefn%40googlegroups.com.

Dmitri T

unread,
Sep 14, 2023, 1:13:47 PM9/14/23
to jmeter-plugins
  1. This question is not related to JMeter
  2. This question is not related to JMeter Plugins
The error means that there is no jmeter script under your /opt/apache-jmeter-5.6.2/bin folder. Either you unpacked JMeter incorrectly or downloaded source code bundle, you need binary distribution


Given you're from UAE and cannot understand what's being written in the referenced article here are the commands for installation

tar xf apache-jmeter-5.6.2.tgz -C /opt
Reply all
Reply to author
Forward
0 new messages