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


Solutions on the web

Solution icon of googlegroups
via Google Groups by Raveesh Sharma, 9 months ago
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

Solution icon of stackoverflow
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

Stack trace

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(ByteString.scala:106)
	at akka.remote.transport.AkkaPduProtobufCodec$.constructControlMessagePdu(AkkaPduCodec.scala:235)
	at akka.remote.transport.AkkaPduProtobufCodec$.<init>(AkkaPduCodec.scala:153)
	at akka.remote.transport.AkkaPduProtobufCodec$.<clinit>(AkkaPduCodec.scala:1)
	at akka.remote.EndpointManager$$anonfun$9.apply(Remoting.scala:775)
	at akka.remote.EndpointManager$$anonfun$9.apply(Remoting.scala:745)
	at scala.collection.TraversableLike$WithFilter$$anonfun$map$2.apply(TraversableLike.scala:683)
	at scala.collection.Iterator$class.foreach(Iterator.scala:893)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
	at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
	at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
	at scala.collection.TraversableLike$WithFilter.map(TraversableLike.scala:682)
	at akka.remote.EndpointManager.akka$remote$EndpointManager$$listens(Remoting.scala:745)
	at akka.remote.EndpointManager$$anonfun$receive$2.applyOrElse(Remoting.scala:504)[ERROR]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.