后台启动报错,该配置的都配置了。
来源:1-3 安装虚拟机和Linux系统

moss17
2023-11-15
2023/11/15 14:32:51 INFO Starting PatientWxApiApplication using Java 19.0.2 on localhost with PID 6187 (/Users/moss/Downloads/yl/patient-wx-api/target/classes started by moss in /Users/moss/Downloads/yl/patient-wx-api) 2023/11/15 14:32:51 INFO No active profile set, falling back to 1 default profile: "default" 2023/11/15 14:32:51 INFO Multiple Spring Data modules found, entering strict repository configuration mode 2023/11/15 14:32:51 INFO Bootstrapping Spring Data Redis repositories in DEFAULT mode. 2023/11/15 14:32:51 INFO Finished Spring Data repository scanning in 2 ms. Found 0 Redis repository interfaces. 2023/11/15 14:32:52 INFO Logging initialized @866ms to org.eclipse.jetty.util.log.Slf4jLog 2023/11/15 14:32:52 INFO Server initialized with port: 8091 2023/11/15 14:32:52 INFO jetty-9.4.48.v20220622; built: 2022-06-21T20:42:25.880Z; git: 6b67c5719d1f4371b33655ff2d047d24e171e49a; jvm 19.0.2+7-44 2023/11/15 14:32:52 INFO Initializing Spring embedded WebApplicationContext 2023/11/15 14:32:52 INFO Root WebApplicationContext: initialization completed in 493 ms 2023/11/15 14:32:52 INFO DefaultSessionIdManager workerName=node0 2023/11/15 14:32:52 INFO No SessionScavenger set, using defaults 2023/11/15 14:32:52 INFO node0 Scavenging every 660000ms 2023/11/15 14:32:52 INFO Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@511f5b1d{application,/patient-wx-api,[file:///private/var/folders/c6/28zczkdn4g71sw3n1yq9vrh80000gn/T/jetty-docbase.8091.799991779751515786/],AVAILABLE} 2023/11/15 14:32:52 INFO Started @963ms 2023/11/15 14:32:52 WARN Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wechatMetaContainer' 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.WechatMetaContainer]: Factory method 'wechatMetaContainer' threw exception; nested exception is cn.felord.payment.PayException: Cannot load keys from store: class path resource [apiclient_cert.p12] 2023/11/15 14:32:52 INFO node0 Stopped scavenging 2023/11/15 14:32:52 INFO Stopped o.s.b.w.e.j.JettyEmbeddedWebAppContext@511f5b1d{application,/patient-wx-api,[file:///private/var/folders/c6/28zczkdn4g71sw3n1yq9vrh80000gn/T/jetty-docbase.8091.799991779751515786/],STOPPED} 2023/11/15 14:32:52 INFO Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023/11/15 14:32:52 ERROR Application run failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'wechatMetaContainer' 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.WechatMetaContainer]: Factory method 'wechatMetaContainer' threw exception; nested exception is cn.felord.payment.PayException: Cannot load keys from store: class path resource [apiclient_cert.p12] 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.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) at com.example.hospital.patient.wx.api.PatientWxApiApplication.main(PatientWxApiApplication.java:22) Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.felord.payment.wechat.v3.WechatMetaContainer]: Factory method 'wechatMetaContainer' threw exception; nested exception is cn.felord.payment.PayException: Cannot load keys from store: class path resource [apiclient_cert.p12] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ... 19 common frames omitted Caused by: cn.felord.payment.PayException: Cannot load keys from store: class path resource [apiclient_cert.p12] at cn.felord.payment.wechat.v3.KeyPairFactory.initWechatMetaBean(KeyPairFactory.java:70) at cn.felord.payment.wechat.WechatPayConfiguration.lambda$wechatMetaContainer$0(WechatPayConfiguration.java:63) at java.base/java.util.HashMap$KeySet.forEach(HashMap.java:1016) at cn.felord.payment.wechat.WechatPayConfiguration.wechatMetaContainer(WechatPayConfiguration.java:59) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 20 common frames omitted Caused by: java.io.IOException: keystore password was incorrect at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2147) at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:226) at java.base/java.security.KeyStore.load(KeyStore.java:1502) at cn.felord.payment.wechat.v3.KeyPairFactory.initWechatMetaBean(KeyPairFactory.java:59) ... 26 common frames omitted Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe contents entry: java.io.IOException: getSecretKey failed: Password is not ASCII ... 30 common frames omitted Process finished with exit code 1
3回答
-
神思者
2023-11-16
YML文件里面配置的微信支付信息不对
00 -
moss17
提问者
2023-11-15
2023/11/15 17:00:19 INFO Starting PatientWxApiApplication using Java 15.0.7 on localhost with PID 7950 (/Users/moss/Downloads/yl/new/patient-wx-api/target/classes started by moss in /Users/moss/Downloads/yl/new/patient-wx-api)
2023/11/15 17:00:19 INFO No active profile set, falling back to 1 default profile: "default"
2023/11/15 17:00:19 INFO Multiple Spring Data modules found, entering strict repository configuration mode
2023/11/15 17:00:19 INFO Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2023/11/15 17:00:19 INFO Finished Spring Data repository scanning in 2 ms. Found 0 Redis repository interfaces.
2023/11/15 17:00:19 INFO Logging initialized @780ms to org.eclipse.jetty.util.log.Slf4jLog
2023/11/15 17:00:19 INFO Server initialized with port: 8091
2023/11/15 17:00:19 INFO jetty-9.4.48.v20220622; built: 2022-06-21T20:42:25.880Z; git: 6b67c5719d1f4371b33655ff2d047d24e171e49a; jvm 15.0.7+4-MTS
2023/11/15 17:00:19 INFO Initializing Spring embedded WebApplicationContext
2023/11/15 17:00:19 INFO Root WebApplicationContext: initialization completed in 442 ms
2023/11/15 17:00:19 INFO DefaultSessionIdManager workerName=node0
2023/11/15 17:00:19 INFO No SessionScavenger set, using defaults
2023/11/15 17:00:19 INFO node0 Scavenging every 600000ms
2023/11/15 17:00:19 INFO Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@5e002356{application,/patient-wx-api,[file:///private/var/folders/c6/28zczkdn4g71sw3n1yq9vrh80000gn/T/jetty-docbase.8091.6097227600034114829/],AVAILABLE}
2023/11/15 17:00:19 INFO Started @873ms
2023/11/15 17:00:19 WARN Exception encountered during context initialization - cancelling refresh attempt: 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
2023/11/15 17:00:20 INFO node0 Stopped scavenging
2023/11/15 17:00:20 INFO Stopped o.s.b.w.e.j.JettyEmbeddedWebAppContext@5e002356{application,/patient-wx-api,[file:///private/var/folders/c6/28zczkdn4g71sw3n1yq9vrh80000gn/T/jetty-docbase.8091.6097227600034114829/],STOPPED}
2023/11/15 17:00:20 INFO
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023/11/15 17:00:20 ERROR Application run failed
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.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295)
at com.example.hospital.patient.wx.api.PatientWxApiApplication.main(PatientWxApiApplication.java:22)
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)
... 19 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)
... 20 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)
... 31 common frames omitted
Process finished with exit code 1
00 -
moss17
提问者
2023-11-15
2023/11/15 14:58:43 INFO Starting PatientWxApiApplication using Java 19.0.2 on localhost with PID 6322 (/Users/moss/Downloads/yl/patient-wx-api/target/classes started by moss in /Users/moss/Downloads/yl/patient-wx-api) 2023/11/15 14:58:43 INFO No active profile set, falling back to 1 default profile: "default" 2023/11/15 14:58:43 INFO Multiple Spring Data modules found, entering strict repository configuration mode 2023/11/15 14:58:43 INFO Bootstrapping Spring Data Redis repositories in DEFAULT mode. 2023/11/15 14:58:43 INFO Finished Spring Data repository scanning in 2 ms. Found 0 Redis repository interfaces. 2023/11/15 14:58:43 INFO Logging initialized @800ms to org.eclipse.jetty.util.log.Slf4jLog 2023/11/15 14:58:43 INFO Server initialized with port: 8091 2023/11/15 14:58:43 INFO jetty-9.4.48.v20220622; built: 2022-06-21T20:42:25.880Z; git: 6b67c5719d1f4371b33655ff2d047d24e171e49a; jvm 19.0.2+7-44 2023/11/15 14:58:43 INFO Initializing Spring embedded WebApplicationContext 2023/11/15 14:58:43 INFO Root WebApplicationContext: initialization completed in 470 ms 2023/11/15 14:58:43 INFO DefaultSessionIdManager workerName=node0 2023/11/15 14:58:43 INFO No SessionScavenger set, using defaults 2023/11/15 14:58:43 INFO node0 Scavenging every 660000ms 2023/11/15 14:58:43 INFO Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@511f5b1d{application,/patient-wx-api,[file:///private/var/folders/c6/28zczkdn4g71sw3n1yq9vrh80000gn/T/jetty-docbase.8091.1926752711514859148/],AVAILABLE} 2023/11/15 14:58:43 INFO Started @912ms 2023/11/15 14:58:44 WARN Exception encountered during context initialization - cancelling refresh attempt: 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 2023/11/15 14:58:44 INFO node0 Stopped scavenging 2023/11/15 14:58:44 INFO Stopped o.s.b.w.e.j.JettyEmbeddedWebAppContext@511f5b1d{application,/patient-wx-api,[file:///private/var/folders/c6/28zczkdn4g71sw3n1yq9vrh80000gn/T/jetty-docbase.8091.1926752711514859148/],STOPPED} 2023/11/15 14:58:44 INFO Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2023/11/15 14:58:44 ERROR Application run failed 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.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) at com.example.hospital.patient.wx.api.PatientWxApiApplication.main(PatientWxApiApplication.java:23) 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) ... 19 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.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ... 20 common frames omitted Caused by: javax.crypto.AEADBadTagException: mac check in GCM failed at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:484) 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:2207) at cn.felord.payment.wechat.v3.SignatureProvider.decryptResponseBody(SignatureProvider.java:286) ... 29 common frames omitted Process finished with exit code 1
012024-12-24
相似问题