Came across this issue today
java.lang.NoSuchMethodError org.apache.commons.codec.binary.Base64.encodebase64
Eventually realized this was because the class Base64 was picked from wrong jar file... the ques was which one , I mean as i got this in web application ... so the hierarchy is not easy to trace.
I tried adding the following line before the exception
logger.debug(Base64.class.getProtectionDomain().getCodeSource().getLocation());
And then eventually modified the classpath settings to modify the issue.
java.lang.NoSuchMethodError org.apache.commons.codec.binary.Base64.encodebase64
Eventually realized this was because the class Base64 was picked from wrong jar file... the ques was which one , I mean as i got this in web application ... so the hierarchy is not easy to trace.
I tried adding the following line before the exception
logger.debug(Base64.class.getProtectionDomain().getCodeSource().getLocation());
And then eventually modified the classpath settings to modify the issue.
No comments:
Post a Comment