java.lang.VerifyError: Bad type on operand stack Exception Details: Location: com/google/datastore/v1/Query$Builder.setLimit(Lcom/google/protobuf/Int32Value$Builder;)Lcom/google/datastore/v1/Query$Builder; @30: invokevirtual Reason: Type 'com/google/protobuf/Int32Value' (current frame, stack[1]) is not assignable to 'com/google/protobuf/GeneratedMessage' Current Frame: bci: @30 flags: { } locals: { 'com/google/datastore/v1/Query$Builder', 'com/google/protobuf/Int32Value$Builder' } stack: { 'com/google/protobuf/SingleFieldBuilder', 'com/google/protobuf/Int32Value' } Bytecode: 0x0000000: 2ab4 0023 c700 122a 2bb6 009e b500 122a 0x0000010: b600 3fa7 000f 2ab4 0023 2bb6 009e b600 0x0000020: 8557 2ab0 Stackmap Table: same_frame(@22) same_frame(@34)


Solutions on the web1

Solution icon of github
via GitHub by masoudsc
, 8 months ago
: { 'com/google/protobuf/SingleFieldBuilder', 'com/google/protobuf/Int32Value' } Bytecode: 0x0000000: 2ab4 0023 c700 122a 2bb6 009e b500 122a 0x0000010: b600 3fa7 000f 2ab4 0023 2bb6 009e b600 0x0000020: 8557 2ab0 Stackmap Table: same_frame(@22) same_frame(@34)

Stack trace

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    com/google/datastore/v1/Query$Builder.setLimit(Lcom/google/protobuf/Int32Value$Builder;)Lcom/google/datastore/v1/Query$Builder; @30: invokevirtual
  Reason:
    Type 'com/google/protobuf/Int32Value' (current frame, stack[1]) is not assignable to 'com/google/protobuf/GeneratedMessage'
  Current Frame:
    bci: @30
    flags: { }
    locals: { 'com/google/datastore/v1/Query$Builder', 'com/google/protobuf/Int32Value$Builder' }
    stack: { 'com/google/protobuf/SingleFieldBuilder', 'com/google/protobuf/Int32Value' }
  Bytecode:
    0x0000000: 2ab4 0023 c700 122a 2bb6 009e b500 122a
    0x0000010: b600 3fa7 000f 2ab4 0023 2bb6 009e b600
    0x0000020: 8557 2ab0
  Stackmap Table:
    same_frame(@22)
    same_frame(@34)
	at com.google.datastore.v1.Query.toBuilder(Query.java:667)
	at com.google.datastore.v1.Query.newBuilder(Query.java:661)
	at com.snapchat.datastore.entity.DataStoreEntity$class.queryAll(DataStoreEntity.scala:20)
	at com.snapchat.datastore.entity.FriendLink$.queryAll(FriendLink.scala:7)
	at com.snapchat.dataflow.friendgraph.DumpFriendLinksFromDataStore.build(DumpFriendLinksFromDataStore.scala:50)
	at com.snapchat.dataflow.friendgraph.DumpFriendLinksFromDataStore$.main(DumpFriendLinksFromDataStore.scala:90)
	at com.snapchat.dataflow.friendgraph.DumpFriendLinksFromDataStore.main(DumpFriendLinksFromDataStore.scala)

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.