bubbo消费者连接zookeeper获取服务时connection timed out
提供者放置到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×tamp=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×tamp=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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
回复
@Guest_Main : 有的,是ip问题。已解决了
回复
怎么解决的你要说来啊
没有服务提供者吧