java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil

GitHub | rovkinmax | 2 months ago
  1. 0

    GitHub comment 638#252839912

    GitHub | 2 months ago | rovkinmax
    java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil
  2. 0

    GitHub comment 638#247982345

    GitHub | 3 months ago | dolendupes
    java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil
  3. 0

    java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil

    Stack Overflow | 9 months ago | chen
    java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil

    Stack Overflow | 9 months ago | chen
    java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil
  6. 0

    java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil

    GitHub | 9 months ago | chenyq44
    java.lang.NoClassDefFoundError: Could not initialize class org.mockito.internal.util.MockUtil

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

      Could not initialize class org.mockito.internal.util.MockUtil

      at org.mockito.internal.util.MockCreationValidator.validateType()
    2. Mockito
      MockitoAnnotations.initMocks
      1. org.mockito.internal.util.MockCreationValidator.validateType(MockCreationValidator.java:22)
      2. org.mockito.internal.creation.MockSettingsImpl.validatedSettings(MockSettingsImpl.java:168)
      3. org.mockito.internal.creation.MockSettingsImpl.confirm(MockSettingsImpl.java:162)
      4. org.mockito.internal.MockitoCore.mock(MockitoCore.java:62)
      5. org.mockito.Mockito.mock(Mockito.java:1620)
      6. org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:33)
      7. org.mockito.internal.configuration.MockAnnotationProcessor.process(MockAnnotationProcessor.java:16)
      8. org.mockito.internal.configuration.DefaultAnnotationEngine.createMockFor(DefaultAnnotationEngine.java:39)
      9. org.mockito.internal.configuration.DefaultAnnotationEngine.process(DefaultAnnotationEngine.java:63)
      10. org.mockito.internal.configuration.InjectingAnnotationEngine.processIndependentAnnotations(InjectingAnnotationEngine.java:59)
      11. org.mockito.internal.configuration.InjectingAnnotationEngine.process(InjectingAnnotationEngine.java:43)
      12. org.mockito.MockitoAnnotations.initMocks(MockitoAnnotations.java:67)
      12 frames
    3. ru.myproject.presenter
      LoginPresenterTest.setUp
      1. ru.myproject.presenter.LoginPresenterTest.setUp(LoginPresenterTest.kt:35)
      1 frame
    4. 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
    5. JUnit
      RunBefores.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      4 frames
    6. ru.myproject.rule
      RxSchedulersOverrideRule$apply$1.evaluate
      1. ru.myproject.rule.RxSchedulersOverrideRule$apply$1.evaluate(RxSchedulersOverrideRule.kt:42)
      1 frame
    7. JUnit
      RunRules.evaluate
      1. org.junit.rules.RunRules.evaluate(RunRules.java:20)
      1 frame
    8. Roboelectric
      RobolectricTestRunner.runChild
      1. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:250)
      2. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:176)
      3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:49)
      3 frames
    9. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      5 frames
    10. Roboelectric
      RobolectricTestRunner$1.evaluate
      1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:142)
      1 frame
    11. JUnit
      JUnitCore.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      2. org.junit.runners.Suite.runChild(Suite.java:128)
      3. org.junit.runners.Suite.runChild(Suite.java:27)
      4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      9. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      10. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      10 frames
    12. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
      2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
      2 frames
    13. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      2 frames
    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:498)
      4 frames
    15. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      1 frame