Unable to open or run existing Jmx file in latest Jmeter

537 views
Skip to first unread message

Mathura

unread,
Sep 22, 2023, 10:22:36 PM9/22/23
to jmeter-plugins
Hi There,

Performance script was written in Jmeter 5.1.1 and JDK 11.

Currently we're using java 17 and trying to use Jmeter latest version, but we can't unable to open the existing jmx file which is created in Jmeter version 5.1.1.

Due to this issue, we have tried using Jmeter version 5.1.1, but have not been able to reboot the UI.

Let me know how to open the existing JMX script(created in 5.1.1) using current Jmeter version 5.6.2, as we should stick with Java latest.

Looking forward to hear from you!

Thanks,
Mathura

Dmitri T

unread,
Sep 23, 2023, 2:23:59 AM9/23/23
to jmeter-plugins
We cannot help you without seeing the details of you "can't unable" to open the existing jmx file.

If you're getting an error - provide details of the error. If there are no details - take a look at jmeter.log file, if there are no suspicious entries there - increase JMeter logging level.

If your "performance script" used any JMeter Plugins make sure that they all are installed in the new JMeter version. Or just install JMeter Plugins Manager, it will detect missing plugins and suggest you to download them (given they present in the JMeter Plugins repository)
Message has been deleted

Mathura

unread,
Sep 25, 2023, 5:10:20 PM9/25/23
to jmeter-plugins
Hi Dmitri,

Thank you. The issue has been resolved by adding Jmeter Plugin , now I can import the existing jmx file in current Jmeter version.

But I'm unable to run it successfully.

Receiving the below error. Can you please check and let me know.


2023-09-25 15:58:08,007 INFO o.a.j.t.JMeterThread: Thread finished: Sample - TopAPIs-ThreadStarter 1-11
2023-09-25 15:58:08,024 INFO o.a.j.t.JMeterThread: Thread started: Sample - TopAPIs-ThreadStarter 1-12
2023-09-25 15:58:08,025 ERROR o.a.j.t.JMeterThread: Test failed!
java.lang.IllegalArgumentException: File sample.csv must exist and be readable
at org.apache.jmeter.services.FileServer.createBufferedReader(FileServer.java:424) ~[ApacheJMeter_core.jar:5.6.2]
at org.apache.jmeter.services.FileServer.readLine(FileServer.java:340) ~[ApacheJMeter_core.jar:5.6.2]
at org.apache.jmeter.config.CSVDataSet.iterationStart(CSVDataSet.java:182) ~[ApacheJMeter_components.jar:5.6.2]
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:412) ~[ApacheJMeter_core.jar:5.6.2]
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:404) ~[ApacheJMeter_core.jar:5.6.2]
at org.apache.jmeter.control.GenericController.next(GenericController.java:170) ~[ApacheJMeter_core.jar:5.6.2]
at com.blazemeter.jmeter.control.VirtualUserController.next(VirtualUserController.java:41) ~[jmeter-plugins-casutg-2.10.jar:?]
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:109) ~[ApacheJMeter_core.jar:5.6.2]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:266) [ApacheJMeter_core.jar:5.6.2]
at java.lang.Thread.run(Thread.java:833) [?:?]


Thanks,
Mathura

Dmitri T

unread,
Sep 26, 2023, 3:14:06 AM9/26/23
to jmeter-plugins
You're "can't unable" to run your test because you didn't copy sample.csv file to the location which is used in your CSV Data Set Config (most probably "bin" folder of your JMeter installation) and the log entry explicitly says it:

File sample.csv must exist and be readable

More information: Using CSV DATA SET CONFIG
Reply all
Reply to author
Forward
0 new messages