2023-09-28 13:57:34.708 [main] WARN [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext,559] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weChatController': Unsatisfied dependency expressed through field 'weChatContactMsgService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weChatContactMsgServiceImpl': Unsatisfied dependency expressed through field 'weChatContactMappingService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weChatContactMappingServiceImpl': Unsatisfied dependency expressed through field 'chatContactMsgService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chatContactMsgService' defined in URL [jar:file:/root/workspace/app.jar!/BOOT-INF/lib/weifuyun-wecom-1.0.0.jar!/cn/com/weifuyun/wecom/component/ChatContactMsgService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.com.weifuyun.wecom.component.ChatContactMsgService]: Constructor threw exception; nested exception is ServiceException(code=500)
2023-09-28 13:57:34.723 [NettyClientSelector_1] INFO [RocketmqRemoting,95] - closeChannel: close the connection to remote address[129.28.191.18:10911] result: true
2023-09-28 13:57:34.808 [NettyClientSelector_1] INFO [RocketmqRemoting,95] - closeChannel: close the connection to remote address[129.28.191.18:10911] result: true
2023-09-28 13:57:34.810 [NettyClientSelector_1] INFO [RocketmqRemoting,95] - closeChannel: close the connection to remote address[129.28.191.18:9876] result: true
2023-09-28 13:57:34.820 [main] INFO [com.alibaba.druid.pool.DruidDataSource,1928] - {dataSource-1} closed
2023-09-28 13:57:34.901 [NettyClientSelector_1] INFO [RocketmqRemoting,95] - closeChannel: close the connection to remote address[129.28.191.18:9876] result: true
2023-09-28 13:57:35.022 [main] INFO [c.a.n.s.b.f.a.AnnotationNacosInjectedBeanPostProcessor,288] - class com.alibaba.nacos.spring.beans.factory.annotation.AnnotationNacosInjectedBeanPostProcessor was destroying!
2023-09-28 13:57:35.025 [main] INFO [org.apache.catalina.core.StandardService,173] - Stopping service [Tomcat]
2023-09-28 13:57:35.101 [main] WARN [org.apache.catalina.loader.WebappClassLoaderBase,173] - The web application [ROOT] appears to have started a thread named [AsyncAppender-Dispatcher-Thread-10] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:502)
org.apache.rocketmq.logging.inner.LoggingBuilder$AsyncAppender$Dispatcher.run(LoggingBuilder.java:386)
java.lang.Thread.run(Thread.java:748)
// 中间执行多次
// 2023-09-28 13:57:35.101 [main] WARN [org.apache.catalina.loader.WebappClassLoaderBase,173] -
// ..
// java.lang.Thread.run(Thread.java:748)
2023-09-28 13:57:35.202 [main] ERROR [org.springframework.boot.SpringApplication,837] - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weChatController': Unsatisfied dependency expressed through field 'weChatContactMsgService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weChatContactMsgServiceImpl': Unsatisfied dependency expressed through field 'weChatContactMappingService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weChatContactMappingServiceImpl': Unsatisfied dependency expressed through field 'chatContactMsgService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chatContactMsgService' defined in URL [jar:file:/root/workspace/app.jar!/BOOT-INF/lib/weifuyun-wecom-1.0.0.jar!/cn/com/weifuyun/wecom/component/ChatContactMsgService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.com.weifuyun.wecom.component.ChatContactMsgService]: Constructor threw exception; nested exception is ServiceException(code=500)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at cn.com.weifuyun.Application.main(Application.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weChatContactMsgServiceImpl': Unsatisfied dependency expressed through field 'weChatContactMappingService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weChatContactMappingServiceImpl': Unsatisfied dependency expressed through field 'chatContactMsgService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chatContactMsgService' defined in URL [jar:file:/root/workspace/app.jar!/BOOT-INF/lib/weifuyun-wecom-1.0.0.jar!/cn/com/weifuyun/wecom/component/ChatContactMsgService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.com.weifuyun.wecom.component.ChatContactMsgService]: Constructor threw exception; nested exception is ServiceException(code=500)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
... 28 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'weChatContactMappingServiceImpl': Unsatisfied dependency expressed through field 'chatContactMsgService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chatContactMsgService' defined in URL [jar:file:/root/workspace/app.jar!/BOOT-INF/lib/weifuyun-wecom-1.0.0.jar!/cn/com/weifuyun/wecom/component/ChatContactMsgService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.com.weifuyun.wecom.component.ChatContactMsgService]: Constructor threw exception; nested exception is ServiceException(code=500)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
... 41 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chatContactMsgService' defined in URL [jar:file:/root/workspace/app.jar!/BOOT-INF/lib/weifuyun-wecom-1.0.0.jar!/cn/com/weifuyun/wecom/component/ChatContactMsgService.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.com.weifuyun.wecom.component.ChatContactMsgService]: Constructor threw exception; nested exception is ServiceException(code=500)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1318)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1213)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
... 54 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.com.weifuyun.wecom.component.ChatContactMsgService]: Constructor threw exception; nested exception is ServiceException(code=500)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:217)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1310)
... 65 common frames omitted
Caused by: cn.com.weifuyun.common.exception.ServiceException: 企业初始化数据异常
at cn.com.weifuyun.wecom.service.impl.WeCorpAccountServiceImpl.findValidWeCorpAccount(WeCorpAccountServiceImpl.java:42)
at cn.com.weifuyun.wecom.service.impl.WeCorpAccountServiceImpl$$FastClassBySpringCGLIB$$fbad0164.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
at cn.com.weifuyun.wecom.service.impl.WeCorpAccountServiceImpl$$EnhancerBySpringCGLIB$$9803e059.findValidWeCorpAccount(<generated>)
at cn.com.weifuyun.wecom.component.ChatContactMsgService.<init>(ChatContactMsgService.java:95)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:204)
... 67 common frames omitted
用腾讯云的TKE集群K8s部项目报错,目前分析不出问题了