请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

正在回答 回答被采纳积分+3

2回答

神思者 2024-02-27 12:52:42

重新下载支付的数字证书,证书已经过期了。然后核对微信支付信息,应该配置的不对,你的密钥可能是旧的

0 回复 有任何疑惑可以回复我~
提问者 wfdayduagj 2024-02-27 11:16:14

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'signatureProvider' defined in class path resource [cn/felord/payment/wechat/WechatPayConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.felord.payment.wechat.v3.SignatureProvider]: Factory method 'signatureProvider' threw exception; nested exception is cn.felord.payment.PayException: javax.crypto.AEADBadTagException: mac check in GCM failed

at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)

at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)

at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)

at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)

at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)

... 79 common frames omitted

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.felord.payment.wechat.v3.SignatureProvider]: Factory method 'signatureProvider' threw exception; nested exception is cn.felord.payment.PayException: javax.crypto.AEADBadTagException: mac check in GCM failed

at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)

at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)

... 93 common frames omitted

Caused by: cn.felord.payment.PayException: javax.crypto.AEADBadTagException: mac check in GCM failed

at cn.felord.payment.wechat.v3.SignatureProvider.decryptResponseBody(SignatureProvider.java:288)

at cn.felord.payment.wechat.v3.SignatureProvider.lambda$refreshCertificate$1(SignatureProvider.java:237)

at java.base/java.lang.Iterable.forEach(Iterable.java:75)

at cn.felord.payment.wechat.v3.SignatureProvider.refreshCertificate(SignatureProvider.java:232)

at java.base/java.lang.Iterable.forEach(Iterable.java:75)

at cn.felord.payment.wechat.v3.SignatureProvider.<init>(SignatureProvider.java:121)

at cn.felord.payment.wechat.WechatPayConfiguration.signatureProvider(WechatPayConfiguration.java:79)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:564)

at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)

... 94 common frames omitted

Caused by: javax.crypto.AEADBadTagException: mac check in GCM failed

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64)

at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)

at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)

at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$AEADGenericBlockCipher.doFinal(Unknown Source)

at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source)

at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2205)

at cn.felord.payment.wechat.v3.SignatureProvider.decryptResponseBody(SignatureProvider.java:286)

... 105 common frames omitted


进程已结束,退出代码1


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信