java.lang.VerifyError: Bad type on operand stack Exception Details: Location: akka/util/ByteString.apply(I)Ljava/lang/Object; @5: areturn Reason: Type integer (current frame, stack[0]) is not assignable to reference type Current Frame: bci: @5 flags: { } locals: { 'akka/util/ByteString', integer } stack: { integer } Bytecode: 0x0000000: 2a1b b603 99b0

  1. 0

    kamon akka 2.4 throws a java.lang.VerifyError

    Stack Overflow | 5 months ago | Raveesh Sharma
    java.lang.VerifyError: Bad type on operand stack Exception Details: Location: akka/util/ByteString.apply(I)Ljava/lang/Object; @5: areturn Reason: Type integer (current frame, stack[0]) is not assignable to reference type Current Frame: bci: @5 flags: { } locals: { 'akka/util/ByteString', integer } stack: { integer } Bytecode: 0x0000000: 2a1b b603 99b0
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

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

    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: akka/util/ByteString.apply(I)Ljava/lang/Object; @5: areturn Reason: Type integer (current frame, stack[0]) is not assignable to reference type Current Frame: bci: @5 flags: { } locals: { 'akka/util/ByteString', integer } stack: { integer } Bytecode: 0x0000000: 2a1b b603 99b0

      at akka.util.ByteString$ByteString1C$.apply()
    2. Akka Actor
      ByteString$ByteString1C$.apply
      1. akka.util.ByteString$ByteString1C$.apply(ByteString.scala:106)
      1 frame
    3. Akka Remote
      EndpointManager$$anonfun$9.apply
      1. akka.remote.transport.AkkaPduProtobufCodec$.constructControlMessagePdu(AkkaPduCodec.scala:235)
      2. akka.remote.transport.AkkaPduProtobufCodec$.<init>(AkkaPduCodec.scala:153)
      3. akka.remote.transport.AkkaPduProtobufCodec$.<clinit>(AkkaPduCodec.scala:1)
      4. akka.remote.EndpointManager$$anonfun$9.apply(Remoting.scala:775)
      5. akka.remote.EndpointManager$$anonfun$9.apply(Remoting.scala:745)
      5 frames
    4. Scala
      TraversableLike$WithFilter.map
      1. scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:683)
      2. scala.collection.Iterator$class.foreach(Iterator.scala:893)
      3. scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
      4. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      5. scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      6. scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:682)
      6 frames
    5. Akka Remote
      EndpointManager.akka$remote$EndpointManager$$listens
      1. akka.remote.EndpointManager.akka$remote$EndpointManager$$listens(Remoting.scala:745)
      1 frame