You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/09/08 03:21:55 UTC

[GitHub] [dubbo] houseyoung opened a new issue #8638: URL.equals抛出npe

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&timestamp=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出现了,而且在其他环境无法复现…请教可能是什么问题?
   
   补,我们的provider是dubbox 2.8.4,不过我们魔改了decode和encode,使得2.7.x和2.8.4可以互通,线上也有几个项目正常调用无异常。。就很奇怪为什么这个项目会报npe。
   最头痛的事,测试环境也没有出现,日志也一行都没有打,我们也不可能在线上环境做远程调试……现在完全没办法排查问题。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] houseyoung commented on issue #8638: URL.equals抛出npe

Posted by GitBox <gi...@apache.org>.
houseyoung commented on issue #8638:
URL: https://github.com/apache/dubbo/issues/8638#issuecomment-916788194


   已解决,我们用的是阿里云的mse做zk,mse的服务治理如果没开通,会写入一个空的remote.project.name字段到zk,只有key没有value,所以导致了npe。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] houseyoung commented on issue #8638: URL.equals抛出npe

Posted by GitBox <gi...@apache.org>.
houseyoung commented on issue #8638:
URL: https://github.com/apache/dubbo/issues/8638#issuecomment-909830469


   原因找到了,是provider出现了双重注册,一个ip注册了两个node导致的。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] houseyoung closed issue #8638: URL.equals抛出npe

Posted by GitBox <gi...@apache.org>.
houseyoung closed issue #8638:
URL: https://github.com/apache/dubbo/issues/8638


   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] houseyoung commented on issue #8638: URL.equals抛出npe

Posted by GitBox <gi...@apache.org>.
houseyoung commented on issue #8638:
URL: https://github.com/apache/dubbo/issues/8638#issuecomment-909830469


   原因找到了,是provider出现了双重注册,一个ip注册了两个node导致的。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] houseyoung closed issue #8638: URL.equals抛出npe

Posted by GitBox <gi...@apache.org>.
houseyoung closed issue #8638:
URL: https://github.com/apache/dubbo/issues/8638


   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] houseyoung removed a comment on issue #8638: URL.equals抛出npe

Posted by GitBox <gi...@apache.org>.
houseyoung removed a comment on issue #8638:
URL: https://github.com/apache/dubbo/issues/8638#issuecomment-909830469


   原因找到了,是provider出现了双重注册,一个ip注册了两个node导致的。


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] houseyoung closed issue #8638: URL.equals抛出npe

Posted by GitBox <gi...@apache.org>.
houseyoung closed issue #8638:
URL: https://github.com/apache/dubbo/issues/8638


   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org