houseyoung opened a new issue #8638:
URL: https://github.com/apache/dubbo/issues/8638
使用dubbo 2.7.13作为客户端时(2.7.10、2.7.12也都试过),reference注册时报出如下异常:
Failed to notify addresses for subscribe
consumer://172.20.9.10/XXXXXX?application=YYYYY&category=providers,configurators,routers&check=false&dubbo=2.0.2&init=false&interface=ZZZZZ&metadata-type=remote&methods=AAA,BBB,CCC&pid=1&release=2.7.13&revision=1.0.3-rel-SNAPSHOT&side=consumer&sticky=false&timeout=6000×tamp=1630303343085,
cause: null, dubbo version: 2.7.13, current host: 172.20.9.10
java.lang.NullPointerException: null
at org.apache.dubbo.common.URL.equals(URL.java:1693)
at java.util.HashMap.getNode(HashMap.java:572) at
java.util.HashMap.containsKey(HashMap.java:596) at
java.util.HashSet.contains(HashSet.java:204) at
org.apache.dubbo.registry.integration.RegistryDirectory.toInvokers(RegistryDirectory.java:312)
at
org.apache.dubbo.registry.integration.RegistryDirectory.refreshInvoker(RegistryDirectory.java:190)
at
org.apache.dubbo.registry.integration.RegistryDirectory.refreshOverrideAndInvoker(RegistryDirectory.java:150)
at
org.apache.dubbo.registry.integration.RegistryDirectory.notify(RegistryDirectory.java:132)
at
org.apache.dubbo.registry.support.AbstractRegistry.notify(AbstractRegistry.java:429)
at
org.apache.dubbo.registry.support.FailbackRegistry.doNotify(FailbackRegistry.java:372)
1693行是if (!parameters.get(key).equals(other.parameters.get(key))) {
我理解这个地方是不可能出现npe的,而且这个报错不是所有reference都出现,只有其中几个reference出现了,而且在其他环境无法复现…请教可能是什么问题?
--
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]