当前位置:Gxlcms >
数据库问题 >
java.lang.IllegalAccessError: tried to access method org.apache.commons.codec.digest.DigestUtils.getDigest(Ljava/lang/String;)Ljava/security/MessageDigest; from class com.xyb.mis.pay.jingdong.util.Sig
java.lang.IllegalAccessError: tried to access method org.apache.commons.codec.digest.DigestUtils.getDigest(Ljava/lang/String;)Ljava/security/MessageDigest; from class com.xyb.mis.pay.jingdong.util.Sig
时间:2021-07-01 10:21:17
帮助过:14人阅读
servlet [springmvc] in context with path [/xyb-mis-web] threw exception [Handler processing failed; nested exception is java.lang.IllegalAccessError: tried to access method org.apache.commons.codec.digest.DigestUtils.getDigest(Ljava/lang/String;)Ljava/security/MessageDigest; from
class com.xyb.mis.pay.jingdong.util.SignUtils] with root cause
java.lang.IllegalAccessError: tried to access method org.apache.commons.codec.digest.DigestUtils.getDigest(Ljava/lang/String;)Ljava/security/MessageDigest; from
class com.xyb.mis.pay.jingdong.util.SignUtils
at com.xyb.mis.pay.jingdong.util.SignUtils.digestHex(SignUtils.java:100
)
at com.xyb.mis.pay.jingdong.util.SignUtils.sign(SignUtils.java:43
)
at com.xyb.mis.pay.jingdong.enctypt.util.EnctyptUtil.sign(EnctyptUtil.java:71
)
at com.xyb.mis.pay.jingdong.enctypt.util.RequestUtil.enctyptData(RequestUtil.java:101
)
at com.xyb.mis.pay.jingdong.enctypt.util.RequestUtil.tradeRequestSSL(RequestUtil.java:56
)
at com.xyb.trade.utils.WebJingDongPayUtils.cash(WebJingDongPayUtils.java:55
)
at com.xyb.trade.service.impl.JcashServiceImpl.cash(JcashServiceImpl.java:54
)
at com.xyb.trade.service.impl.JcashServiceImpl$$FastClassBySpringCGLIB$$191d86e9.invoke(<generated>
)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204
)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:700
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150
)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96
)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260
)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172
)
at com.xyb.security.filter.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:50
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172
)
at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172
)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172
)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:633
)
at com.xyb.trade.service.impl.JcashServiceImpl$$EnhancerBySpringCGLIB$$a7351b45.cash(<generated>
)
at com.xyb.finance.service.impl.FinanceServiceImpl.auditWithdraw(FinanceServiceImpl.java:1088
)
at com.xyb.finance.service.impl.FinanceServiceImpl$$FastClassBySpringCGLIB$$48f8fa42.invoke(<generated>
)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204
)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:700
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150
)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96
)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260
)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172
)
at com.xyb.security.filter.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:50
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172
)
at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172
)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91
)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172
)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:633
)
at com.xyb.finance.service.impl.FinanceServiceImpl$$EnhancerBySpringCGLIB$$258e247e.auditWithdraw(<generated>
)
at com.xyb.web.finance.MoneyWithdrawController.secondInstance(MoneyWithdrawController.java:365
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25
)
at java.lang.reflect.Method.invoke(Method.java:597
)
at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215
)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132
)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
demo运行不报错,启动web项目后调用方法报错,原因是demo所在项目的jar包版本是codec1.9,web项目包含该项目后,jar包与其他包冲突,变成了1.5,所以报错
java.lang.IllegalAccessError: tried to access method org.apache.commons.codec.digest.DigestUtils.getDigest(Ljava/lang/String;)Ljava/security/MessageDigest; from class com.xyb.mis.pay.jingdong.util.Sig
标签: