Failed to instantiate [com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration]

2023-08-04 18:56:33.384  INFO 10856 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing 

org.springframework.context.annotation.AnnotationConfigApplicationContext@4387b79e: startup date [Fri Aug 04 18:56:33 CST 2023]; root of context hierarchy
2023-08-04 18:56:33.607  INFO 10856 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2023-08-04 18:56:33.638  INFO 10856 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type 

[org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$3d7d924d] is not eligible for getting processed by all BeanPostProcessors 

(for example: not eligible for auto-proxying)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.2.RELEASE)

2023-08-04 18:56:34.056  INFO 10856 --- [           main] zwf.AppNacos                             : No active profile set, falling back to default profiles: default
2023-08-04 18:56:34.068  INFO 10856 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing 

org.springframework.context.annotation.AnnotationConfigApplicationContext@4d0d9fe7: startup date [Fri Aug 04 18:56:34 CST 2023]; parent: 

org.springframework.context.annotation.AnnotationConfigApplicationContext@4387b79e
2023-08-04 18:56:34.319  INFO 10856 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=67a079ba-fe4a-3692-b326-23fb5bdcb5b4
2023-08-04 18:56:34.327  INFO 10856 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2023-08-04 18:56:34.343  INFO 10856 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 

'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration

$$EnhancerBySpringCGLIB$$3d7d924d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2023-08-04 18:56:34.383  INFO 10856 --- [           main] o.s.core.annotation.AnnotationUtils      : Failed to introspect annotations on [class 

com.alibaba.cloud.nacos.discovery.NacosDiscoveryClientAutoConfiguration$$EnhancerBySpringCGLIB$$5e1ec5a5]: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
2023-08-04 18:56:34.384  INFO 10856 --- [           main] o.s.core.annotation.AnnotationUtils      : Failed to introspect annotations on [class 

com.alibaba.cloud.nacos.discovery.NacosDiscoveryClientAutoConfiguration$$EnhancerBySpringCGLIB$$5e1ec5a5]: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
2023-08-04 18:56:34.401  WARN 10856 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2023-08-04 18:56:34.402  INFO 10856 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property 

archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2023-08-04 18:56:34.406  WARN 10856 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2023-08-04 18:56:34.406  INFO 10856 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property 

archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2023-08-04 18:56:34.427  INFO 10856 --- [           main] o.s.core.annotation.AnnotationUtils      : Failed to introspect annotations on [class 

com.alibaba.cloud.nacos.discovery.NacosDiscoveryClientAutoConfiguration$$EnhancerBySpringCGLIB$$5e1ec5a5]: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
2023-08-04 18:56:34.428  INFO 10856 --- [           main] o.s.core.annotation.AnnotationUtils      : Failed to introspect annotations on [class 

com.alibaba.cloud.nacos.discovery.NacosDiscoveryClientAutoConfiguration$$EnhancerBySpringCGLIB$$5e1ec5a5]: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
2023-08-04 18:56:34.724  INFO 10856 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 
2023-08-04 18:56:34.977  INFO 10856 --- [           main] c.a.n.p.a.s.c.ClientAuthPluginManager    : [ClientAuthPluginManager] Load ClientAuthService 

com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.
2023-08-04 18:56:34.977  INFO 10856 --- [           main] c.a.n.p.a.s.c.ClientAuthPluginManager    : [ClientAuthPluginManager] Load ClientAuthService 

com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.
2023-08-04 18:56:36.822  WARN 10856 --- [           main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: 

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nacosAutoServiceRegistration' defined in class path resource 

[com/alibaba/cloud/nacos/NacosDiscoveryAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: 

Failed to instantiate [com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration]: Factory method 'nacosAutoServiceRegistration' threw exception; nested exception is 

java.lang.NoSuchMethodError: org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.<init>

(Lorg/springframework/cloud/client/serviceregistry/ServiceRegistry;Lorg/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties;)V
2023-08-04 18:56:36.841  INFO 10856 --- [           main] utoConfigurationReportLoggingInitializer : 

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2023-08-04 18:56:36.851 ERROR 10856 --- [           main] o.s.boot.SpringApplication               : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nacosAutoServiceRegistration' defined in class path resource 

[com/alibaba/cloud/nacos/NacosDiscoveryAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: 

Failed to instantiate [com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration]: Factory method 'nacosAutoServiceRegistration' threw exception; nested exception is 

java.lang.NoSuchMethodError: org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.<init>

(Lorg/springframework/cloud/client/serviceregistry/ServiceRegistry;Lorg/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties;)V
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173) ~[spring-beans-

4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067) ~[spring-beans-

4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-

4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-

4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) ~[spring-context-

4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]
	at zwf.AppNacos.main(AppNacos.java:22) [classes/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration]: Factory method 

'nacosAutoServiceRegistration' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.<init>

(Lorg/springframework/cloud/client/serviceregistry/ServiceRegistry;Lorg/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties;)V
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	... 17 common frames omitted
Caused by: java.lang.NoSuchMethodError: org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.<init>

(Lorg/springframework/cloud/client/serviceregistry/ServiceRegistry;Lorg/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties;)V
	at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.<init>(NacosAutoServiceRegistration.java:42) ~[spring-cloud-alibaba-nacos-discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE]
	at com.alibaba.cloud.nacos.NacosDiscoveryAutoConfiguration.nacosAutoServiceRegistration(NacosDiscoveryAutoConfiguration.java:66) ~[spring-cloud-alibaba-nacos-discovery-

2.1.0.RELEASE.jar:2.1.0.RELEASE]
	at com.alibaba.cloud.nacos.NacosDiscoveryAutoConfiguration$$EnhancerBySpringCGLIB$$c9430f0e.CGLIB$nacosAutoServiceRegistration$2(<generated>) ~[spring-cloud-alibaba-nacos-

discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE]
	at com.alibaba.cloud.nacos.NacosDiscoveryAutoConfiguration$$EnhancerBySpringCGLIB$$c9430f0e$$FastClassBySpringCGLIB$$ce592ec0.invoke(<generated>) ~[spring-cloud-alibaba-nacos-

discovery-2.1.0.RELEASE.jar:2.1.0.RELEASE]
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358) ~[spring-context-

4.3.7.RELEASE.jar:4.3.7.RELEASE]
	at com.alibaba.cloud.nacos.NacosDiscoveryAutoConfiguration$$EnhancerBySpringCGLIB$$c9430f0e.nacosAutoServiceRegistration(<generated>) ~[spring-cloud-alibaba-nacos-discovery-

2.1.0.RELEASE.jar:2.1.0.RELEASE]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_341]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_341]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_341]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_341]
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162) ~[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]
	... 18 common frames omitted

2023-08-04 18:56:36.853  WARN 10856 --- [       Thread-6] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Start destroying Publisher
2023-08-04 18:56:36.853  WARN 10856 --- [       Thread-9] c.a.n.common.http.HttpClientBeanHolder   : [HttpClientBeanHolder] Start destroying common HttpClient
2023-08-04 18:56:36.854  WARN 10856 --- [       Thread-6] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Destruction of the end
2023-08-04 18:56:36.854  WARN 10856 --- [       Thread-9] c.a.n.common.http.HttpClientBeanHolder   : [HttpClientBeanHolder] Destruction of the end

 

版本问题springboot -> springcloud -> nacos

springcloud springboot nacos_spencer_tseng的博客-CSDN博客

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值