Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing SLF4J Dependency Causing Runtime Error #32

Open
Moh-Snoussi opened this issue Aug 13, 2023 · 3 comments
Open

Missing SLF4J Dependency Causing Runtime Error #32

Moh-Snoussi opened this issue Aug 13, 2023 · 3 comments

Comments

@Moh-Snoussi
Copy link

Description

First of all, thank you for your work on this project.

I encountered an error when running ./startAgent.sh,The error was caused by a missing SLF4J dependency:

ERROR: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

Perfmon-Server-Agent version: 2.2.3
Operating System: Ubuntu 20.04.6 LTS
Java version: openjdk 11.0.20 2023-07-18

I was able to resolve the issue by manually downloading the SLF4J API JAR file from the Central Repository and placing it in the lib directory of the project. However, this information was not mentioned in the project's documentation. It would be immensely helpful to update the documentation or to include all necessary dependencies.

@undera
Copy link
Owner

undera commented Aug 13, 2023

@Moh-Snoussi Feel free to create a PR with your view of documentation improvement

@mayankyadavy29
Copy link

@Moh-Snoussi
Hi, I am trying to use this plugin in Jmeter for resource monitoring. For that I am trying to start this Agent but it is not recognizing SLF4J. It shows this error :
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.

I have performed these steps :

  1. Downloaded slf4j-api-2.0.9.jar from https://repo1.maven.org/maven2/org/slf4j/slf4j-api/2.0.9/
  2. Pasted this file in lib folder of ServerAgent.

Specs :
Server-Agent Version : 2.2.3
Operating System : Windows
Java version : java version "1.8.0_401"
Java(TM) SE Runtime Environment (build 1.8.0_401-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.401-b10, mixed mode)

Do you know of any other step that I am missing ? Is there any pre-requisite or something that needs to be done in order to use SLF4J ?

@Moh-Snoussi
Copy link
Author

Moh-Snoussi commented Feb 22, 2024

@mayankyadavy29 please try slf4j-api-2.0.0.jar into the the lib of the ServerAgent folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants