Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] dubbo Provider列表变更通知consumer 消费端 出现NullPointerException bug #14196

Open
3 of 4 tasks
smalltalkhyb opened this issue May 16, 2024 · 1 comment
Open
3 of 4 tasks
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@smalltalkhyb
Copy link

smalltalkhyb commented May 16, 2024

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo 3.2.11 JDK 17

Steps to reproduce this issue

上线发布 Dubbo 服务提供者,服务提供者和消费者都只有一个POD实例

What you expected to happen

time: 2024-05-16T10:17:12.878479339+08:00
content: 2024-05-16 10:17:12,877 ERROR [nacos.publisher-com.alibaba.nacos.client.naming.event.InstancesChangeEvent] [TRACEID:] [c.a.n.c.n.NotifyCenter:208]}: Event callback exception:
java.lang.NullPointerException: null
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1693) ~[?:?]
at org.apache.dubbo.registry.client.DefaultServiceInstance.toURL(DefaultServiceInstance.java:294) ~[dubbo-3.2.11.jar!/:3.2.11]
at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.getServiceUrlsCache(ServiceInstancesChangedListener.java:407) ~[dubbo-3.2.11.jar!/:3.2.11]
at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.lambda$doOnEvent$5(ServiceInstancesChangedListener.java:234) ~[dubbo-3.2.11.jar!/:3.2.11]
at java.util.HashMap.computeIfAbsent(HashMap.java:1220) ~[?:?]
at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doOnEvent(ServiceInstancesChangedListener.java:232) ~[dubbo-3.2.11.jar!/:3.2.11]
at org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:125) ~[dubbo-3.2.11.jar!/:3.2.11]
at org.apache.dubbo.registry.nacos.NacosServiceDiscovery.handleEvent(NacosServiceDiscovery.java:245) ~[dubbo-3.2.11.jar!/:3.2.11]
at org.apache.dubbo.registry.nacos.NacosServiceDiscovery.access$000(NacosServiceDiscovery.java:65) ~[dubbo-3.2.11.jar!/:3.2.11]
at org.apache.dubbo.registry.nacos.NacosServiceDiscovery$NacosEventListener.onEvent(NacosServiceDiscovery.java:217) ~[dubbo-3.2.11.jar!/:3.2.11]
at com.alibaba.nacos.client.naming.event.InstancesChangeNotifier.onEvent(InstancesChangeNotifier.java:126) ~[nacos-client-2.2.1.jar!/:?]
at com.alibaba.nacos.client.naming.event.InstancesChangeNotifier.onEvent(InstancesChangeNotifier.java:42) ~[nacos-client-2.2.1.jar!/:?]
at com.alibaba.nacos.common.notify.DefaultPublisher.lambda$notifySubscriber$0(DefaultPublisher.java:199) ~[nacos-client-2.2.1.jar!/:?]
at com.alibaba.nacos.common.notify.DefaultPublisher.notifySubscriber(DefaultPublisher.java:206) [nacos-client-2.2.1.jar!/:?]
at com.alibaba.nacos.common.notify.DefaultPublisher.receiveEvent(DefaultPublisher.java:190) [nacos-client-2.2.1.jar!/:?]
at com.alibaba.nacos.common.notify.DefaultPublisher.openEventHandler(DefaultPublisher.java:112) [nacos-client-2.2.1.jar!/:?]
at com.alibaba.nacos.common.notify.DefaultPublisher.run(DefaultPublisher.java:95) [nacos-client-2.2.1.jar!/:?]

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@smalltalkhyb smalltalkhyb added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels May 16, 2024
@chickenlj
Copy link
Contributor

Please check if there are metadata cache file under ~/.dubbo/.metadata

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Status: Todo
Development

No branches or pull requests

2 participants