java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient

Stack Overflow | Pimenta | 2 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ClassNotFoundException with Wiremock 2.5.1 and Spring Boot 1.5.1

    Stack Overflow | 2 months ago | Pimenta
    java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient
  2. 0

    Unit test doesn't work

    GitHub | 4 months ago | eallais
    java.lang.NoClassDefFoundError: org/mortbay/jetty/Connector
  3. 0

    Custom Request Matcher NPE when unmatched

    GitHub | 5 months ago | marksievers
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wiremock misleadingly tells it failed to communicate with admin endpoint

    GitHub | 2 years ago | kmejka
    com.github.tomakehurst.wiremock.client.VerificationException: Expected status 200 for http://localhost:8090/__admin/requests/count but was 500

  1. rsprangemeijer 6 times, last 1 day ago
  2. marcbouvierdav 26 times, last 3 days ago
  3. batwalrus76 12 times, last 4 days ago
  4. musketyr 1 times, last 4 days ago
  5. SteVio1989 4 times, last 5 days ago
69 more registered users
26 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.apache.http.client.HttpClient

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    4 frames
  3. WireMock
    WireMockRule.<init>
    1. com.github.tomakehurst.wiremock.core.WireMockApp.buildStubRequestHandler(WireMockApp.java:124)
    2. com.github.tomakehurst.wiremock.WireMockServer.<init>(WireMockServer.java:71)
    3. com.github.tomakehurst.wiremock.junit.WireMockRule.<init>(WireMockRule.java:42)
    4. com.github.tomakehurst.wiremock.junit.WireMockRule.<init>(WireMockRule.java:38)
    4 frames
  4. br.com.mobicare
    WiremockTest.<clinit>
    1. br.com.mobicare.minhaoi.WiremockTest.<clinit>(WiremockTest.java:21)
    1 frame
  5. Java RT
    Field.get
    1. sun.misc.Unsafe.ensureClassInitialized(Native Method)
    2. sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:43)
    3. sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:142)
    4. java.lang.reflect.Field.acquireFieldAccessor(Field.java:1088)
    5. java.lang.reflect.Field.getFieldAccessor(Field.java:1069)
    6. java.lang.reflect.Field.get(Field.java:393)
    6 frames
  6. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkField.get(FrameworkField.java:73)
    2. org.junit.runners.model.TestClass.getAnnotatedFieldValues(TestClass.java:230)
    3. org.junit.runners.ParentRunner.classRules(ParentRunner.java:255)
    4. org.junit.runners.ParentRunner.withClassRules(ParentRunner.java:244)
    5. org.junit.runners.ParentRunner.classBlock(ParentRunner.java:194)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:362)
    6 frames
  7. Spring TestContext
    SpringJUnit4ClassRunner.run
    1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)
    1 frame
  8. JUnit
    JUnitCore.run
    1. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    1 frame
  9. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    2 frames
  10. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:253)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
    2 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  12. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame