Skip to content

java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64 #32

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

Open
meliezer opened this issue Nov 29, 2019 · 2 comments
Open

Comments

@meliezer
Copy link

Describe the bug
Exception right after calling curl.

Stacktrace
Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.(I)V
at org.apache.http.impl.auth.BasicScheme.authenticate (BasicScheme.java:166)
at org.apache.http.impl.auth.HttpAuthenticator.doAuth (HttpAuthenticator.java:233)
at org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse (HttpAuthenticator.java:198)
at org.apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:262)
at org.apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:89)
at org.apache.http.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:108)
at org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:56)
at org.toilelibre.libe.curl.Curl.curl (Curl.java:72)
at org.toilelibre.libe.curl.Curl.curl (Curl.java:61)

@libetl
Copy link
Owner

libetl commented Nov 29, 2019

Hello and thank you for this feedback.

I will find some time for investigation.

In the meantime can you add the commons-codec dependency to your project ?

https://commons.apache.org/proper/commons-codec

Thanks and good luck

I will reply in this thread.

@meliezer
Copy link
Author

Thank you! I forgot to write that I've already added it. I also added Apache libs : HttpClient and commons-cli.

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