Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VerifyError on Datastore Protobuf #320

Closed
nevillelyh opened this issue Nov 1, 2016 · 4 comments
Closed

VerifyError on Datastore Protobuf #320

nevillelyh opened this issue Nov 1, 2016 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@nevillelyh
Copy link
Contributor

nevillelyh commented Nov 1, 2016

Could be JDK 8 related.

java.lang.VerifyError: Bad type on operand stack Exception Details: Location: com/google/datastore/v1/Value$Builder.mergeTimestampValue(Lcom/google/protobuf/Timestamp;)Lcom/google/datastore/v1/Value$Builder; @76: invokevirtual Reason: Type 'com/google/protobuf/Timestamp' (current frame, stack[1]) is not assignable to 'com/google/protobuf/GeneratedMessage' Current Frame: bci: @76 flags: { } locals: { 'com/google/datastore/v1/Value$Builder', 'com/google/protobuf/Timestamp' } stack: { 'com/google/protobuf/SingleFieldBuilder', 'com/google/protobuf/Timestamp' } Bytecode: 0x0000000: 2ab4 0017 c700 3a2a b400 0910 0aa0 0025 0x0000010: 2ab4 0010 b800 58a5 001b 2a2a b400 10c0 0x0000020: 0057 b800 5c2b b600 5db6 005e b500 10a7 0x0000030: 0008 2a2b b500 102a b600 37a7 001e 2ab4 0x0000040: 0009 100a a000 0c2a b400 172b b600 5f57 0x0000050: 2ab4 0017 2bb6 005a 572a 100a b500 092a 0x0000060: b0 Stackmap Table: same_frame(@50) same_frame(@55) same_frame(@62) same_frame(@80) same_frame(@89)
@nevillelyh nevillelyh added the bug Something isn't working label Nov 1, 2016
@ravwojdyla
Copy link
Contributor

googleapis/google-cloud-java#1239 might be related

@nevillelyh
Copy link
Contributor Author

nevillelyh commented Nov 1, 2016

Turns out protobuf-generic pulls in the protobuf-java 3.1.0 dependency. Timestamp now extends GeneratedMessageV3 instead of GeneratedMessage in 3.0.0-beta-1 which causes the issue.

@nevillelyh
Copy link
Contributor Author

b69d634 should restore protobuf-java dependency to 3.0.0-beta-1. Let's see if this fixes the issue.

@nevillelyh
Copy link
Contributor Author

The affected job runs successfully now. The next release 0.2.7 will fix this properly. Closing this.

@nevillelyh nevillelyh self-assigned this Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants