Issue 922 in google-api-java-client: java.lang.NoSuchMethodError: com.google.api.client.googleapis.auth.oauth2.GoogleCredential$Builder.setServiceAccountScopes(Ljava/lang/Iterable;

263 views
Skip to first unread message

google-api-...@googlecode.com

unread,
Dec 15, 2014, 2:58:09 AM12/15/14
to google-api-jav...@googlegroups.com
Status: New
Owner: wonder...@google.com
Labels: Type-Defect Priority-Medium

New issue 922 by prash...@umstechlab.com: java.lang.NoSuchMethodError:
com.google.api.client.googleapis.auth.oauth2.GoogleCredential$Builder.setServiceAccountScopes(Ljava/lang/Iterable;
https://code.google.com/p/google-api-java-client/issues/detail?id=922

this works fine on localhost but after deployed to app engine its gives
error:
java.lang.NoSuchMethodError:
com.google.api.client.googleapis.auth.oauth2.GoogleCredential$Builder.setServiceAccountScopes(Ljava/lang/Iterable;



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

google-api-...@googlecode.com

unread,
Dec 29, 2014, 10:21:13 AM12/29/14
to google-api-jav...@googlegroups.com

Comment #1 on issue 922 by wonder...@google.com:
java.lang.NoSuchMethodError:
com.google.api.client.googleapis.auth.oauth2.GoogleCredential$Builder.setServiceAccountScopes(Ljava/lang/Iterable;
https://code.google.com/p/google-api-java-client/issues/detail?id=922

Can you give us more information of how you were using this API, e.g., a
code snippet?

In the meanwhile, you can take a look at the app engine sample for insights.

https://github.com/GoogleCloudPlatform/cloud-storage-docs-xml-api-examples/blob/master/storage-serviceaccount-cmdline-sample/src/main/java/StorageServiceAccountSample.java

google-api-...@googlecode.com

unread,
Jan 15, 2015, 9:46:07 AM1/15/15
to google-api-jav...@googlegroups.com

Comment #2 on issue 922 by vortexm...@gmail.com:
java.lang.NoSuchMethodError:
com.google.api.client.googleapis.auth.oauth2.GoogleCredential$Builder.setServiceAccountScopes(Ljava/lang/Iterable;
https://code.google.com/p/google-api-java-client/issues/detail?id=922

I had a similar issue while setting up a project for google maps engine
API. The solution was to ensure that there were no conflicting libraries or
versions in the dependencies (i.e. in my case the google-oauth-client
version was different between the two deployments - bringing them inline
solved the problem). Hope it helps!
Reply all
Reply to author
Forward
0 new messages