bubbo消费者连接zookeeper获取服务时connection timed out

发布于 2021-11-29 11:01:02 字数 3862 浏览 832 评论 3

提供者放置到zookeeper注册中心后用消费者去获取链接,结果报了个connection timed out还有报了一个 org.springframework.beans.factory.BeanCreationException异常,如下。请大神帮帮忙,三天了都没解决啊

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.penngo.dubbo.service.LoginService. No provider available for the service com.penngo.dubbo.service.LoginService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=consumer-penngo-app&check=false&connected=true&dubbo=2.4.11&inside.invoker.count=1&inside.invokers=dubbo%3A%2F%2F192.168.1.224%3A20880%2Fcom.penngo.dubbo.service.LoginService%3Fanyhost%3Dtrue%26application%3Dprovider-penngo-app%26dubbo%3D2.4.11%26interface%3Dcom.penngo.dubbo.service.LoginService%26loadbalance%3Droundrobin%26methods%3Dlogin%26owner%3Dpenngo%26pid%3D3516%26side%3Dprovider%26timestamp%3D1479629980988&interface=com.penngo.dubbo.service.LoginService&loadbalance=roundrobin&methods=login&owner=penngo&pid=6400&side=consumer&timestamp=1479630020391 to the consumer 192.168.1.224 use dubbo version 2.4.11
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:127)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:91)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1288)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:217)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
at com.penngo.dubbo.client.Client.main(Client.java:14)
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.penngo.dubbo.service.LoginService. No provider available for the service com.penngo.dubbo.service.LoginService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=consumer-penngo-app&check=false&connected=true&dubbo=2.4.11&inside.invoker.count=1&inside.invokers=dubbo%3A%2F%2F192.168.1.224%3A20880%2Fcom.penngo.dubbo.service.LoginService%3Fanyhost%3Dtrue%26application%3Dprovider-penngo-app%26dubbo%3D2.4.11%26interface%3Dcom.penngo.dubbo.service.LoginService%26loadbalance%3Droundrobin%26methods%3Dlogin%26owner%3Dpenngo%26pid%3D3516%26side%3Dprovider%26timestamp%3D1479629980988&interface=com.penngo.dubbo.service.LoginService&loadbalance=roundrobin&methods=login&owner=penngo&pid=6400&side=consumer&timestamp=1479630020391 to the consumer 192.168.1.224 use dubbo version 2.4.11
at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:422)
at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:303)
at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138)
at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:121)
... 9 more

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

奢华的一滴泪 2021-12-03 12:52:24

回复
@Guest_Main : 有的,是ip问题。已解决了

奢华的一滴泪 2021-12-02 14:56:57

回复
怎么解决的你要说来啊

情痴 2021-11-30 18:37:18

没有服务提供者吧

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文