Comments (9)
@JFK-DXML , thanks for reporting the issue, i can reproduce it on eclipse 2023-09 as well, let me see how to fix it
from testng-eclipse.
oh, wait, i got a different error not relate to this.
from testng-eclipse.
@JFK-DXML , the slf4j jar is in the testng-p2 update site https://github.com/testng-team/testng-p2-update-site/tree/main/updatesites/7.8.0.r202306071539/plugins
pls double check if it's on your installed plugin list
from testng-eclipse.
@JFK-DXML do you see any error on the "Error Log" view
from testng-eclipse.
I have the same, I had initially reported it at #533 (post) and I was rightfully pointed here so I'm reporting it here.
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).
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
I get no errors in the Error Log after I run the problematic test:
However I do get a TestNG-related error there when I do "Check for updates":
Re the plugin list mentioned above by @missedone, I do have that plugin. This is the list filtered by typing "slf":
This is what I have under "Available Software Sites" (list filtered by typing "testng"):
I did not try to manually add the update site mentioned above by @missedone because I don't want a workaround of adding an update site address specific to a given version (I prefer to keep my workaround of manually adding the slf4j-api jar (https://www.slf4j.org/download.html) to the build path as it's more likely that I will remember to remove it when this error is fixed), but if that helps I can do that and report the outcome.
from testng-eclipse.
@JFK-DXML , the slf4j jar is in the testng-p2 update site https://github.com/testng-team/testng-p2-update-site/tree/main/updatesites/7.8.0.r202306071539/plugins
pls double check if it's on your installed plugin list
Here is what I have, having swapped 7.4.0 for 7.8.0
![Screenshot 2023-10-02 at 15 44 23](https://private-user-images.githubusercontent.com/105439734/272004863-5d5ba015-fb99-4616-a669-0ddfb4e6e901.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNjQ2NDIsIm5iZiI6MTcyMTI2NDM0MiwicGF0aCI6Ii8xMDU0Mzk3MzQvMjcyMDA0ODYzLTVkNWJhMDE1LWZiOTktNDYxNi1hNjY5LTBkZGZiNGU2ZTkwMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOFQwMDU5MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZTkyMTY1MTFiZWQzMTcwZDhkMDkxODBkOTMzYjQzOGEwNzY4OTE1MzAxN2I4NGQ5YmU5NmUyYzdlYjA1N2JiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.2kZHiu8Mwu5Fx37nXTdk2YDrKSy94KuY7QhvCTdrfIo)
from testng-eclipse.
@JFK-DXML do you see any error on the "Error Log" view
Here is what I see when running the test
![Screenshot 2023-10-02 at 15 57 00](https://private-user-images.githubusercontent.com/105439734/272006807-0569d6e6-9281-433b-b267-d198bdfd97f0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNjQ2NDIsIm5iZiI6MTcyMTI2NDM0MiwicGF0aCI6Ii8xMDU0Mzk3MzQvMjcyMDA2ODA3LTA1NjlkNmU2LTkyODEtNDMzYi1iMjY3LWQxOThiZGZkOTdmMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOFQwMDU5MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNjYyNGUxMzZiYTM5MjBiNmI1MmE5OTYyZTQ3YzY0OWU0NzQ0YjEyOGVmNTg1MzI4ZGRhOGRmYjlkY2YxMjExJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.1p0dRWMkgIwWbQl3A-xEXtM-0Bs51uNBU7fcSk2knyk)
![Screenshot 2023-10-02 at 15 55 55](https://private-user-images.githubusercontent.com/105439734/272006831-d2fb3148-714a-43d0-a35a-8ed801a55564.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNjQ2NDIsIm5iZiI6MTcyMTI2NDM0MiwicGF0aCI6Ii8xMDU0Mzk3MzQvMjcyMDA2ODMxLWQyZmIzMTQ4LTcxNGEtNDNkMC1hMzVhLThlZDgwMWE1NTU2NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOFQwMDU5MDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lZjcwNmYyZjcwNTZhODU2ODQwZWFmZTQ4ZWUxM2U5NjllNGJmNjBiNmZiOWVlN2Q5MzBkNDE0NmI2YWNiMjQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.cNOHlQlIEdr2Jb5iu1__I6TR6RHClTFCyu2LgQt9Iyg)
from testng-eclipse.
@JFK-DXML do you see any error on the "Error Log" view
Here is what I see when running the test
Could you share the detail of the message field in the screenshot, most important is the classpath list in the message
from testng-eclipse.
closing this as 7.9.0 should have solved this issue.
see #561 (comment)
from testng-eclipse.
Related Issues (20)
- does not working me in my eclipse HOT 1
- xml files are not visible after testng is downloaded
- not getting TestNG in RunAs. HOT 2
- TestNG suggestion not working HOT 2
- java.nio.file.FileAlreadyExistsException: jquery-3.6.0.min.js HOT 2
- Why do I have to be online to execute tests (java.net.UnknownHostException: testng.org) HOT 7
- An error occurred while instantiating class Tryagain1.sumValidation: Unable to make public Tryagain1.sumValidation() accessible: module Tryagain does not "exports Tryagain1" to module org.testng HOT 7
- Can't run tests in Eclipse. The option doesn't appear in the contextual menu HOT 5
- Latest testng 7.8.0 is not working with eclipse testng 7.4.0.202106051955 HOT 9
- Can you release a new testng-clipse formal version to support testng 7.8.0 HOT 3
- @Parameters cannot use static variable in array HOT 3
- The TestNG eclipse update site gives error 404 which say the site do not have the file HOT 1
- Unable to resolve error in testNG.xml file HOT 3
- Error: Could not find or load main class org.testng.remote.RemoteTestNG plugin 7.8.0 with Eclipse 4.24 HOT 2
- Missing org.slf4j.impl during TestNG 7.8.0 Plugin install HOT 3
- Migrate LaunchSuite and SuiteGenerator classes from "org.testng.xml" in testng codebase to here HOT 6
- Couldn't run TestNG under run configuration after installing TestNG and adding dependency in maven pom.xml HOT 1
- is there any way to set run testng jre Differ from project build jre (testng default use project build jre) HOT 2
- parallel=class with static nested classes: Running testng.xml file works. Running class/package causes incorrect ordering
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testng-eclipse.