Blazemeter / CorrelationRecorder

A repository for the Correlation Recorder Plugin for JMeter
https://blazemeter.github.io/CorrelationRecorder/
Apache License 2.0
25 stars 13 forks source link

getting "Cannot invoke "org.apache.jmeter.gui.JMeterGUIComponent.clearGui()" because "guicomp" is null" issue #66

Open StraySquid760 opened 1 month ago

StraySquid760 commented 1 month ago

Describe the bug

Cannot invoke "org.apache.jmeter.gui.JMeterGUIComponent.clearGui()" because "guicomp" is null while launching Bjm Correlation recorder plugin template in Jmeter

A clear and concise description of what the bug is.

Launch Jmeter Go to the templates Icon after installing the bzm correlation recorder plugin Select the Bzm correlation recorder template and click on create button. We are getting "Cannot invoke "org.apache.jmeter.gui.JMeterGUIComponent.clearGui()" because "guicomp" is null issue and unable to Launch the template in Macbook Air M2.

Environment macbook Air M2 Java 21 Jmeter Version 5.6.3

Let us know in which versions of these tools the error occurs:

To Reproduce

Steps to reproduce the bug:

  1. Launch Jmeter in Macbook
  2. Click on the Book icon (Templates)
  3. Select bzm correlation recorder template from the drop down and click create button
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Complementary information

To have a faster and accurate response to your issue, please share:

In case of sharing the JTL, please make sure you configure it as shown in the docs/JTLRecordingConfiguration.png file

Additional context

Screenshot 2024-05-10 at 21 19 43

Add any other context about the problem here.

StraySquid760 commented 1 month ago

Hi All,

Anyone else faced this issue? Need help urgently!!

3dgiordano commented 1 month ago

Hi @StraySquid760

We need more information. Start JMeter with log level in DEBUG and attach the jmeter.log generated when you get the error exception.

Check if it happens to you with other plugins or components. If it happens to JMeter using other components, it is possible that the problem is with Java or JMeter and not with our plugin.

We are waiting for a jmeter.log with the error exception information.

StraySquid760 commented 1 month ago

jmeter.log

Apologies for delayed response.

Have attached the log in debug mode. Also, this issue is observed only with BZM-correlation-recorder plugin and not with other available plugins.

3dgiordano commented 1 month ago

Hi @StraySquid760

The attached jmeter.log appears to have zero bytes, it does not appear to have been uploaded correctly. Could you try uploading it again?

StraySquid760 commented 1 month ago

changed the log to debug mode but its still blank. However, attaching the file for exceptions seen in the Jmeter screen:

GuiComp_Issue.txt

3dgiordano commented 4 weeks ago

Hi @StraySquid760

The errors seem to indicate that it is not installed correctly.

For the particular error you are getting in our plugin, apparently the jmeter-bzm-commons-0.2.1.jar dependency is not found in the /lib folder

You also have a similar error in the same plugin manager (not found the class kg.apc.jmeter.dbmon.DbMonCollector a depenency needed in the lib folder).

It seems that the dependencies are installed in lib/ext but not the ones that should be in /lib (or exist in /lib/ext but need to be moved to /lib)

Check if it was installed correctly.

And if jmeter is not correctly generating the jmter.log file, you should check if it is JMeter correctly installed.

Try installing a jmeter from scratch, which generates jmeter.log, then install plugin manager and from plugin manager install the plugin.

If you installed the plugin from the Release section on GitHub, you may not have the dependencies in the correct folders. The best way to install is following the procedure indicated in the documentation, which uses the zip generated by plugin manager: https://blazemeter.github.io/CorrelationRecorder/guide/installation-guide.html#installation

Also I found same error reported on stack overflow related to a wrong installation (others plugins but the same mis installation of dependencies) https://stackoverflow.com/questions/72713587/jmeter-cannot-invoke-org-apache-jmeter-gui-jmeterguicomponent-cleargui-bec

StraySquid760 commented 3 weeks ago

Sure @3dgiordano , let me try installing it again from scratch and get back. Thanks for the support :)