You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems like a duplicate of #1239. Are you using protobuf-java >= 3.0.0? The cause of this error is that protobuf-java 3.0.0 introduced a breaking change with respect to previous betas we still depend on protobuf-java 3.0.0-beta3. We are working on a fix (e.g. updating to 3.0.0 in our code and all our dependencies) and hope to release a new version of google-cloud-java soon.
When I tried with protobuf-java 3.0.0-beta-3, I am getting another error:
Caused by: java.lang.IllegalArgumentException: can't parse argument number:
at java.text.MessageFormat.makeFormat(MessageFormat.java:1429) ~[na:1.8.0_25]
at java.text.MessageFormat.applyPattern(MessageFormat.java:479) ~[na:1.8.0_25]
at java.text.MessageFormat.(MessageFormat.java:362) ~[na:1.8.0_25]
at java.text.MessageFormat.format(MessageFormat.java:840) ~[na:1.8.0_25]
at org.slf4j.bridge.SLF4JBridgeHandler.getMessageI18N(SLF4JBridgeHandler.java:264) ~[jul-to-slf4j-1.7.12.jar:1.7.12]
at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:220) ~[jul-to-slf4j-1.7.12.jar:1.7.12]
at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:297) ~[jul-to-slf4j-1.7.12.jar:1.7.12]
at java.util.logging.Logger.log(Logger.java:738) ~[na:1.8.0_25]
at java.util.logging.Logger.doLog(Logger.java:765) ~[na:1.8.0_25]
at java.util.logging.Logger.log(Logger.java:830) ~[na:1.8.0_25]
at com.google.protobuf.CodedOutputStream.getUnsafe(CodedOutputStream.java:2632) ~[protobuf-java-3.0.0-beta-3.jar:na]
at com.google.protobuf.CodedOutputStream.(CodedOutputStream.java:62) ~[protobuf-java-3.0.0-beta-3.jar:na]
... 56 common frames omitted
Caused by: java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[na:1.8.0_25]
at java.lang.Integer.parseInt(Integer.java:592) ~[na:1.8.0_25]
at java.lang.Integer.parseInt(Integer.java:615) ~[na:1.8.0_25]
at java.text.MessageFormat.makeFormat(MessageFormat.java:1427) ~[na:1.8.0_25]
... 67 common frames omitted
I am confused, the errors are unrelated and I don't see why you should include protobuf-java 3.0.0-beta-3 since google-cloud-java already has it as a dependency. Can you share the full list of dependencies that you are using when the error in your first post happens?
Issue #1239 was fixed in google-cloud 0.4.0 and this issue is missing information required to identify its cause. Feel free to reopen with more details in case you are still experiencing it with google-cloud 0.4.0.
Activity
mziccard commentedon Sep 26, 2016
Hi @kpysniak, thanks for the report.
This seems like a duplicate of #1239. Are you using
protobuf-java >= 3.0.0? The cause of this error is thatprotobuf-java 3.0.0introduced a breaking change with respect to previous betas we still depend onprotobuf-java 3.0.0-beta3. We are working on a fix (e.g. updating to 3.0.0 in our code and all our dependencies) and hope to release a new version ofgoogle-cloud-javasoon.kpysniak commentedon Sep 26, 2016
At the moment, I tried including only this:
libraryDependencies += "com.google.cloud" % "google-cloud" % "0.3.0"
but that didn't work. I also tried adding:
libraryDependencies += "com.google.protobuf" % "protobuf-java" % "3.0.0-beta-3"
but it didn't help. Would you suggest any next steps?
kpysniak commentedon Sep 26, 2016
When I tried with protobuf-java 3.0.0-beta-3, I am getting another error:
Could they be related?
mziccard commentedon Sep 26, 2016
I am confused, the errors are unrelated and I don't see why you should include
protobuf-java 3.0.0-beta-3sincegoogle-cloud-javaalready has it as a dependency. Can you share the full list of dependencies that you are using when the error in your first post happens?mziccard commentedon Oct 4, 2016
Issue #1239 was fixed in
google-cloud 0.4.0and this issue is missing information required to identify its cause. Feel free to reopen with more details in case you are still experiencing it withgoogle-cloud 0.4.0.chore: remove enable-samples profile (googleapis#1284) (googleapis#675)
chore: remove enable-samples profile (#1284) (#378)
feat!: Remove v1p4beta1 API protos. v1p4beta1 has been deprecated and…
deps: update dependency com.google.cloud:google-cloud-storage to v2.1…
chore(main): release 2.3.17 (#1285)
chore: remove enable-samples profile (#1284) (#755)
chore(main): release 3.14.5-SNAPSHOT (#1284)
chore: remove enable-samples profile (#1284) (#600)
4 remaining items
chore: remove enable-samples profile (googleapis#1284) (googleapis#755)
chore(main): release 3.14.5-SNAPSHOT (googleapis#1284)
chore: remove enable-samples profile (#1284) (#796)
fix: refactor compute and cloudshell credentials to pass quota projec…
chore: remove enable-samples profile (googleapis#1284) (googleapis#680)
deps: update dependency com.google.cloud:google-cloud-spanner-bom to …
chore(main): release 2.11.4 (googleapis#1285)
chore: remove enable-samples profile (#1284) (#764)
deps: update dependency com.google.cloud:google-cloud-storage to v2.2…
chore: remove enable-samples profile (#1284) (#764)
deps: update dependency com.google.cloud:google-cloud-storage to v2.2…
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
deps: update dependency org.graalvm.buildtools:native-maven-plugin to…
chore(main): release 2.9.0 (googleapis#1275)