java.lang.NoClassDefFoundError: org/joda/time/ReadablePeriod

GitHub | rmpestano | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    GitHub comment 71#247444788

    GitHub | 6 months ago | rmpestano
    java.lang.NoClassDefFoundError: org/joda/time/ReadablePeriod
  2. 0
    samebug tip
    This exception normally means you either have to add the said class to your dependencies or you miswrote it. Look in the documentation of your library how to add it as a dependency.
  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    This was caused by a failure to instantiate Kafka broker. Check your dependencies.
  6. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.
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.joda.time.ReadablePeriod

    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. net.masterthought.cucumber
    ReportBuilder.generateReports
    1. net.masterthought.cucumber.json.Element.calculateAttachments(Element.java:181)
    2. net.masterthought.cucumber.json.Element.setMedaData(Element.java:149)
    3. net.masterthought.cucumber.json.Feature.setMetaData(Feature.java:141)
    4. net.masterthought.cucumber.ReportParser.setMetadata(ReportParser.java:51)
    5. net.masterthought.cucumber.ReportParser.parseJsonResults(ReportParser.java:39)
    6. net.masterthought.cucumber.ReportBuilder.generateReports(ReportBuilder.java:48)
    6 frames
  4. cucumber.runtime.arquillian
    CucumberReporter.reportOnStop
    1. cucumber.runtime.arquillian.reporter.CucumberReporter.doReport(CucumberReporter.java:84)
    2. cucumber.runtime.arquillian.reporter.CucumberReporter.reportOnStop(CucumberReporter.java:46)
    2 frames
  5. 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:497)
    4 frames
  6. Arquillian Core Implementation Base
    EventContextImpl.proceed
    1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
    2. org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
    3. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
    3 frames
  7. Arquillian Container Implementation Base
    ContainerDeploymentContextHandler.createContainerContext
    1. org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)
    1 frame
  8. 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:497)
    4 frames
  9. Arquillian Core Implementation Base
    EventImpl.fire
    1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
    2. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
    3. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
    4. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
    5. org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
    5 frames
  10. Arquillian Container Implementation Base
    ContainerLifecycleController.stopSuiteContainers
    1. org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$4.perform(ContainerLifecycleController.java:107)
    2. org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$4.perform(ContainerLifecycleController.java:100)
    3. org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forEachSuiteContainer(ContainerLifecycleController.java:221)
    4. org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.stopSuiteContainers(ContainerLifecycleController.java:99)
    4 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:497)
    4 frames
  12. Arquillian Core Implementation Base
    EventImpl.fire
    1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
    2. org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
    3. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
    4. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
    5. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
    6. org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
    6 frames
  13. Arquillian Container Test Implementation Base
    ContainerEventController.execute
    1. org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:91)
    1 frame
  14. 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:497)
    4 frames
  15. Arquillian Core Implementation Base
    EventContextImpl.proceed
    1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
    2. org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
    3. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
    3 frames
  16. Arquillian Test Implementation Base
    TestContextHandler.createSuiteContext
    1. org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
    1 frame
  17. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    3 frames
  18. Arquillian Core Implementation Base
    ManagerImpl.fire
    1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
    2. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
    3. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
    4. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
    4 frames
  19. Arquillian Test Implementation Base
    EventTestRunnerAdaptor.afterSuite
    1. org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.afterSuite(EventTestRunnerAdaptor.java:80)
    1 frame
  20. Arquillian TestRunner JUnit Core
    Arquillian$1.testRunFinished
    1. org.jboss.arquillian.junit.Arquillian$1.shutdown(Arquillian.java:145)
    2. org.jboss.arquillian.junit.Arquillian$1.testRunFinished(Arquillian.java:132)
    2 frames
  21. JUnit
    RunNotifier.fireTestRunFinished
    1. org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:95)
    2. org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61)
    3. org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:92)
    3 frames
  22. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:127)
    1 frame
  23. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
    2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
    3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
    3 frames