-->
Skip to main content

Posts

Showing posts from January, 2021

Solution : java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.(I)V]

Solution : java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.<init>(I)V] This java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.<init>(I)V] happens when we compile our source class using common codec jar version 1.4 or more but at runtime , it founds common-codec jar either equal to 1.3 or lesser than that in which this constructor was not present. Exception Trace will look like this: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.<init>(I)V at org.apache.http.impl.auth.BasicScheme.authenticate(BasicScheme.java:166) [httpclient-4.5.10.jar:4.5.10] at org.apache.http.impl.auth.HttpAuthenticator.doAuth(HttpAuthenticator.java:233) [httpclient-4.5.10.jar:4.5.10] at org.apache.http.impl.auth.HttpAuthenticator.generateAuthResponse(HttpAuthenticator.java:213) [httpclient-4.5.10.jar:4.5.10] at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:262) [httpclient-4.5.10.jar:4.5.10]