杂记 - java.lang.NoSuchMethodError:commons/codec/binary/Base64.encodeBase64URLSafeString

[11/2/20 0:20:10:672 CST] 000000af ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service Uncaught service() exception thrown by servlet PLLoginUser: java.lang.NoSuchMethodError: org/apache/commons/codec/binary/Base64.encodeBase64URLSafeString([B)Ljava/lang/String;
    at com.auth0.jwt.JWTCreator.sign(JWTCreator.java:343)
    at com.auth0.jwt.JWTCreator.access$100(JWTCreator.java:24)
    at com.auth0.jwt.JWTCreator$Builder.sign(JWTCreator.java:324)
已解决:java -verbose:class Base64 ,查看已加载的类,由此可知已经加载的jar包版本旧,更新此包即可

 

posted @ 2020-11-02 00:49  雾中的-松  阅读(929)  评论(0编辑  收藏  举报