java.lang.NoSuchMethodError: org.mockito.internal.invocation.InvocationImpl.<init>(Ljava/lang/Object;Lorg/mockito/internal/invocation/MockitoMethod;[Ljava/lang/Object;ILorg/mockito/internal/invocation/realmethod/RealMethod;)V

GitHub | TWiStErRob | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Crash with latest mockito2

    GitHub | 9 months ago | TWiStErRob
    java.lang.NoSuchMethodError: org.mockito.internal.invocation.InvocationImpl.<init>(Ljava/lang/Object;Lorg/mockito/internal/invocation/MockitoMethod;[Ljava/lang/Object;ILorg/mockito/internal/invocation/realmethod/RealMethod;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.mockito.internal.invocation.InvocationImpl.<init>(Ljava/lang/Object;Lorg/mockito/internal/invocation/MockitoMethod;[Ljava/lang/Object;ILorg/mockito/internal/invocation/realmethod/RealMethod;)V

      at org.powermock.api.mockito.repackaged.MethodInterceptorFilter.intercept()
    2. org.powermock.api
      MethodInterceptorFilter.intercept
      1. org.powermock.api.mockito.repackaged.MethodInterceptorFilter.intercept(MethodInterceptorFilter.java:58)
      1 frame
    3. net.twisterrob
      Blah$$EnhancerByMockitoWithCGLIB$$38de944b.getJubileeBackground
      1. net.twisterrob.Blah$$EnhancerByMockitoWithCGLIB$$38de944b.getJubileeBackground(<generated>)
      1 frame