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

Upgrade to protobuf 3.1.0? #1363

Closed
rscorer opened this issue Nov 2, 2016 · 6 comments
Closed

Upgrade to protobuf 3.1.0? #1363

rscorer opened this issue Nov 2, 2016 · 6 comments
Assignees

Comments

@rscorer
Copy link

rscorer commented Nov 2, 2016

Protobuf has been 3.1.0 since September and other projects have adopted it, and it appears google-cloud-java (specifically datastore) is using 3.0.0 which is causing us conflicts.

Any plans to move to 3.1.0?

@mziccard
Copy link
Contributor

mziccard commented Nov 2, 2016

@rscorer Can you be more specific? Which conflicts is 3.1.0 causing?

@rscorer
Copy link
Author

rscorer commented Nov 2, 2016

Sorry! Because we're using 3.1.0 in our project, so the datastore request apparently fails...

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    com/google/datastore/v1/Query$Builder.setLimit(Lcom/google/protobuf/Int32Value;)Lcom/google/datastore/v1/Query$Builder; @36: invokevirtual
  Reason:
    Type 'com/google/protobuf/Int32Value' (current frame, stack[1]) is not assignable to 'com/google/protobuf/GeneratedMessage'
  Current Frame:
    bci: @36
    flags: { }
    locals: { 'com/google/datastore/v1/Query$Builder', 'com/google/protobuf/Int32Value' }
    stack: { 'com/google/protobuf/SingleFieldBuilder', 'com/google/protobuf/Int32Value' }
  Bytecode:
    0x0000000: 2ab4 0023 c700 1b2b c700 0bbb 0065 59b7
    0x0000010: 0066 bf2a 2bb5 0012 2ab6 003f a700 0c2a
    0x0000020: b400 232b b600 8557 2ab0               
  Stackmap Table:
    same_frame(@19)
    same_frame(@31)
    same_frame(@40)

We have to use 3.1.0 to comply with our colleague's go code.

Does that make better sense?

@mziccard
Copy link
Contributor

mziccard commented Nov 2, 2016

Mmmm, this is strange. Which version of google-cloud-java are you using?

@rscorer
Copy link
Author

rscorer commented Nov 2, 2016

🙈 transitively we're using 0.1.7 - of com.google.gcloud, we are updating to a more recent version -- will let you know the result!

@rscorer
Copy link
Author

rscorer commented Nov 2, 2016

Problems gone now we're up to date, using com.google.cloud instead of com.google.gcloud

Thanks

@rscorer rscorer closed this as completed Nov 2, 2016
@mziccard
Copy link
Contributor

mziccard commented Nov 2, 2016

Good news :)

github-actions bot pushed a commit to suztomo/google-cloud-java that referenced this issue Jun 29, 2022
)

* chore: fix license header in build.bat

* chore: add disctribution field for setup-java action
Source-Link: googleapis/synthtool@4fea5f4
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e
github-actions bot pushed a commit that referenced this issue Jul 1, 2022
* chore: fix license header in build.bat

* chore: add disctribution field for setup-java action
Source-Link: googleapis/synthtool@4fea5f4
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants