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

ooppoo 发布于 2016/11/20 17:25
阅读 844
收藏 0

提供者放置到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

加载中
0
Guest_Main
Guest_Main
没有服务提供者吧
xiaobendan_LY
xiaobendan_LY
回复 @ooppoo : 怎么解决的你要说来啊
o
ooppoo
回复@Guest_Main : 有的,是ip问题。已解决了
返回顶部
顶部