报错信息:
ERROR org.apache.dubbo.metadata.report.support.AbstractMetadataReport.storeProviderMetadataTask(AbstractMetadataReport.java:289) [TID: N/A] -- [DUBBO] Failed to put provider metadata org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@3e1e3807 in FullServiceDefinition{parameters=org.apache.dubbo.common.url.component.URLParam$URLParamMap@df7036ad} ServiceDefinition [canonicalName=com.XXX, codeSource=XXX-SNAPSHOT.jar, methods=[MethodDefinition [name=getServantDetails, parameterTypes=[java.lang.String], returnType=com.XXX]]], cause: Failed to put org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@3e1e3807 to nacos {"parameters":{"side":"provider","interface":"com.XXX","pid":"10249","metadata-type":"remote","application":"XXX,"dubbo":"2.0.2","release":"3.0.8","anyhost":"true","methods":"getServantDetails","logger":"slf4j","deprecated":"false","service-name-mapping":"true","register-mode":"all","qos.enable":"false","generic":"false","bind.port":"31001","revision":"2.1.1-SNAPSHOT","bind.ip":"XX.XX.XXX.XX","background":"false","dynamic":"true","service.filter":"-exception","timestamp":"1655786998155"},"canonicalName":"com.XXX","codeSource":"XXX-SNAPSHOT.jar","methods":[{"name":"getServantDetails","parameterTypes":["java.lang.String"],"returnType":"com.XXX","annotations":[]}],"types":[{"type":"java.util.Date"},{"type":"com.XXX","properties":{"serviceType":"java.lang.String","dtEmployment":"java.util.Date","gender":"java.lang.String","description":"java.lang.String","dtEnter":"java.util.Date","userName":"java.lang.String","servantId":"java.lang.String","skilled":"java.lang.String","feeAmt":"java.lang.Integer","duration":"java.lang.Integer","serviceCount":"java.lang.Integer","dtUpdate":"java.util.Date","dtServiceTime":"java.util.Date","userTag":"java.lang.String","aptitude":"java.lang.String","shortDesc":"java.lang.String","iconUrl":"java.lang.String","dtCreate":"java.util.Date","status":"java.lang.String"}},{"type":"java.lang.String"},{"type":"java.lang.Integer"}],"annotations":[]}, cause: publish nacos metadata failed, dubbo version: 3.0.8, current host: XX.XX.XXX.XX
java.lang.RuntimeException: Failed to put org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@3e1e3807 to nacos {"parameters":{"side":"provider","interface":"com.XXX","pid":"10249","metadata-type":"remote","application":"XXX","dubbo":"2.0.2","release":"3.0.8","anyhost":"true","methods":"getServantDetails","logger":"slf4j","deprecated":"false","service-name-mapping":"true","register-mode":"all","qos.enable":"false","generic":"false","bind.port":"31001","revision":"XXX-SNAPSHOT","bind.ip":"XX.XX.XXX.XX","background":"false","dynamic":"true","service.filter":"-exception","timestamp":"1655786998155"},"canonicalName":"com.XXX","codeSource":"XXX-SNAPSHOT.jar","methods":[{"name":"getServantDetails","parameterTypes":["java.lang.String"],"returnType":"com.XXX","annotations":[]}],"types":[{"type":"java.util.Date"},{"type":"com.XXX","properties":{"serviceType":"java.lang.String","dtEmployment":"java.util.Date","gender":"java.lang.String","description":"java.lang.String","dtEnter":"java.util.Date","userName":"java.lang.String","servantId":"java.lang.String","skilled":"java.lang.String","feeAmt":"java.lang.Integer","duration":"java.lang.Integer","serviceCount":"java.lang.Integer","dtUpdate":"java.util.Date","dtServiceTime":"java.util.Date","userTag":"java.lang.String","aptitude":"java.lang.String","shortDesc":"java.lang.String","iconUrl":"java.lang.String","dtCreate":"java.util.Date","status":"java.lang.String"}},{"type":"java.lang.String"},{"type":"java.lang.Integer"}],"annotations":[]}, cause: publish nacos metadata failed
at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.storeMetadata(NacosMetadataReport.java:343)
at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.doStoreProviderMetadata(NacosMetadataReport.java:178)
at org.apache.dubbo.metadata.report.support.AbstractMetadataReport.storeProviderMetadataTask(AbstractMetadataReport.java:283)
at org.apache.dubbo.metadata.report.support.AbstractMetadataReport.lambda$storeProviderMetadata$0(AbstractMetadataReport.java:270)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: publish nacos metadata failed
at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.storeMetadata(NacosMetadataReport.java:339)
... 6 common frames omitted
报错信息: ERROR org.apache.dubbo.metadata.report.support.AbstractMetadataReport.storeProviderMetadataTask(AbstractMetadataReport.java:289) [TID: N/A] -- [DUBBO] Failed to put provider metadata org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@3e1e3807 in FullServiceDefinition{parameters=org.apache.dubbo.common.url.component.URLParam$URLParamMap@df7036ad} ServiceDefinition [canonicalName=com.XXX, codeSource=XXX-SNAPSHOT.jar, methods=[MethodDefinition [name=getServantDetails, parameterTypes=[java.lang.String], returnType=com.XXX]]], cause: Failed to put org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@3e1e3807 to nacos {"parameters":{"side":"provider","interface":"com.XXX","pid":"10249","metadata-type":"remote","application":"XXX,"dubbo":"2.0.2","release":"3.0.8","anyhost":"true","methods":"getServantDetails","logger":"slf4j","deprecated":"false","service-name-mapping":"true","register-mode":"all","qos.enable":"false","generic":"false","bind.port":"31001","revision":"2.1.1-SNAPSHOT","bind.ip":"XX.XX.XXX.XX","background":"false","dynamic":"true","service.filter":"-exception","timestamp":"1655786998155"},"canonicalName":"com.XXX","codeSource":"XXX-SNAPSHOT.jar","methods":[{"name":"getServantDetails","parameterTypes":["java.lang.String"],"returnType":"com.XXX","annotations":[]}],"types":[{"type":"java.util.Date"},{"type":"com.XXX","properties":{"serviceType":"java.lang.String","dtEmployment":"java.util.Date","gender":"java.lang.String","description":"java.lang.String","dtEnter":"java.util.Date","userName":"java.lang.String","servantId":"java.lang.String","skilled":"java.lang.String","feeAmt":"java.lang.Integer","duration":"java.lang.Integer","serviceCount":"java.lang.Integer","dtUpdate":"java.util.Date","dtServiceTime":"java.util.Date","userTag":"java.lang.String","aptitude":"java.lang.String","shortDesc":"java.lang.String","iconUrl":"java.lang.String","dtCreate":"java.util.Date","status":"java.lang.String"}},{"type":"java.lang.String"},{"type":"java.lang.Integer"}],"annotations":[]}, cause: publish nacos metadata failed, dubbo version: 3.0.8, current host: XX.XX.XXX.XX java.lang.RuntimeException: Failed to put org.apache.dubbo.metadata.report.identifier.MetadataIdentifier@3e1e3807 to nacos {"parameters":{"side":"provider","interface":"com.XXX","pid":"10249","metadata-type":"remote","application":"XXX","dubbo":"2.0.2","release":"3.0.8","anyhost":"true","methods":"getServantDetails","logger":"slf4j","deprecated":"false","service-name-mapping":"true","register-mode":"all","qos.enable":"false","generic":"false","bind.port":"31001","revision":"XXX-SNAPSHOT","bind.ip":"XX.XX.XXX.XX","background":"false","dynamic":"true","service.filter":"-exception","timestamp":"1655786998155"},"canonicalName":"com.XXX","codeSource":"XXX-SNAPSHOT.jar","methods":[{"name":"getServantDetails","parameterTypes":["java.lang.String"],"returnType":"com.XXX","annotations":[]}],"types":[{"type":"java.util.Date"},{"type":"com.XXX","properties":{"serviceType":"java.lang.String","dtEmployment":"java.util.Date","gender":"java.lang.String","description":"java.lang.String","dtEnter":"java.util.Date","userName":"java.lang.String","servantId":"java.lang.String","skilled":"java.lang.String","feeAmt":"java.lang.Integer","duration":"java.lang.Integer","serviceCount":"java.lang.Integer","dtUpdate":"java.util.Date","dtServiceTime":"java.util.Date","userTag":"java.lang.String","aptitude":"java.lang.String","shortDesc":"java.lang.String","iconUrl":"java.lang.String","dtCreate":"java.util.Date","status":"java.lang.String"}},{"type":"java.lang.String"},{"type":"java.lang.Integer"}],"annotations":[]}, cause: publish nacos metadata failed at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.storeMetadata(NacosMetadataReport.java:343) at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.doStoreProviderMetadata(NacosMetadataReport.java:178) at org.apache.dubbo.metadata.report.support.AbstractMetadataReport.storeProviderMetadataTask(AbstractMetadataReport.java:283) at org.apache.dubbo.metadata.report.support.AbstractMetadataReport.lambda$storeProviderMetadata$0(AbstractMetadataReport.java:270) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.RuntimeException: publish nacos metadata failed at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.storeMetadata(NacosMetadataReport.java:339) ... 6 common frames omitted
依赖: nacos-client版本:2.1.0