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