java.lang.NoClassDefFoundError: org/apache/http/conn/scheme/SchemeSocketFactory

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via oracle.com by Unknown author

App tries to load in a class through its string name using forName method in class Class, findSystemClass method in class ClassLoader, loadClass method in class ClassLoader but no definition for the class with the specified name could be found.

,

Unless you are involved in dynamic class loading and using the Java Reflection API, chances are that the ClassNotFoundException error you are getting is not from your application code but from a referencing API.

Solutions on the web

via Google Groups by rakesh, 1 year ago
org/apache/http/conn/scheme/SchemeSocketFactory
via GitHub by MariaSoluto
, 2 years ago
org/apache/http/conn/HttpClientConnectionManager
via Google Groups by SrinivasGS, 2 years ago
org/apache/http/conn/scheme/ SchemeSocketFactory
via Google Groups by SrinivasGS, 2 years ago
org/apache/http/conn/scheme/ SchemeSocketFactory
via Google Groups by Dan, 2 years ago
org/apache/http/client/ RedirectStrategy
java.lang.ClassNotFoundException: org.apache.http.conn.scheme.SchemeSocketFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.openqa.selenium.remote.HttpCommandExecutor.(HttpCommandExecutor.java:117)
at com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder.withServer(Unknown Source)
at com.google.android.testing.nativedriver.client.AndroidNativeDriverBuilder.withDefaultServer(Unknown Source)
at com.example.android.notepad.SeleniumTest.LaunchTest.getDriver(LaunchTest.java:44)
at com.example.android.notepad.SeleniumTest.LaunchTest.setUp(LaunchTest.java:33)
at junit.framework.TestCase.runBare(TestCase.java:128)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

Users with the same issue

Once, 1 week ago
Once, 1 month ago
Once, 2 months ago
Once, 2 months ago
5 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.