jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

Unable to start JMeter after installing internal plugin.

Open asfimport opened this issue 3 years ago • 7 comments

Rohit Sarkar (Bug 66045): After installing a internal plugin in JMeter, when I am again starting JMeter its showing error.

BELOW IS THE MENTIONED ERROR*

2022-04-29 14:38:21,201 main ERROR Error processing element GuiLogEvent ([Appenders: null]): CLASS_NOT_FOUND 2022-04-29 14:38:21,405 main ERROR Unable to locate appender "gui-log-event" for logger config "root" An error occurred: 'java.util.Vector org.apache.commons.cli.avalon.CLArgsParser.getArguments()' errorlevel=1 Press any key to continue . . .

When I am installing the internal plugin the below mentioned file is being over written. Overwrite E:\apache-jmeter-5.4.3\lib\ext\ApacheJMeter_core.jar

Can anyone help me regarding this.

I am attaching the screenshots and the plugin .bat files.

Created attachment s1.png: s1.png - This screenshot contains the error while starting jmeter.

s1.png - This screenshot contains the error while starting jmeter.

Severity: blocker OS: All

asfimport avatar Apr 29 '22 10:04 asfimport

Rohit Sarkar (migrated from Bugzilla): Created attachment S2.png: S2.png - This screenshot contains the info. while installing the internal plugin.

S2.png - This screenshot contains the info. while installing the internal plugin.

asfimport avatar Apr 29 '22 10:04 asfimport

Rohit Sarkar (migrated from Bugzilla): Created attachment InstallOmnibus.bat: InstallOmnibus.bat file is used to installed the plugin

InstallOmnibus.bat
@ECHO OFF

:main
cls
@ECHO...........................
@ECHO.......................
@ECHO..................
@ECHO Installing Kovair Omnibus in Jmeter
@ECHO Copy or Replace ApacheJMeter_core.jar to JmeterInstallationDir\lib\ext
@ECHO..................
@ECHO.......................
@ECHO...........................


set /p HOMEDIR="Enter Jmeter installation directory path: "
set LIBDIR=%HOMEDIR%
set SRCDIR=%~dp0



	IF EXIST %HOMEDIR% (
		@ECHO.****************************************************
		@ECHO File copying begins....
		@ECHO Source directory path: %SRCDIR%Installomnibus\
		@ECHO Target directory path: %LIBDIR%\lib\ext
		
		xcopy /s "%SRCDIR%Installomnibus\ApacheJMeter_core.jar" "%LIBDIR%\lib\ext"
		
		@ECHO File copied successfully.
		@ECHO.****************************************************
		
		@ECHO.........
		@ECHO.....
		@ECHO Kovair Omnibus Installation completed.
		@ECHO.....
		@ECHO.........
		pause > nul
		Exit
		
	) ELSE (

		@ECHO.........
		@ECHO.....
		@ECHO ERROR:Directory does not exist!
		@ECHO.....
		@ECHO.........
		@ECHO Do you want to retry? (y/n)
		set INPUT=
		set /P INPUT=Enter your choice: %=%
		If /I "%INPUT%"=="y" goto main
		If /I "%INPUT%"=="n" exit
		
		
	)








asfimport avatar Apr 29 '22 10:04 asfimport

Rohit Sarkar (migrated from Bugzilla): Created attachment UninstallOmnibus.bat: UninstallOmnibus.bat is used to uninstall the jar file.

UninstallOmnibus.bat
@ECHO OFF

:main
cls
@ECHO...........................
@ECHO.......................
@ECHO..................
@ECHO UnInstalling Kovair Omnibus from Jmeter
@ECHO.Copy or Replace ApacheJMeter_core.jar to JmeterInstallationDir\lib\ext
@ECHO..................
@ECHO.......................
@ECHO...........................



set /p HOMEDIR="Enter Jmeter installation directory path: "
set LIBDIR=%HOMEDIR%
set SRCDIR=%~dp0



IF EXIST %HOMEDIR% (
	@ECHO.****************************************************
	@ECHO File copying begins....
	@ECHO Source directory path: %SRCDIR%Uninstallomnibus\
	@ECHO Target directory path: %LIBDIR%\lib\ext
	
	xcopy /s "%SRCDIR%Uninstallomnibus\ApacheJMeter_core.jar" "%LIBDIR%\lib\ext"
	
	@ECHO File copied successfully.
	@ECHO.****************************************************
	
	@ECHO.........
	@ECHO.....
	@ECHO Kovair Omnibus successfully uninstalled from Jmeter.
	@ECHO.....
	@ECHO.........
	pause > nul
	Exit

) ELSE (

	@ECHO.........
	@ECHO.....
	@ECHO ERROR:Directory does not exist!
	@ECHO.....
	@ECHO.........
	@ECHO Do you want to retry? (y/n)
	set INPUT=
	set /P INPUT=Enter your choice: %=%
	If /I "%INPUT%"=="y" goto main
	If /I "%INPUT%"=="n" exit
	
)






asfimport avatar Apr 29 '22 10:04 asfimport

@FSchumacher (migrated from Bugzilla): The installation seems to replace replace the core jar from JMeter from an otherwise (to us) unknown installation (of an older version of JMeter?). That might cause a lot of problems.

Such an installation method is definitely not a good idea and I am unsure, if we can help you here at all.

Have you contacted the authors of the thirdparty plugin you want to use?

PS. the logging inside JMeter has seen some changes in the past. It should not affect normal plugins (well, it had, but that was fixed).

asfimport avatar Apr 29 '22 15:04 asfimport

Rohit Sarkar (migrated from Bugzilla): @Felix Schumacher This plugin I am using is made by my group but for the Version 3.3. I am trying to use this plugin for Version 5.4.3 but as you can see its not working. Can you please share a link or some information to make changes in the .jar file through which I can provide support for the plugin for version 5.4.3

asfimport avatar May 02 '22 05:05 asfimport

Rohit Sarkar (migrated from Bugzilla): (In reply to Felix Schumacher from comment 4)

The installation seems to replace replace the core jar from JMeter from an otherwise (to us) unknown installation (of an older version of JMeter?). That might cause a lot of problems.

Such an installation method is definitely not a good idea and I am unsure, if we can help you here at all.

Have you contacted the authors of the thirdparty plugin you want to use?

PS. the logging inside JMeter has seen some changes in the past. It should not affect normal plugins (well, it had, but that was fixed).

@Felix Schumacher This plugin I am using is made by my group but for the Version 3.3. I am trying to use this plugin for Version 5.4.3 but as you can see its not working. Can you please share a link or some information to make changes in the .jar file through which I can provide support for the plugin for version 5.4.3

asfimport avatar May 02 '22 05:05 asfimport

@FSchumacher (migrated from Bugzilla): If you made the plugin yourself, I would start by building it again, but changing the dependencies to a more current version.

If you want to have more details, you will have to share more details on your build process.

Some general tips:

  • A normal plugin should not include any classes from JMeter in its own jar file.
  • Check all dependencies in your build chain, if they are still good to use with JMeter (we have updated dependencies since 3.3 and will continue doing so).
  • An install script for plugins should probably "just" install the new dependencies (your jar and your dependencies) to a fresh JMeter installation.

asfimport avatar May 02 '22 09:05 asfimport