-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
consul registry: NullPointerException #3923
Comments
hi, could you tell me what configuration you declared for consul registry, I would like to help with it. |
I just open a pr which contains the integration test about consul registry. check this #3906 It seems when we covert healthService to URL, some services got a null meta variable, so NPE happens. I can solve it ASAP. |
@moriadry Hi buddy, How's it going |
yes, I check meta=null |
@byronzoz sorry for the delay reply, I'm just waiting for my integration test to be reviewed. I am trying to add a consul sample for Dubbo, to fix this bug, and to ensure we can use consul-registry well. apache/dubbo-samples#73 |
I will check and give you a feedback later @beiwei30 |
@beiwei30 @moriadry NPE has been solved. It seems to have problems. provider side: (service has started)
server side: (also started)
but when call service from consumer side, throw
with
And the IP(3.0.1.130) is unreachable from localhost.
[question]
It seems that the consumer side doesn't find the service from provider side. I found a phenomenon the service bind the ip to 3.0.1.130, rather than 10.20.16.200? |
Yes, in this way, you have to specify IP explicitly to |
[description]
simple test consul registry
java: 1.8
os: mac os
dubbo: 2.7.1
[problem]
I use zk as registry center, everything is fine. Now I change the registry to consul.
provider facade definition:
The service consumer side:
The service provider side: service started. Provider side uses dubbo as protocol. But consumer side throw NullPointerException as following:
[result]
Pls check consul registry implementation.
The text was updated successfully, but these errors were encountered: