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

[🐛 Bug]: Exception in thread "main" java.lang.NoClassDefFoundError: dev/failsafe/Policy #15090

Open
Mrigz1 opened this issue Jan 15, 2025 · 5 comments

Comments

@Mrigz1
Copy link

Mrigz1 commented Jan 15, 2025

What happened?

I am using Eclipse -> Maven with Selenium version 4.27.0 . I have tried solutions available on github , youtube but not possible to resolve this issue.

This is my pom file
pom.docx

How can we reproduce the issue?

package intro;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class SekkIntro {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		System.setProperty("webdriver.chrome.driver", "D:\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com");
	}

}

Relevant log output

Exception in thread "main" java.lang.NoClassDefFoundError: dev/failsafe/Policy
	at org.seleniumhq.selenium.http/org.openqa.selenium.remote.http.ClientConfig.<clinit>(ClientConfig.java:33)
	at org.seleniumhq.selenium.chrome_driver/org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:83)
	at org.seleniumhq.selenium.chrome_driver/org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:51)
	at intro/intro.SekkIntro.main(SekkIntro.java:11)
Caused by: java.lang.ClassNotFoundException: dev.failsafe.Policy
	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:526)
	... 4 more

Operating System

Windows 10

Selenium version

4.27.0

What are the browser(s) and version(s) where you see this issue?

Google Chrome Version 132.0.6834.84 (Official Build) (64-bit)

What are the browser driver(s) and version(s) where you see this issue?

Chromedriver.exe Version 132.0.6834.83

Are you using Selenium Grid?

No response

Copy link

@Mrigz1, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol
Copy link
Member

diemol commented Jan 15, 2025

Can you paste your pom.xml in a comment?

@Mrigz1
Copy link
Author

Mrigz1 commented Jan 15, 2025

Can you paste your pom.xml in a comment?

Sorry im not able to attch the .xml format.

@diemol
Copy link
Member

diemol commented Jan 15, 2025

Not the file itself, the content/text as a comment.

@joerg1985
Copy link
Member

This should be fixed with the next release, failsafe has been removed in this place with 93483c5

@Mrigz1 In the mean time you could try this workaround: #14567 (comment)

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

No branches or pull requests

3 participants