Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dubbo2.7.12消费端启动报错.ClassCastException: java.lang.String cannot be cast to java.lang.Class。3.0.1启动访问都正常 #8413

Closed
gang0713 opened this issue Aug 4, 2021 · 4 comments

Comments

@gang0713
Copy link

gang0713 commented Aug 4, 2021

demo地址:https://github.com/pinxiong/spring-boot-dubbo-nacos-demo
nacos版本:2.0.3
jdk:1.8

服务端日志:

:: Dubbo Spring Boot (v2.7.12) : https://github.com/apache/dubbo-spring-boot-project
:: Dubbo (v2.7.12) : https://github.com/apache/dubbo
:: Discuss group : dev@dubbo.apache.org

2021-08-04 15:31:00 INFO org.apache.dubbo.spring.boot.context.event.OverrideDubboConfigApplicationListener:69 - Dubbo Config was overridden by externalized configuration {dubbo.application.id=shop-service-provider, dubbo.application.name=shop-service-provider, dubbo.application.qos-accept-foreign-ip=false, dubbo.application.qos-enable=false, dubbo.application.register-mode=all, dubbo.config.multiple=true, dubbo.consumer.check=false, dubbo.consumer.retries=0, dubbo.consumer.timeout=12000, dubbo.metadata-report.address=nacos://127.0.0.1:8848, dubbo.monitor.protocol=registry, dubbo.protocol.name=dubbo, dubbo.protocol.port=12316, dubbo.protocol.server=netty4, dubbo.provider.delay=-1, dubbo.provider.retries=0, dubbo.provider.timeout=12000, dubbo.registry.address=nacos://127.0.0.1:8848, dubbo.scan.base-packages=cn.raysonblog.*.service.impl}

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.3.12.RELEASE)

2021-08-04 15:31:00 INFO com.alibaba.boot.nacos.config.util.NacosConfigPropertiesUtils:47 - nacosConfigProperties : NacosConfigProperties{serverAddr='127.0.0.1:8848', contextPath='null', encode='null', endpoint='null', namespace='null', accessKey='null', secretKey='null', ramRoleName='null', autoRefresh=false, dataId='null', dataIds='null', group='DEFAULT_GROUP', type=null, maxRetry='null', configLongPollTimeout='null', configRetryTime='null', enableRemoteSyncConfig=false, extConfig=[], bootstrap=Bootstrap{enable=false, logEnable=false}}
2021-08-04 15:31:00 INFO com.alibaba.boot.nacos.config.autoconfigure.NacosConfigApplicationContextInitializer:75 - [Nacos Config Boot] : The preload configuration is not enabled
2021-08-04 15:31:00 INFO cn.raysonblog.shopserviceprovider.ShopServiceProviderApplication:55 - Starting ShopServiceProviderApplication on DESKTOP-KIG8CEJ with PID 50780 (E:\app\workspace\spring-boot-dubbo-nacos-demo\shop-service-provider\target\classes started by Dell in E:\app\workspace)
2021-08-04 15:31:00 INFO cn.raysonblog.shopserviceprovider.ShopServiceProviderApplication:648 - No active profile set, falling back to default profiles: default
2021-08-04 15:31:01 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [referenceAnnotationBeanPostProcessor] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.annotation.DubboConfigAliasPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigAliasPostProcessor] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.context.DubboApplicationListenerRegistrar]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboApplicationListenerRegister] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.config.DubboConfigDefaultPropertyValueBeanPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigDefaultPropertyValueBeanPostProcessor] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.config.DubboConfigEarlyInitializationPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigEarlyInitializationPostProcessor] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : shop-service-provider, content : Root bean: class [org.apache.dubbo.config.ApplicationConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [configurationBeanBindingPostProcessor] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.RegistryConfig#0, content : Root bean: class [org.apache.dubbo.config.RegistryConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.ProtocolConfig#0, content : Root bean: class [org.apache.dubbo.config.ProtocolConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.MonitorConfig#0, content : Root bean: class [org.apache.dubbo.config.MonitorConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.ProviderConfig#0, content : Root bean: class [org.apache.dubbo.config.ProviderConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.ConsumerConfig#0, content : Root bean: class [org.apache.dubbo.config.ConsumerConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:01 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.MetadataReportConfig#0, content : Root bean: class [org.apache.dubbo.config.MetadataReportConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:01 INFO org.apache.dubbo.config.spring.beans.factory.config.DubboConfigEarlyInitializationPostProcessor:102 - BeanFactory is about to be initialized, trying to resolve the Dubbo Config Beans early initialization
2021-08-04 15:31:01 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboBootstrapApplicationListener] has been registered.
2021-08-04 15:31:01 INFO org.springframework.context.annotation.ConfigurationClassPostProcessor:413 - Cannot enhance @configuration bean definition 'org.apache.dubbo.spring.boot.autoconfigure.DubboRelaxedBinding2AutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
2021-08-04 15:31:01 INFO org.springframework.context.annotation.ConfigurationClassPostProcessor:413 - Cannot enhance @configuration bean definition 'org.apache.dubbo.spring.boot.autoconfigure.DubboAutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
2021-08-04 15:31:01 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'shopServiceProviderApplication' of type [cn.raysonblog.shopserviceprovider.ShopServiceProviderApplication$$EnhancerBySpringCGLIB$$f9bf055b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:01 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'nacosConfigurationPropertiesBinder' of type [com.alibaba.boot.nacos.config.binder.NacosBootConfigurationPropertiesBinder] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:01 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration' of type [org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:01 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'com.alibaba.boot.nacos.config.autoconfigure.NacosConfigAutoConfiguration' of type [com.alibaba.boot.nacos.config.autoconfigure.NacosConfigAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:01 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'nacos.config-com.alibaba.boot.nacos.config.properties.NacosConfigProperties' of type [com.alibaba.boot.nacos.config.properties.NacosConfigProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:01 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'com.alibaba.boot.nacos.discovery.autoconfigure.NacosDiscoveryAutoConfiguration' of type [com.alibaba.boot.nacos.discovery.autoconfigure.NacosDiscoveryAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:01 INFO org.reflections.Reflections:232 - Reflections took 27 ms to scan 1 urls, producing 3 keys and 6 values
2021-08-04 15:31:01 INFO org.reflections.Reflections:232 - Reflections took 13 ms to scan 1 urls, producing 4 keys and 9 values
2021-08-04 15:31:01 INFO org.reflections.Reflections:232 - Reflections took 10 ms to scan 1 urls, producing 3 keys and 10 values
2021-08-04 15:31:01 INFO org.reflections.Reflections:232 - Reflections took 91 ms to scan 86 urls, producing 0 keys and 0 values
2021-08-04 15:31:01 INFO org.reflections.Reflections:232 - Reflections took 9 ms to scan 1 urls, producing 1 keys and 5 values
2021-08-04 15:31:01 INFO org.reflections.Reflections:232 - Reflections took 15 ms to scan 1 urls, producing 1 keys and 7 values
2021-08-04 15:31:01 INFO org.reflections.Reflections:232 - Reflections took 14 ms to scan 1 urls, producing 2 keys and 8 values
2021-08-04 15:31:01 INFO org.reflections.Reflections:232 - Reflections took 80 ms to scan 86 urls, producing 0 keys and 0 values
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'nacos.discovery-com.alibaba.boot.nacos.discovery.properties.NacosDiscoveryProperties' of type [com.alibaba.boot.nacos.discovery.properties.NacosDiscoveryProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'discoveryAutoRegister' of type [com.alibaba.boot.nacos.discovery.autoconfigure.NacosDiscoveryAutoRegister] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'dubbo-org.apache.dubbo.spring.boot.autoconfigure.DubboConfigurationProperties' of type [org.apache.dubbo.spring.boot.autoconfigure.DubboConfigurationProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'dubboConfigConfiguration.Single' of type [org.apache.dubbo.config.spring.context.annotation.DubboConfigConfiguration$Single] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'dubboConfigConfiguration.Multiple' of type [org.apache.dubbo.config.spring.context.annotation.DubboConfigConfiguration$Multiple] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration' of type [org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'objectNamingStrategy' of type [org.springframework.boot.autoconfigure.jmx.ParentAwareNamingStrategy] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'mbeanServer' of type [com.sun.jmx.mbeanserver.JmxMBeanServer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'mbeanExporter' of type [org.springframework.jmx.export.annotation.AnnotationMBeanExporter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration' of type [org.springframework.boot.autoconfigure.admin.SpringApplicationAdminJmxAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'springApplicationAdminRegistrar' of type [org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.aop.AopAutoConfiguration$ClassProxyingConfiguration' of type [org.springframework.boot.autoconfigure.aop.AopAutoConfiguration$ClassProxyingConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.aop.AopAutoConfiguration' of type [org.springframework.boot.autoconfigure.aop.AopAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.availability.ApplicationAvailabilityAutoConfiguration' of type [org.springframework.boot.autoconfigure.availability.ApplicationAvailabilityAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'applicationAvailability' of type [org.springframework.boot.availability.ApplicationAvailabilityBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration' of type [org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.context.LifecycleAutoConfiguration' of type [org.springframework.boot.autoconfigure.context.LifecycleAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'spring.lifecycle-org.springframework.boot.autoconfigure.context.LifecycleProperties' of type [org.springframework.boot.autoconfigure.context.LifecycleProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'lifecycleProcessor' of type [org.springframework.context.support.DefaultLifecycleProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration' of type [org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'spring.gson-org.springframework.boot.autoconfigure.gson.GsonProperties' of type [org.springframework.boot.autoconfigure.gson.GsonProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'standardGsonBuilderCustomizer' of type [org.springframework.boot.autoconfigure.gson.GsonAutoConfiguration$StandardGsonBuilderCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'gsonBuilder' of type [com.google.gson.GsonBuilder] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'gson' of type [com.google.gson.Gson] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'spring.info-org.springframework.boot.autoconfigure.info.ProjectInfoProperties' of type [org.springframework.boot.autoconfigure.info.ProjectInfoProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration' of type [org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'jsonComponentModule' of type [org.springframework.boot.jackson.JsonComponentModule] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration' of type [org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'spring.task.execution-org.springframework.boot.autoconfigure.task.TaskExecutionProperties' of type [org.springframework.boot.autoconfigure.task.TaskExecutionProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'taskExecutorBuilder' of type [org.springframework.boot.task.TaskExecutorBuilder] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.task.TaskSchedulingAutoConfiguration' of type [org.springframework.boot.autoconfigure.task.TaskSchedulingAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'spring.task.scheduling-org.springframework.boot.autoconfigure.task.TaskSchedulingProperties' of type [org.springframework.boot.autoconfigure.task.TaskSchedulingProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'taskSchedulerBuilder' of type [org.springframework.boot.task.TaskSchedulerBuilder] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'relaxedDubboConfigBinder' of type [org.apache.dubbo.spring.boot.autoconfigure.BinderDubboConfigBinder] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor:159 - The configuration bean [<dubbo:application name="shop-service-provider" qosAcceptForeignIp="false" hostname="DESKTOP-KIG8CEJ" qosEnable="false" />] have been binding by the configuration properties [{id=shop-service-provider, name=shop-service-provider, register-mode=all, qos-enable=false, qos-accept-foreign-ip=false}]
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'shop-service-provider' of type [org.apache.dubbo.config.ApplicationConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor:159 - The configuration bean [<dubbo:registry address="nacos://127.0.0.1:8848" protocol="nacos" port="8848" />] have been binding by the configuration properties [{address=nacos://127.0.0.1:8848}]
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.apache.dubbo.config.RegistryConfig#0' of type [org.apache.dubbo.config.RegistryConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:02 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor:159 - The configuration bean [ProtocolConfig{name='dubbo', host='null', port=12316, contextpath='null', threadpool='null', threadname='null', corethreads=null, threads=null, iothreads=null, alive=null, queues=null, accepts=null, codec='null', serialization='null', charset='null', payload=null, buffer=null, heartbeat=null, accesslog='null', transporter='null', exchanger='null', dispatcher='null', networker='null', server='netty4', client='null', telnet='null', prompt='null', status='null', register=null, keepAlive=null, optimizer='null', extension='null', parameters=null, isDefault=null, sslEnabled=null}] have been binding by the configuration properties [{name=dubbo, port=12316, server=netty4}]
2021-08-04 15:31:02 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.apache.dubbo.config.ProtocolConfig#0' of type [org.apache.dubbo.config.ProtocolConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:03 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor:159 - The configuration bean [<dubbo:monitor protocol="registry" />] have been binding by the configuration properties [{protocol=registry}]
2021-08-04 15:31:03 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.apache.dubbo.config.MonitorConfig#0' of type [org.apache.dubbo.config.MonitorConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:03 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor:159 - The configuration bean [ProviderConfig{host='null', port=null, contextpath='null', threadpool='null', threadname='null', threads=null, iothreads=null, alive=null, queues=null, accepts=null, codec='null', charset='null', payload=null, buffer=null, transporter='null', exchanger='null', dispatcher='null', networker='null', server='null', client='null', telnet='null', prompt='null', status='null', wait=null', isDefault=null}] have been binding by the configuration properties [{retries=0, delay=-1, timeout=12000}]
2021-08-04 15:31:03 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.apache.dubbo.config.ProviderConfig#0' of type [org.apache.dubbo.config.ProviderConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:03 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor:159 - The configuration bean [<dubbo:consumer />] have been binding by the configuration properties [{timeout=12000, check=false, retries=0}]
2021-08-04 15:31:03 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.apache.dubbo.config.ConsumerConfig#0' of type [org.apache.dubbo.config.ConsumerConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:03 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor:159 - The configuration bean [<dubbo:metadata-report address="nacos://127.0.0.1:8848" />] have been binding by the configuration properties [{address=nacos://127.0.0.1:8848}]
2021-08-04 15:31:03 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.apache.dubbo.config.MetadataReportConfig#0' of type [org.apache.dubbo.config.MetadataReportConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:03 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'shopServiceImpl' of type [cn.raysonblog.shopserviceprovider.service.impl.ShopServiceImpl] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:03 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'ServiceBean:cn.raysonblog.shopservice.api.service.RpcShopService:1.0.0' of type [org.apache.dubbo.config.spring.ServiceBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:04 INFO cn.raysonblog.shopserviceprovider.ShopServiceProviderApplication:61 - Started ShopServiceProviderApplication in 4.218 seconds (JVM running for 5.75)
2021-08-04 15:31:04 INFO org.apache.dubbo.spring.boot.context.event.AwaitingNonWebApplicationListener:159 - [Dubbo] Current Spring Boot Application is await...

消费端日志:

:: Dubbo Spring Boot (v2.7.12) : https://github.com/apache/dubbo-spring-boot-project
:: Dubbo (v2.7.12) : https://github.com/apache/dubbo
:: Discuss group : dev@dubbo.apache.org

2021-08-04 15:31:14 INFO org.apache.dubbo.spring.boot.context.event.OverrideDubboConfigApplicationListener:69 - Dubbo Config was overridden by externalized configuration {dubbo.application.id=shop-service-consumer, dubbo.application.name=shop-service-consumer, dubbo.application.qos-accept-foreign-ip=false, dubbo.application.qos-enable=false, dubbo.config.multiple=true, dubbo.consumer.check=false, dubbo.consumer.client=netty4, dubbo.consumer.retries=0, dubbo.consumer.timeout=12000, dubbo.metadata-report.address=nacos://127.0.0.1:8848, dubbo.monitor.protocol=registry, dubbo.registry.address=nacos://127.0.0.1:8848}

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.3.12.RELEASE)

2021-08-04 15:31:14 INFO com.alibaba.boot.nacos.config.util.NacosConfigPropertiesUtils:47 - nacosConfigProperties : NacosConfigProperties{serverAddr='127.0.0.1:8848', contextPath='null', encode='null', endpoint='null', namespace='null', accessKey='null', secretKey='null', ramRoleName='null', autoRefresh=false, dataId='null', dataIds='null', group='DEFAULT_GROUP', type=null, maxRetry='null', configLongPollTimeout='null', configRetryTime='null', enableRemoteSyncConfig=false, extConfig=[], bootstrap=Bootstrap{enable=false, logEnable=false}}
2021-08-04 15:31:14 INFO com.alibaba.boot.nacos.config.autoconfigure.NacosConfigApplicationContextInitializer:75 - [Nacos Config Boot] : The preload configuration is not enabled
2021-08-04 15:31:14 INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication:55 - Starting ShopServiceConsumerApplication on DESKTOP-KIG8CEJ with PID 25732 (E:\app\workspace\spring-boot-dubbo-nacos-demo\shop-service-consumer\target\classes started by Dell in E:\app\workspace)
2021-08-04 15:31:14 INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication:648 - No active profile set, falling back to default profiles: default
2021-08-04 15:31:14 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [referenceAnnotationBeanPostProcessor] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.annotation.DubboConfigAliasPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigAliasPostProcessor] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.context.DubboApplicationListenerRegistrar]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboApplicationListenerRegister] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.config.DubboConfigDefaultPropertyValueBeanPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigDefaultPropertyValueBeanPostProcessor] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.beans.factory.config.DubboConfigEarlyInitializationPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboConfigEarlyInitializationPostProcessor] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : shop-service-consumer, content : Root bean: class [org.apache.dubbo.config.ApplicationConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.util.BeanRegistrar:67 - The Infrastructure bean definition [Root bean: class [com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [configurationBeanBindingPostProcessor] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.RegistryConfig#0, content : Root bean: class [org.apache.dubbo.config.RegistryConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.MonitorConfig#0, content : Root bean: class [org.apache.dubbo.config.MonitorConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.ConsumerConfig#0, content : Root bean: class [org.apache.dubbo.config.ConsumerConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:14 INFO com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingRegistrar:139 - The configuration bean definition [name : org.apache.dubbo.config.MetadataReportConfig#0, content : Root bean: class [org.apache.dubbo.config.MetadataReportConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
2021-08-04 15:31:14 INFO org.apache.dubbo.config.spring.beans.factory.config.DubboConfigEarlyInitializationPostProcessor:102 - BeanFactory is about to be initialized, trying to resolve the Dubbo Config Beans early initialization
2021-08-04 15:31:14 INFO org.springframework.context.annotation.ConfigurationClassPostProcessor:413 - Cannot enhance @configuration bean definition 'org.apache.dubbo.spring.boot.autoconfigure.DubboAutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryConfiguration$EmbeddedTomcat' of type [org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryConfiguration$EmbeddedTomcat] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration$TomcatWebSocketConfiguration' of type [org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration$TomcatWebSocketConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'websocketServletWebServerCustomizer' of type [org.springframework.boot.autoconfigure.websocket.servlet.TomcatWebSocketServletWebServerCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration' of type [org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'server-org.springframework.boot.autoconfigure.web.ServerProperties' of type [org.springframework.boot.autoconfigure.web.ServerProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'servletWebServerFactoryCustomizer' of type [org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'tomcatServletWebServerFactoryCustomizer' of type [org.springframework.boot.autoconfigure.web.servlet.TomcatServletWebServerFactoryCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration$TomcatWebServerFactoryCustomizerConfiguration' of type [org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration$TomcatWebServerFactoryCustomizerConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'tomcatWebServerFactoryCustomizer' of type [org.springframework.boot.autoconfigure.web.embedded.TomcatWebServerFactoryCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration' of type [org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'localeCharsetMappingsCustomizer' of type [org.springframework.boot.autoconfigure.web.servlet.HttpEncodingAutoConfiguration$LocaleCharsetMappingsCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration' of type [org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration' of type [org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletConfiguration' of type [org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoConfiguration$DispatcherServletConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'spring.mvc-org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties' of type [org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'dispatcherServlet' of type [org.springframework.web.servlet.DispatcherServlet] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'spring.servlet.multipart-org.springframework.boot.autoconfigure.web.servlet.MultipartProperties' of type [org.springframework.boot.autoconfigure.web.servlet.MultipartProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration' of type [org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'multipartConfigElement' of type [javax.servlet.MultipartConfigElement] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'dispatcherServletRegistration' of type [org.springframework.boot.autoconfigure.web.servlet.DispatcherServletRegistrationBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'errorPageCustomizer' of type [org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration$ErrorPageCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:14 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'tomcatServletWebServerFactory' of type [org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:15 INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:108 - Tomcat initialized with port(s): 9081 (http)
2021-08-04 15:31:15 INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-9081"]
2021-08-04 15:31:15 INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat]
2021-08-04 15:31:15 INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.46]
2021-08-04 15:31:15 INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext
2021-08-04 15:31:15 INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext:285 - Root WebApplicationContext: initialization completed in 1053 ms
2021-08-04 15:31:15 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'requestContextFilter' of type [org.springframework.boot.web.servlet.filter.OrderedRequestContextFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:15 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration' of type [org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:15 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'formContentFilter' of type [org.springframework.boot.web.servlet.filter.OrderedFormContentFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:15 INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:335 - Bean 'characterEncodingFilter' of type [org.springframework.boot.web.servlet.filter.OrderedCharacterEncodingFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2021-08-04 15:31:15 WARN org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext:559 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'test': Injection of @DubboReference dependencies is failed; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Class
2021-08-04 15:31:15 INFO org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor:354 - class org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor was destroying!
2021-08-04 15:31:15 INFO com.alibaba.nacos.spring.context.annotation.config.NacosValueAnnotationBeanPostProcessor:354 - class com.alibaba.nacos.spring.context.annotation.config.NacosValueAnnotationBeanPostProcessor was destroying!
2021-08-04 15:31:15 INFO com.alibaba.nacos.spring.beans.factory.annotation.AnnotationNacosInjectedBeanPostProcessor:354 - class com.alibaba.nacos.spring.beans.factory.annotation.AnnotationNacosInjectedBeanPostProcessor was destroying!
2021-08-04 15:31:15 INFO org.apache.catalina.core.StandardService:173 - Stopping service [Tomcat]
2021-08-04 15:31:15 INFO org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener:136 -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-08-04 15:31:15 ERROR org.springframework.boot.SpringApplication:834 - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'test': Injection of @DubboReference dependencies is failed; nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Class
at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.postProcessPropertyValues(AbstractAnnotationBeanPostProcessor.java:183) ~[spring-context-support-1.0.11.jar:?]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1430) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1247) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1236) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication.main(ShopServiceConsumerApplication.java:45) [classes/:?]
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Class
at org.apache.dubbo.config.spring.util.DubboAnnotationUtils.resolveServiceInterfaceClass(DubboAnnotationUtils.java:95) ~[dubbo-2.7.12.jar:2.7.12]
at org.apache.dubbo.config.spring.util.DubboAnnotationUtils.resolveInterfaceName(DubboAnnotationUtils.java:78) ~[dubbo-2.7.12.jar:2.7.12]
at org.apache.dubbo.config.spring.beans.factory.annotation.ServiceBeanNameBuilder.(ServiceBeanNameBuilder.java:65) ~[dubbo-2.7.12.jar:2.7.12]
at org.apache.dubbo.config.spring.beans.factory.annotation.ServiceBeanNameBuilder.create(ServiceBeanNameBuilder.java:78) ~[dubbo-2.7.12.jar:2.7.12]
at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildReferencedBeanName(ReferenceAnnotationBeanPostProcessor.java:358) ~[dubbo-2.7.12.jar:2.7.12]
at org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor.buildInjectedObjectCacheKey(ReferenceAnnotationBeanPostProcessor.java:347) ~[dubbo-2.7.12.jar:2.7.12]
at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.getInjectedObject(AbstractAnnotationBeanPostProcessor.java:404) ~[spring-context-support-1.0.11.jar:?]
at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor$AnnotatedFieldElement.inject(AbstractAnnotationBeanPostProcessor.java:626) ~[spring-context-support-1.0.11.jar:?]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at com.alibaba.spring.beans.factory.annotation.AbstractAnnotationBeanPostProcessor.postProcessPropertyValues(AbstractAnnotationBeanPostProcessor.java:179) ~[spring-context-support-1.0.11.jar:?]
... 18 more

@zrlw
Copy link
Contributor

zrlw commented Aug 8, 2021

because dubbo 2.7.12 or prior version is incompatible with nacos 1.4.2+
dubbo 2.7.13 fixed it: #8217, but 2.7.13 is not been published to mvnrepository.com yet, you might wait a few days.

@xiaoheng1
Copy link
Contributor

You can upgrade to 2.7.13 and try it, dubbo2.7.13 is now included in maven.

@mercyblitz
Copy link
Contributor

Please remove "dev-tools" or other byte-code artifact~

@CrazyHZM
Copy link
Member

The above answer should solve your problem, temporarily close the issue, if there are other problems, you can open the issue at any time.
@gang0713

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants