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)

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via GitHub by masoudsc
    ,
  • 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.

    No Bugmate found.