java.lang.NoClassDefFoundError: Could not initialize class org.springframework.boot.test.mock.mockito.MockReset

GitHub | thetric | 4 months ago
  1. 0

    Mockito 2.0.94-beta breaks org.springframework.boot.test.mock.mockito.MockReset

    GitHub | 4 months ago | thetric
    java.lang.NoClassDefFoundError: Could not initialize class org.springframework.boot.test.mock.mockito.MockReset
  2. 0

    Mockito not optional for spring-boot-test

    GitHub | 2 months ago | jvalkeal
    java.lang.NoClassDefFoundError: Could not initialize class org.springframework.boot.test.mock.mockito.MockReset
  3. 0

    NoClassDefFoundError while creating mock object in java

    Stack Overflow | 7 months ago | Manas Kantha
    java.lang.NoClassDefFoundError: Could not initialize class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    External Properties file and classpath

    Oracle Community | 6 years ago | 393585
    java.lang.NoClassDefFoundError: Could not initialize class
  6. 0

    maven repo and 5.0-X version

    Google Groups | 2 years ago | Zsolt Kúti
    java.lang.NoClassDefFoundError: Could not initialize class

    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.NoClassDefFoundError

      Could not initialize class org.springframework.boot.test.mock.mockito.MockReset

      at org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener.afterTestMethod()
    2. org.springframework.boot
      ResetMocksTestExecutionListener.afterTestMethod
      1. org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener.afterTestMethod(ResetMocksTestExecutionListener.java:49)[spring-boot-test-1.4.0.RELEASE.jar:1.4.0.RELEASE]
      1 frame
    3. Spring TestContext
      SpringRepeat.evaluate
      1. org.springframework.test.context.TestContextManager.afterTestMethod(TestContextManager.java:319)[spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:94)[spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      3. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)[spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      3 frames
    4. JUnit
      ParentRunner.runLeaf
      1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)[junit-4.12.jar:4.12]
      1 frame
    5. Spring TestContext
      SpringJUnit4ClassRunner.runChild
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:252)[spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)[spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2 frames
    6. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)[junit-4.12.jar:4.12]
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)[junit-4.12.jar:4.12]
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)[junit-4.12.jar:4.12]
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)[junit-4.12.jar:4.12]
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)[junit-4.12.jar:4.12]
      5 frames
    7. Spring TestContext
      RunAfterTestClassCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)[spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      2 frames
    8. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)[junit-4.12.jar:4.12]
      1 frame
    9. Spring TestContext
      SpringJUnit4ClassRunner.run
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)[spring-test-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      1 frame
    10. org.gradle.api
      SuiteTestClassProcessor.processTestClass
      1. org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)[gradle-testing-jvm-2.14.1.jar:2.14.1]
      2. org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)[gradle-testing-jvm-2.14.1.jar:2.14.1]
      3. org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)[gradle-testing-jvm-2.14.1.jar:2.14.1]
      4. org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)[gradle-testing-base-2.14.1.jar:2.14.1]
      4 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_102]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_102]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_102]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_102]
      4 frames
    12. org.gradle.internal
      ProxyDispatchAdapter$DispatchingInvocationHandler.invoke
      1. org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)[gradle-messaging-2.14.1.jar:2.14.1]
      2. org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)[gradle-messaging-2.14.1.jar:2.14.1]
      3. org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)[gradle-messaging-2.14.1.jar:2.14.1]
      4. org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)[gradle-messaging-2.14.1.jar:2.14.1]
      4 frames
    13. com.sun.proxy
      $Proxy2.processTestClass
      1. com.sun.proxy.$Proxy2.processTestClass(Unknown Source)[na:na]
      1 frame
    14. org.gradle.api
      TestWorker.processTestClass
      1. org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)[gradle-testing-base-2.14.1.jar:2.14.1]
      1 frame
    15. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_102]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_102]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_102]
      4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_102]
      4 frames
    16. org.gradle.internal
      MessageHub$Handler.run
      1. org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)[gradle-messaging-2.14.1.jar:2.14.1]
      2. org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)[gradle-messaging-2.14.1.jar:2.14.1]
      3. org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377)[gradle-messaging-2.14.1.jar:2.14.1]
      3 frames
    17. Gradle Core
      StoppableExecutorImpl$1.run
      1. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)[gradle-base-services-2.14.1.jar:2.14.1]
      2. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)[gradle-base-services-2.14.1.jar:2.14.1]
      2 frames
    18. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_102]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_102]
      3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_102]
      3 frames