dubbo相关的问题

Yock- 2017-12-28 12:20:40
用的SSM框架,结合dubbo和zookeeper
报如下错误

严重:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentCategoryController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.e3mall.content.service.ContentCategoryService cn.e3mall.controller.ContentCategoryController.contentCategoryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentCategoryService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service cn.e3mall.content.service.ContentCategoryService. No provider available for the service cn.e3mall.content.service.ContentCategoryService from the url zookeeper://192.168.25.128:2181/com.alibaba.dubbo.registry.RegistryService?application=e3-manager-web&dubbo=2.5.3&interface=cn.e3mall.content.service.ContentCategoryService&methods=getContentCategoryList&pid=2964&revision=0.0.1-SNAPSHOT&side=consumer×tamp=1514390547020 to the consumer 192.168.25.1 use dubbo version 2.5.3
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.e3mall.content.service.ContentCategoryService cn.e3mall.controller.ContentCategoryController.contentCategoryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentCategoryService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service cn.e3mall.content.service.ContentCategoryService. No provider available for the service cn.e3mall.content.service.ContentCategoryService from the url zookeeper://192.168.25.128:2181/com.alibaba.dubbo.registry.RegistryService?application=e3-manager-web&dubbo=2.5.3&interface=cn.e3mall.content.service.ContentCategoryService&methods=getContentCategoryList&pid=2964&revision=0.0.1-SNAPSHOT&side=consumer×tamp=1514390547020 to the consumer 192.168.25.1 use dubbo version 2.5.3
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentCategoryService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service cn.e3mall.content.service.ContentCategoryService. No provider available for the service cn.e3mall.content.service.ContentCategoryService from the url zookeeper://192.168.25.128:2181/com.alibaba.dubbo.registry.RegistryService?application=e3-manager-web&dubbo=2.5.3&interface=cn.e3mall.content.service.ContentCategoryService&methods=getContentCategoryList&pid=2964&revision=0.0.1-SNAPSHOT&side=consumer×tamp=1514390547020 to the consumer 192.168.25.1 use dubbo version 2.5.3
Caused by: java.lang.IllegalStateException: Failed to check the status of the service cn.e3mall.content.service.ContentCategoryService. No provider available for the service cn.e3mall.content.service.ContentCategoryService from the url zookeeper://192.168.25.128:2181/com.alibaba.dubbo.registry.RegistryService?application=e3-manager-web&dubbo=2.5.3&interface=cn.e3mall.content.service.ContentCategoryService&methods=getContentCategoryList&pid=2964&revision=0.0.1-SNAPSHOT&side=consumer×tamp=1514390547020 to the consumer 192.168.25.1 use dubbo version 2.5.3
严重: Servlet threw load() exception
java.lang.IllegalStateException: Failed to check the status of the service cn.e3mall.content.service.ContentCategoryService. No provider available for the service cn.e3mall.content.service.ContentCategoryService from the url zookeeper://192.168.25.128:2181/com.alibaba.dubbo.registry.RegistryService?application=e3-manager-web&dubbo=2.5.3&interface=cn.e3mall.content.service.ContentCategoryService&methods=getContentCategoryList&pid=2964&revision=0.0.1-SNAPSHOT&side=consumer×tamp=1514390547020 to the consumer 192.168.25.1 use dubbo version 2.5.3

项目启动的时候报如上错误,检查了applicationContext-service.xml中暴露的服务接口和springmvc.xml中引用dubbo服务大小写均没有写错。
好心大神路人帮忙看看
...全文
863 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
maradona1984 2018-03-13
  • 打赏
  • 举报
回复
哥们几个月都过去了,你这问题还没搞定?看看dubbo的控制台服务是否注册 先把dubbo服务的配置check="false" 然后再一步一步看
baidu_38649964 2018-03-13
  • 打赏
  • 举报
回复
我看的话,是服务提供方未将对象实例化,你看一下类上的注解有没有错
Yock- 2018-03-13
  • 打赏
  • 举报
回复
引用 1 楼 kaisens 的回复:
检查大小写没错的化再检查zookeeper开没有,ip和端口号写对没,当然还有防火墙,看看是不是防火墙问题
这些都检查过了,没有错误,防火墙已经关闭, 我是用的是JDK8 是不是我的dubbo-admin.war版本是2.5.4,是不是版本的问题、?
Salted-fish 2018-01-20
  • 打赏
  • 举报
回复
把你的dubbo配置贴出来。
戎码一生灬 2018-01-09
  • 打赏
  • 举报
回复
引用 1 楼 kaisens 的回复:
检查大小写没错的化再检查zookeeper开没有,ip和端口号写对没,当然还有防火墙,看看是不是防火墙问题
啤酒饮料矿泉水,花生瓜子八宝粥了~来这位乘客,把腿收一下~
戎码一生灬 2018-01-09
  • 打赏
  • 举报
回复
引用 2 楼 skdandsxt 的回复:
目测二楼是一位高僧
啤酒饮料矿泉水,花生瓜子八宝粥了~来这位乘客,把腿收一下~
无涯子Gary 2018-01-08
  • 打赏
  • 举报
回复
目测二楼是一位高僧
kaisens 2018-01-06
  • 打赏
  • 举报
回复
检查大小写没错的化再检查zookeeper开没有,ip和端口号写对没,当然还有防火墙,看看是不是防火墙问题

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧