JMeter not able to open test plan ConversionException - jmeter

I am using jmeter almost every day.
Today when I try open my test plan (.jmx file), I get error (screenshot below).
Yesterday it worked with no problem and I did not install anything new, new plugin or new version of JMeter.
I found similar issues here, so I tried to install jmeter-plugins-manager-1.1.jar then update other plugins but no changes, still same error.
I tried newest version of JMeter 4.0 but it didn't help neither.
error from version 3.1 (yesterday works)
error from version 4.0

The error you're getting is about CorrectedResultCollector so my expectation is that your Test Plan contains some JMeter Plugins
Download JMeter Plugins Manager and drop it to lib/ext folder of your JMeter installation
Restart JMeter to pick it up
Open your test - the Plugin Manager should suggest you to install dependencies.
The class itself lives in jmeter-plugins-common jar however there could be more plugins which are missing in your current JMeter setup.

Related

JMeter WebDriver Sampler Groovy : Error unable to resolve class org.openqa.selenium.manager.SeleniumManager is thrown

I have JMeter 5.5 running on Mac 12.6 (21G115) with WebDriver Sampler for doing client side performance testing. It works without any issue with javascript.
I want to move to Groovy quickly and got following error when test was executed.
It looks like a PATH issue.
2023-01-04 23:14:08,307 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[Thread Group 1-1,6,main]
java.lang.NoClassDefFoundError: org/openqa/selenium/manager/SeleniumManager
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:141) ~[selenium-remote-driver-4.7.2.jar:?]
at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:41) ~[selenium-chrome-driver-4.7.2.jar:?]
at
Following Selenium jars are available in JMETER_HOME/lib/ext folder
As per JavaDoc
This implementation is still in beta, and may change. The Selenium-Manager binaries are distributed in a JAR file (org.openqa.selenium:selenium-manager) for the Java binding language
I fail to see any sign of selenium-manager jar in your beautiful screenshot hence you're getting the error.
If you want to instantiate the WebDriver yourself - move to JSR223 Sampler and make sure that selenium-manager is in your classpath.
ChromeDriver is being managed by Chrome Driver Config so you can just add it, provide the path to your chromedriver executable and refer it in your script as WDS.browser
The above code should work just fine assuming you've installed WebDriver Sampler using JMeter Plugins Manager
Also "lib/ext" folder is for JMeter Plugins, dependency libraries should go "lib" folder, see JMeter Classpath section for more details.

Jmeter - Cannot invoke "org.apache.jmeter.gui.JMeterGUIComponent.clearGui()" because "guicomp" is null

I am trying to migrate to Jmeter 5.5
I have a script that works perfectly fine on Jmeter 5.4.3, but when I try to load it on JM 5.5 I got:
-Version 5.5 is just downloaded
-The plugins that I am using in /lib folder are (C:\apache-jmeter-5.4.3\lib\ext) are:
jmeter-plugins-dummy-0.4.jar
jmeter-plugins-manager-1.7.jar
How to solve this issue with JM5.5?
We cannot help you without seeing:
At least schematic view of your Test Plan
jmeter.log file (preferably with debug logging enabled for all org.apache.jmeter components)
Instead of installing the plugins manually just drop the latest version of JMeter Plugins Manager to "lib/ext" folder of your JMeter installation and restart JMeter to pick it up.
One done when you will try to open the test plan which uses any of JMeter Plugins known to the plugins manager you will be prop
I had the same issue. I had to add the DBMon Sample Collector plugin, and it solved the problem.

Jmeter plugins not installing for Jmeter 3.0

I was having issue with some missing class error and decided to uninstall and install new version of Jmeter.
I installed the Jmeter plugin manager and selected a plugin from available plugins to install and click on Apply Changes and Restart Jmeter. However I have tried this many times but the selected jmeter plugin does not get installed.
I even looked up on lib/ext folder to make sure the plugins have been installed. Not sure what the problem is here. My java version is 1.8.0_131. I have tried installing on both Jmeter 3.0 and Jmeter 3.3 but kept running into the same issue.
This is the Jmeter log file, if that is of any help -
2017/12/18 14:52:41 INFO - org.jmeterplugins.repository.PluginManager: Restarting JMeter...2017/12/18 14:52:41 INFO - org.jmeterplugins.repository.PluginManager: Starting JMeter Plugins modifications 2017/12/18 14:52:41 WARN - org.jmeterplugins.repository.PluginManager: Failed to run plugin cleaner job java.nio.file.NoSuchFileException: C:\Users\Documents\Jmeter\apache-jmeter-3.0\lib\ext\jmeter-plugins-manager-0.18.jar
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
at sun.nio.fs.WindowsFileCopy.copy(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.copy(Unknown Source)
at java.nio.file.Files.copy(Unknown Source)
at org.jmeterplugins.repository.ChangesMaker.getTempPmgrJAR(ChangesMaker.java:63)
at org.jmeterplugins.repository.ChangesMaker.getProcessBuilder(ChangesMaker.java:34)
at org.jmeterplugins.repository.PluginManager.startModifications(PluginManager.java:145)
at org.jmeterplugins.repository.PluginManager$1.run(PluginManager.java:202)
I hope you followed these steps...
Download JMeter plugin manager from https://jmeter-plugins.org/install/Install/ and put it in your JMeter's "lib/ext" folder.
Now start your JMeter in UI mode.
Click Options - you should find "Plugins Manager" option (if not something wrong - download fresh copy of latest JMeter 4.0).
Click "Plugins Manager" option.
Go to "Available Plugins" tab.
Install one at a time (which ever is required) - Installing multiple at a time might cause some problem.
Just try to remove the existing Jmeter plugin manager and reinstall it in the correct way as follows.
Download and configure the Jmeter plugin manager:
Browse the following link and download the "Jmeter plugin
manager" Jar file.
Jmeter plugin manager
Add copy and paste the downloaded JAR file into "ext" folder to the
"C:\your location\apache-jmeter-5.3\lib\ext."
(In my case - C:\Users\My Account\Downloads\apache-jmeter-5.3\lib\ext)
Restart the Jmeter. (You will see a new icon at the top right corner of your JMeter application if the installation process is completed.)
Note: always use the latest version of JMeter. You can download that from here.
Jmeter download link -
Or.
You can install the plugins directly to the Jmeter as follows.
Search and download the particular plugin that you want to install. You can download them using this link
Go to the "lib" folder which resides within the downloaded plugin folder.
You can see "jar file/s" and "ext" folder.
Copy that jar file into the "lib" folder which is located within your JMeter folder.
(In my case - C:\Users\My Account\Downloads\apache-jmeter-5.3\lib)
Go to the "ext" folder of your downloaded folder. (You can see another JAR files within that)
Copy those files to the "ext" folder which is located within your JMeter folder.
(In my case - C:\Users\My Account\Downloads\apache-jmeter-5.3\lib\ext)
Restart the Jmeter application.
The simplest solution is to download the older version of the plugin as it may have been modified to use the latest version of JMeter. https://jmeter-plugins.org/ provides the plugins. On this site, you can look up for the plugin you need and download the required version as seen in the below image. Extract the zip file and copy the jar in [JMeter Root Directory]/lib/ext directory.

Cannot load JDBC driver class 'com.mysql.jdbc.Driver' jmeter

Getting this error while running the test plan on jmeter.
I have also added mysql-connector-java-5.0.8-bin.jar file in the lib folder and re-started the jmeter as well after adding the jar file.
Can anyone has solution please?
Looking into Changes in MySQL Connector/J 5.0.8 (2007-10-09) it appears you are using a 10-years-old driver, it might be the cause of your problem.
Download latest available JMeter version (JMeter 3.3 as of now) - let's start clean
Download latest GA release of the MysQL Connector/J (5.1.44 as of now), unpack it somewhere and copy mysql-connector-java-5.1.44-bin.jar file to JMeter Classpath
Restart JMeter to pick the .jar up
Run your test once again. If there will be failures - update your question with screenshots of the JDBC Connection Configuration, JDBC Request Sampler and jmeter.log file contents.

Jmeter : Websocket Sampler showing error

I am trying to connect WebSocket using Jmeter- Websocket sampler.
For this, I used maciejzaleski plugin.
Getting below error from the jmeter log.
ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.NoClassDefFoundError: org/eclipse/jetty/util/ssl/SslContextFactory
If I am missing something, let me know how to correct it.
As per WebSocket Testing With Apache JMeter article:
Check Project Wiki for any dependencies, to be completely sure all the jars from target/site/plugins directory should go either to /lib or to /lib/ext folder of your JMeter installation. Currently (for release 1.0.1) the required libraries live in Jetty Bundles 9.1.1.v20140108.
So:
Download all required libraries
Put them into JMeter classpath (i.e. "lib" folder of your JMeter installation
Restart JMeter to pick the libraries up
You can follow below article, I followed and works fine.
By the way take latest Jmeter 3.0 or above.
https://www.redline13.com/blog/2016/01/cloud-based-jmeter-websocket-testing/

Resources