liu1571168201 2019-04-12 16:15 采纳率: 0%
浏览 1575

dubbo在项目运行时报错:

com.alibaba.dubbo.config.spring.AnnotationBean 2019-04-12 03:50:27 [DUBBO] Failed to init remote service reference at filed tbItemDubboServiceImpl in class com.ego.manage.service.impl.TbItemServiceImpl, cause: Failed to check the status of the service com.ego.dubbo.service.TbItemDubboService. No provider available for the service com.ego.dubbo.service.TbItemDubboService from the url zookeeper://192.168.21.128:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-manage&dubbo=2.5.3&interface=com.ego.dubbo.service.TbItemDubboService&methods=updItemStatus,show&pid=15716&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1555055418413 to the consumer 192.168.21.1 use dubbo version 2.5.3, dubbo version: 2.5.3, current host: 192.168.21.1
java.lang.IllegalStateException: Failed to check the status of the service com.ego.dubbo.service.TbItemDubboService. No provider available for the service com.ego.dubbo.service.TbItemDubboService from the url zookeeper://192.168.21.128:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-manage&dubbo=2.5.3&interface=com.ego.dubbo.service.TbItemDubboService&methods=updItemStatus,show&pid=15716&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1555055418413 to the consumer 192.168.21.1 use dubbo version 2.5.3
at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420)
at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300)
at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138)
at com.alibaba.dubbo.config.spring.AnnotationBean.refer(AnnotationBean.java:302)
at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessBeforeInitialization(AnnotationBean.java:233)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

启动dubbo也是正常的,很无奈不知道怎么回事。XML的路径也对的
  • 写回答

1条回答 默认 最新

  • purensong333 2019-04-12 16:19
    关注

    报错很明显了,找不到**服务提供者**

    _No provider available for the service com.ego.dubbo.service.TbItemDubboService from the url zookeeper://192.168.21.128:2181/com.alibaba.dubbo.registry.RegistryService?application=dubbo-manage&dubbo=2.5.3&interface=com.ego.dubbo.service.TbItemDubboService&methods=updItemStatus,show&pid=15716&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1555055418413 to the consumer 192.168.21.1 use dubbo version 2.5.3, dubbo version: 2.5.3, current host: 192.168.21.1 _

    试试,在consumer.xml 中将check设置为false

    评论

报告相同问题?

悬赏问题

  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 LiBeAs的带隙等于0.997eV,计算阴离子的N和P
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 来真人,不要ai!matlab有关常微分方程的问题求解决,
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算