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

Stack Overflow | Pimenta | 3 weeks ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ClassNotFoundException with Wiremock 2.5.1 and Spring Boot 1.5.1

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

    Unit test doesn't work

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

    Custom Request Matcher NPE when unmatched

    GitHub | 4 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. iferca 3 times, last 2 weeks ago
  2. andyglick 1 times, last 2 weeks ago
  3. Andreas Häber 2 times, last 2 weeks ago
  4. carloscharx 6 times, last 3 weeks ago
  5. poroszd 1 times, last 3 weeks ago
68 more registered users
27 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