Giter VIP home page Giter VIP logo

Comments (7)

missedone avatar missedone commented on August 17, 2024

Thanks for reporting the issue, it should be solved in the latest plugin version 7.8.0

from testng-eclipse.

SantiBailors avatar SantiBailors commented on August 17, 2024

I am using the plugin v. 7.8.0 but I'm getting the same error:

[RemoteTestNG] detected TestNG version 7.8.0
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.testng.log4testng.Logger.lambda$getLogger$0(Logger.java:30)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
at org.testng.log4testng.Logger.getLogger(Logger.java:30)
at org.testng.TestNG.(TestNG.java:113)
at org.testng.remote.support.RemoteTestNGFactory7_8.createRemoteTestNG(RemoteTestNGFactory7_8.java:16)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:67)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 6 more

Since I don't need this logger, I used the workaround of adding (as external jar) to the build path of the project that contains these tests the slf4j-api jar (https://www.slf4j.org/download.html), so now I just get a warning that it's using a no-op logger implementation (see https://www.slf4j.org/codes.html#noProviders for actual logging).

image

Eclipse 2023-09 (4.29.0, Build id: 20230907-1323), Windows 10 Pro.

java.specification.version=17
java.vm.vendor=Eclipse Adoptium
sun.arch.data.model=64
java.vm.specification.version=17
java.runtime.version=17.0.7+7

from testng-eclipse.

missedone avatar missedone commented on August 17, 2024

@SantiBailors , do you see any error on the "Error Log" view
image

from testng-eclipse.

missedone avatar missedone commented on August 17, 2024

seems duplicate with #559

from testng-eclipse.

SantiBailors avatar SantiBailors commented on August 17, 2024

@missedone I agree, what I am experiencing is definitely #559. No, there are no errors in the Error Log view after I get this exception. But interestingly, there are after I check for updates, and one is about TestNG update site. I am going to write what I got into #559.

from testng-eclipse.

missedone avatar missedone commented on August 17, 2024

Could you try the latest version of 7.9.0

from testng-eclipse.

missedone avatar missedone commented on August 17, 2024

closing this as 7.8.0.202308061717 and 7.9.0.202312310355 above should solve this issue

see #561 (comment)

from testng-eclipse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.