gang0713 commented on issue #8225: URL: https://github.com/apache/dubbo/issues/8225#issuecomment-890671300
我用您的代码,在centos8.3下支行,还是报错 服务端: log4j:WARN No appenders could be found for logger (org.apache.dubbo.common.Version). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 2021-08-02 10:47:01 INFO org.apache.dubbo.spring.boot.context.event.WelcomeLogoApplicationListener:64 - :: Dubbo Spring Boot (v3.0.1) : https://github.com/apache/dubbo-spring-boot-project :: Dubbo (v3.0.1) : https://github.com/apache/dubbo :: Discuss group : [email protected] . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.12.RELEASE) 2021-08-02 10:47:01 INFO com.alibaba.boot.nacos.config.util.NacosConfigPropertiesUtils:47 - nacosConfigProperties : NacosConfigProperties{serverAddr='192.168.0.20:8849', 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-02 10:47:01 INFO com.alibaba.boot.nacos.config.autoconfigure.NacosConfigApplicationContextInitializer:75 - [Nacos Config Boot] : The preload configuration is not enabled 2021-08-02 10:47:01 INFO cn.raysonblog.shopserviceprovider.ShopServiceProviderApplication:55 - Starting ShopServiceProviderApplication on xykq.com with PID 299497 (/test/shop-service-provider-0.0.1.jar started by root in /test) 2021-08-02 10:47:01 INFO cn.raysonblog.shopserviceprovider.ShopServiceProviderApplication:648 - No active profile set, falling back to default profiles: default 2021-08-02 10:47: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-02 10:47: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-02 10:47:02 WARN org.springframework.boot.context.properties.PropertySourcesDeducer:66 - Multiple PropertySourcesPlaceholderConfigurer beans registered [propertySourcesPlaceholderConfigurer, org.springframework.context.support.PropertySourcesPlaceholderConfigurer], falling back to Environment 2021-08-02 10:47:02 INFO org.reflections.Reflections:232 - Reflections took 53 ms to scan 1 urls, producing 3 keys and 6 values 2021-08-02 10:47:02 INFO org.reflections.Reflections:232 - Reflections took 31 ms to scan 1 urls, producing 4 keys and 9 values 2021-08-02 10:47:02 INFO org.reflections.Reflections:232 - Reflections took 37 ms to scan 1 urls, producing 3 keys and 10 values 2021-08-02 10:47:02 INFO org.reflections.Reflections:232 - Reflections took 102 ms to scan 78 urls, producing 0 keys and 0 values 2021-08-02 10:47:02 INFO org.reflections.Reflections:232 - Reflections took 20 ms to scan 1 urls, producing 1 keys and 5 values 2021-08-02 10:47:02 INFO org.reflections.Reflections:232 - Reflections took 20 ms to scan 1 urls, producing 1 keys and 7 values 2021-08-02 10:47:02 INFO org.reflections.Reflections:232 - Reflections took 20 ms to scan 1 urls, producing 2 keys and 8 values 2021-08-02 10:47:02 INFO org.reflections.Reflections:232 - Reflections took 107 ms to scan 78 urls, producing 0 keys and 0 values 2021-08-02 10:47:11 INFO cn.raysonblog.shopserviceprovider.ShopServiceProviderApplication:61 - Started ShopServiceProviderApplication in 10.228 seconds (JVM running for 10.708) 2021-08-02 10:47:11 INFO org.apache.dubbo.spring.boot.context.event.AwaitingNonWebApplicationListener:159 - [Dubbo] Current Spring Boot Application is await... 消费端: :: Dubbo Spring Boot (v3.0.1) : https://github.com/apache/dubbo-spring-boot-project :: Dubbo (v3.0.1) : https://github.com/apache/dubbo :: Discuss group : [email protected] . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.12.RELEASE) 2021-08-02 10:47:15 INFO com.alibaba.boot.nacos.config.util.NacosConfigPropertiesUtils:47 - nacosConfigProperties : NacosConfigProperties{serverAddr='192.168.0.20:8849', 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-02 10:47:15 INFO com.alibaba.boot.nacos.config.autoconfigure.NacosConfigApplicationContextInitializer:75 - [Nacos Config Boot] : The preload configuration is not enabled 2021-08-02 10:47:15 INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication:55 - Starting ShopServiceConsumerApplication on xykq.com with PID 300496 (/test/shop-service-consumer-0.0.1.jar started by root in /test) 2021-08-02 10:47:15 INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication:648 - No active profile set, falling back to default profiles: default 2021-08-02 10:47:15 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-02 10:47:15 INFO org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor:463 - Register dubbo reference bean: shopService = ReferenceBean:cn.raysonblog.shopservice.api.service.RpcShopService:1.0.0() at cn.raysonblog.shopservice.api.service.RpcShopService cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication.shopService 2021-08-02 10:47:15 WARN org.springframework.boot.context.properties.PropertySourcesDeducer:66 - Multiple PropertySourcesPlaceholderConfigurer beans registered [propertySourcesPlaceholderConfigurer, org.springframework.context.support.PropertySourcesPlaceholderConfigurer], falling back to Environment 2021-08-02 10:47:16 INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:108 - Tomcat initialized with port(s): 9081 (http) 2021-08-02 10:47:16 INFO org.apache.coyote.http11.Http11NioProtocol:173 - Initializing ProtocolHandler ["http-nio-9081"] 2021-08-02 10:47:16 INFO org.apache.catalina.core.StandardService:173 - Starting service [Tomcat] 2021-08-02 10:47:16 INFO org.apache.catalina.core.StandardEngine:173 - Starting Servlet engine: [Apache Tomcat/9.0.46] 2021-08-02 10:47:16 INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173 - Initializing Spring embedded WebApplicationContext 2021-08-02 10:47:16 INFO org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext:285 - Root WebApplicationContext: initialization completed in 882 ms 2021-08-02 10:47:16 INFO org.apache.dubbo.config.spring.reference.ReferenceCreator:95 - The configBean[type:ReferenceConfig] has been built. 2021-08-02 10:47:16 INFO org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor:181 - Initializing ExecutorService 'applicationTaskExecutor' 2021-08-02 10:47:16 INFO org.reflections.Reflections:232 - Reflections took 47 ms to scan 1 urls, producing 3 keys and 6 values 2021-08-02 10:47:16 INFO org.reflections.Reflections:232 - Reflections took 35 ms to scan 1 urls, producing 4 keys and 9 values 2021-08-02 10:47:16 INFO org.reflections.Reflections:232 - Reflections took 28 ms to scan 1 urls, producing 3 keys and 10 values 2021-08-02 10:47:16 INFO org.reflections.Reflections:232 - Reflections took 168 ms to scan 89 urls, producing 0 keys and 0 values 2021-08-02 10:47:16 INFO org.reflections.Reflections:232 - Reflections took 22 ms to scan 1 urls, producing 1 keys and 5 values 2021-08-02 10:47:17 INFO org.reflections.Reflections:232 - Reflections took 19 ms to scan 1 urls, producing 1 keys and 7 values 2021-08-02 10:47:17 INFO org.reflections.Reflections:232 - Reflections took 20 ms to scan 1 urls, producing 2 keys and 8 values 2021-08-02 10:47:17 INFO org.reflections.Reflections:232 - Reflections took 104 ms to scan 89 urls, producing 0 keys and 0 values 2021-08-02 10:47:17 INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler:181 - Initializing ExecutorService 'taskScheduler' 2021-08-02 10:47:17 INFO org.apache.coyote.http11.Http11NioProtocol:173 - Starting ProtocolHandler ["http-nio-9081"] 2021-08-02 10:47:17 INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer:220 - Tomcat started on port(s): 9081 (http) with context path '' 2021-08-02 10:47:21 INFO cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication:61 - Started ShopServiceConsumerApplication in 6.669 seconds (JVM running for 7.215) 2021-08-02 10:47:25 ERROR org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler:95 - Unexpected error occurred in scheduled task org.apache.dubbo.rpc.RpcException: Failed to invoke the method sayHello in the service cn.raysonblog.shopservice.api.service.RpcShopService. No provider available for the service cn.raysonblog.shopservice.api.service.RpcShopService:1.0.0 from registry 192.168.0.20:8849 on the consumer 192.168.0.20 using the dubbo version 3.0.1. Please check if the providers have been started and registered. at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:288) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:59) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:265) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:89) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:82) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:51) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:82) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.filter.support.ConsumerContextFilter.invoke(ConsumerContextFilter.java:101) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:82) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$ClusterFilterInvoker.invoke(AbstractCluster.java:93) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:93) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationInvoker.invoke(MigrationInvoker.java:276) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:95) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.common.bytecode.proxy0.sayHello(proxy0.java) ~[dubbo-3.0.1.jar!/:3.0.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) ~[spring-aop-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at com.sun.proxy.$Proxy80.sayHello(Unknown Source) ~[?:?] at cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication.taskCycle(ShopServiceConsumerApplication.java:41) ~[classes!/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201] at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) ~[spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) [spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_201] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_201] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_201] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_201] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201] 2021-08-02 10:47:30 ERROR org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler:95 - Unexpected error occurred in scheduled task org.apache.dubbo.rpc.RpcException: Failed to invoke the method sayHello in the service cn.raysonblog.shopservice.api.service.RpcShopService. No provider available for the service cn.raysonblog.shopservice.api.service.RpcShopService:1.0.0 from registry 192.168.0.20:8849 on the consumer 192.168.0.20 using the dubbo version 3.0.1. Please check if the providers have been started and registered. at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.checkInvokers(AbstractClusterInvoker.java:288) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:59) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:265) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:89) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:82) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:51) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:82) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.filter.support.ConsumerContextFilter.invoke(ConsumerContextFilter.java:101) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$FilterChainNode.invoke(FilterChainBuilder.java:82) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$ClusterFilterInvoker.invoke(AbstractCluster.java:93) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:93) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.registry.client.migration.MigrationInvoker.invoke(MigrationInvoker.java:276) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:95) ~[dubbo-3.0.1.jar!/:3.0.1] at org.apache.dubbo.common.bytecode.proxy0.sayHello(proxy0.java) ~[dubbo-3.0.1.jar!/:3.0.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) ~[spring-aop-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at com.sun.proxy.$Proxy80.sayHello(Unknown Source) ~[?:?] at cn.raysonblog.shopserviceconsumer.ShopServiceConsumerApplication.taskCycle(ShopServiceConsumerApplication.java:41) ~[classes!/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_201] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_201] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_201] at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) ~[spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:93) [spring-context-5.2.15.RELEASE.jar!/:5.2.15.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_201] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_201] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_201] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_201] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_201] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_201] -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
