java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/kohsuke/github/GHRepository$MockitoMock$667330966.getId()Ljava/lang/String; @4: checkcast Reason: Type integer (current frame, stack[0]) is not assignable to 'java/lang/Object' Current Frame: bci: @4 flags: { } locals: { 'org/kohsuke/github/GHRepository$MockitoMock$667330966' } stack: { integer } Bytecode: 0x0000000: 2ab6 003d c000 2eb0

Google Groups | Adam Siemion | 2 months ago
  1. 0

    Creating a mock of a public non-final class (org.kohsuke.github.GHIssue) fails with "Cannot cast to primitive type: void"

    Google Groups | 2 months ago | Adam Siemion
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/kohsuke/github/GHRepository$MockitoMock$667330966.getId()Ljava/lang/String; @4: checkcast Reason: Type integer (current frame, stack[0]) is not assignable to 'java/lang/Object' Current Frame: bci: @4 flags: { } locals: { 'org/kohsuke/github/GHRepository$MockitoMock$667330966' } stack: { integer } Bytecode: 0x0000000: 2ab6 003d c000 2eb0
  2. 0

    Mockito 2 cannot mock kohsuke/github-api classes

    GitHub | 2 months ago | bric3
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: org/kohsuke/github/GHRepository$MockitoMock$667330966.getId()Ljava/lang/String; @4: checkcast Reason: Type integer (current frame, stack[0]) is not assignable to 'java/lang/Object' Current Frame: bci: @4 flags: { } locals: { 'org/kohsuke/github/GHRepository$MockitoMock$667330966' } stack: { integer } Bytecode: 0x0000000: 2ab6 003d c000 2eb0
  3. 0

    java.lang.VerifyError: com/lib/androidtv/support/tvview/TvView

    Stack Overflow | 2 years ago | Muhammad Adil
    java.lang.VerifyError: com/lib/androidtv/support/tvview/TvView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Instrumentation run: java.lang.Error with Class init failed in Constructor error

    Stack Overflow | 3 years ago | user2722766
    java.lang.VerifyError: com/amazon/webviewapp/test/WebViewActivityTest
  6. 0

    QuiltView failed to instantiate

    Stack Overflow | 3 years ago | user3679176
    java.lang.VerifyError: com/jake/quiltview_lib/QuiltView

    5 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.VerifyError

      Bad type on operand stack Exception Details: Location: org/kohsuke/github/GHRepository$MockitoMock$667330966.getId()Ljava/lang/String; @4: checkcast Reason: Type integer (current frame, stack[0]) is not assignable to 'java/lang/Object' Current Frame: bci: @4 flags: { } locals: { 'org/kohsuke/github/GHRepository$MockitoMock$667330966' } stack: { integer } Bytecode: 0x0000000: 2ab6 003d c000 2eb0

      at sun.reflect.GeneratedSerializationConstructorAccessor1.newInstance()
    2. Java RT
      Constructor.newInstance
      1. sun.reflect.GeneratedSerializationConstructorAccessor1.newInstance(Unknown Source)
      2. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      2 frames