java.lang.ExceptionInInitializerError

Stack Overflow | chen | 1 year 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

    GitHub comment 434#124685595

    GitHub | 2 years ago | johanhaleby
    java.lang.ExceptionInInitializerError
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 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.NullPointerException

      No message provided

      at org.mockito.internal.configuration.plugins.Plugins.getStackTraceCleanerProvider()
    2. Mockito
      InjectingAnnotationEngine.injectMocks
      1. org.mockito.internal.configuration.plugins.Plugins.getStackTraceCleanerProvider(Plugins.java:17)
      2. org.mockito.internal.exceptions.stacktrace.StackTraceFilter.<init>(StackTraceFilter.java:21)
      3. org.mockito.internal.exceptions.stacktrace.ConditionalStackTraceFilter.<init>(ConditionalStackTraceFilter.java:17)
      4. org.mockito.exceptions.base.MockitoException.filterStackTrace(MockitoException.java:41)
      5. org.mockito.exceptions.base.MockitoException.<init>(MockitoException.java:30)
      6. org.mockito.exceptions.misusing.MockitoConfigurationException.<init>(MockitoConfigurationException.java:18)
      7. org.mockito.internal.configuration.plugins.PluginLoader.loadImpl(PluginLoader.java:66)
      8. org.mockito.internal.configuration.plugins.PluginLoader.loadPlugin(PluginLoader.java:24)
      9. org.mockito.internal.configuration.plugins.PluginRegistry.<init>(PluginRegistry.java:12)
      10. org.mockito.internal.configuration.plugins.Plugins.<init>(Plugins.java:11)
      11. org.mockito.internal.util.MockUtil.<init>(MockUtil.java:24)
      12. org.mockito.internal.configuration.injection.scanner.MockScanner.<init>(MockScanner.java:22)
      13. org.mockito.internal.configuration.InjectingAnnotationEngine.injectMocks(InjectingAnnotationEngine.java:96)
      13 frames
    3. powermock-api-mockito
      AnnotationEnabler.beforeTestMethod
      1. org.powermock.api.mockito.internal.configuration.PowerMockitoInjectingAnnotationEngine.process(PowerMockitoInjectingAnnotationEngine.java:35)
      2. org.powermock.api.extension.listener.AnnotationEnabler.injectSpiesAndInjectToSetters(AnnotationEnabler.java:60)
      3. org.powermock.api.extension.listener.AnnotationEnabler.beforeTestMethod(AnnotationEnabler.java:55)
      3 frames
    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. powermock-reflect
      Whitebox.invokeMethod
      1. org.powermock.reflect.internal.WhiteboxImpl.performMethodInvocation(WhiteboxImpl.java:1873)
      2. org.powermock.reflect.internal.WhiteboxImpl.invokeMethod(WhiteboxImpl.java:663)
      3. org.powermock.reflect.Whitebox.invokeMethod(Whitebox.java:415)
      3 frames
    6. Powermock
      PowerMockTestNGMethodHandler.invoke
      1. org.powermock.modules.testng.internal.PowerMockTestNGMethodHandler.injectMocksUsingAnnotationEnabler(PowerMockTestNGMethodHandler.java:75)
      2. org.powermock.modules.testng.internal.PowerMockTestNGMethodHandler.invoke(PowerMockTestNGMethodHandler.java:47)
      2 frames
    7. test.java.com
      mockTest_$$jvstb5f_0.springTestContextBeforeTestClass
      1. test.java.com.sosoPay.servicetest.mockTest_$$jvstb5f_0.springTestContextBeforeTestClass(mockTest$$_jvstb5f_0.java)
      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:498)
      4 frames
    9. TestNG
      RemoteTestNG.main
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
      2. org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
      3. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
      4. org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
      5. org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
      7. org.testng.TestRunner.privateRun(TestRunner.java:767)
      8. org.testng.TestRunner.run(TestRunner.java:617)
      9. org.testng.SuiteRunner.runTest(SuiteRunner.java:335)
      10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330)
      11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      12. org.testng.SuiteRunner.run(SuiteRunner.java:240)
      13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
      16. org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
      17. org.testng.TestNG.run(TestNG.java:1057)
      18. org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
      19. org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
      20. org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)
      20 frames