jdk 1.8_202 nacos服务使用2.1.2 单机纯净版没改动
相关jar包 org.apache.dubbo.dubbo-spring-boot-starter:3.1.3 com.alibaba.nacos.nacos-client:2.1.2 org.springframework.boot.spring-boot-starter:2.7.6
application.yml spring: application: name: test dubbo: application: register-consumer: true qos-enable: false registry: address: nacos://127.0.0.1:8848 use-as-config-center: false register-mode: interface simplified: true config-center: default: false metadata-report: address: nacos://127.0.0.1:8848 consumer: check: false
主启动类标注了@EnableDubbo
@DubboService使用这个注解,被加载的类出现警告
2022-12-04 20:32:00.696 WARN 20608 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Ignore empty notify urls for subscribe url provider://192.168.1.10:20880/cn.windy.service.Test?anyhost=true&application=test&background=false&bind.ip=192.168.1.10&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=cn.windy.service.Test&ipv6=2409:8a44:74:a340:5164:513f:a809:2fd&methods=msg&pid=20608&qos.enable=false®ister.consumer=true&release=3.1.3&side=provider×tamp=1670157116436, dubbo version: 3.1.3, current host: 192.168.1.10, error code: 1-4. This may be caused by , go to https://dubbo.apache.org/faq/1/4 to find instructions.
2022-12-04 20:32:00.696 WARN 20608 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Ignore empty notify urls for subscribe url provider://192.168.1.10:20880/cn.windy.service.Test?anyhost=true&application=test&background=false&bind.ip=192.168.1.10&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=cn.windy.service.Test&ipv6=2409:8a44:74:a340:5164:513f:a809:2fd&methods=msg&pid=20608&qos.enable=false®ister.consumer=true&release=3.1.3&side=provider×tamp=1670157116436, dubbo version: 3.1.3, current host: 192.168.1.10, error code: 1-4. This may be caused by , go to https://dubbo.apache.org/faq/1/4 to find instructions.
2022-12-04 20:32:00.746 WARN 20608 --- [ main] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Ignore empty notify urls for subscribe url provider://192.168.1.10:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=test&background=false&bind.ip=192.168.1.10&bind.port=20880&category=configurators&check=false&connections=1&corethreads=2&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=test&interface=org.apache.dubbo.metadata.MetadataService&ipv6=2409:8a44:74:a340:5164:513f:a809:2fd&methods=exportInstanceMetadata,getAndListenInstanceMetadata,getExportedServiceURLs,getExportedURLs,getExportedURLs,getExportedURLs,getExportedURLs,getExportedURLs,getInstanceMetadataChangedListenerMap,getMetadataInfo,getMetadataInfos,getMetadataURL,getServiceDefinition,getServiceDefinition,getSubscribedURLs,isMetadataService,serviceName,toSortedStrings,toSortedStrings,version&pid=20608&qos.enable=false®ister=false®ister.consumer=true&release=3.1.3&revision=3.1.3&side=provider&threadpool=cached&threads=100×tamp=1670157120726&version=1.0.0, dubbo version: 3.1.3, current host: 192.168.1.10, error code: 1-4. This may be caused by , go to https://dubbo.apache.org/faq/1/4 to find instructions.
2022-12-04 20:32:01.186 WARN 20608 --- [tion-0-thread-1] o.a.dubbo.registry.nacos.NacosRegistry : [DUBBO] Ignore empty notify urls for subscribe url provider://192.168.1.10:20880/cn.windy.service.Test?anyhost=true&application=test&background=false&bind.ip=192.168.1.10&bind.port=20880&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=cn.windy.service.Test&ipv6=2409:8a44:74:a340:5164:513f:a809:2fd&methods=msg&pid=20608&qos.enable=false®ister.consumer=true&release=3.1.3&side=provider×tamp=1670157116436, dubbo version: 3.1.3, current host: 192.168.1.10, error code: 1-4. This may be caused by , go to https://dubbo.apache.org/faq/1/4 to find instructions.
原提问者GitHub用户673885125
cn.windy.service.Test 这个服务在 nacos 注册中心上没有 provider 了,请检查是否符合预期。
如果调用正常的话可以忽略
原回答者GitHub用户AlbumenJ
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。