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

encodeBase64String - NoSuchMethodError #30

Closed
wonderfly opened this issue Jan 9, 2015 · 2 comments
Closed

encodeBase64String - NoSuchMethodError #30

wonderfly opened this issue Jan 9, 2015 · 2 comments
Assignees
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@wonderfly
Copy link
Contributor

From artgr...@googlemail.com on March 25, 2012 04:39:08

Version of google-oauth-java-client (e.g. 1.5.0-beta)? 1.7 Java environment (e.g. Java 6, Android 2.3, App Engine)? Java 6, AppEngine,

Exception when trying to get a new AccessToken with a RefreshToken:

RefreshTokenRequest req = new RefreshTokenRequest(...);
TokenResponse response = req.execute(); throws the following Exception:
java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.encodeBase64String([B)Ljava/lang/String;
at com.google.api.client.http.HttpHeaders.setBasicAuthentication(HttpHeaders.java:590) How would you expect it to be fixed? Refactor the HttpHeaders class, include commons-codec.1.6.jar(this library has the encodeBase64String Method).
I have included this jar to my project, but with no effect!

Please fix this, its a major blocker for my project.

Cheers,
Arthur

Original issue: http://code.google.com/p/google-oauth-java-client/issues/detail?id=30

@wonderfly wonderfly added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. imported priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Jan 9, 2015
@wonderfly wonderfly self-assigned this Jan 9, 2015
@wonderfly
Copy link
Contributor Author

From yan...@google.com on March 27, 2012 07:20:56

What version of the App Engine SDK are you using? Is it 1.4.2 or earlier?

Labels: Milestone-Version1.8.0

@wonderfly
Copy link
Contributor Author

From yan...@google.com on March 29, 2012 05:20:39

Looks like gwt-dev.jar has a copy of org.apache.commons.codec.binary.Base64. So it might be a case of a user that is using GWT in their App Engine app. In any case, this is fixed now.

Status: Fixed
Owner: yan...@google.com
Cc: rmis...@google.com

@yoshi-automation yoshi-automation added the 🚨 This issue needs some love. label Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants