Failed to check the status of the service com.bjucloud.usercenter.service.StoreApprovalRecordExportS

dubbo运行成功,但是显示报错:

Failed to check the status of the service com.bjucloud.usercenter.service.StoreApprovalRecordExportService. No provider available for the service mop-center/com.bjucloud.usercenter.service.StoreApprovalRecordExportService:3.0.0-SNAPSHOT from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=lb-eoc-dev&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&register.ip=172.15.9.23&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT to the consumer 172.15.9.23 use dubbo version 2.0.1

以下是控制台显示报错信息

2022-06-02 09:45:49,433 INFO  com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.subscribe:295 -  [DUBBO] Subscribe: consumer://172.15.9.23/com.bjucloud.usercenter.service.StoreApprovalRecordExportService?application=lb-eoc-dev&category=providers,configurators,routers&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT, dubbo version: 2.0.1, current host: 172.15.9.23
2022-06-02 09:45:49,441 INFO  com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.notify:383 -  [DUBBO] Notify urls for subscribe url consumer://172.15.9.23/com.bjucloud.usercenter.service.StoreApprovalRecordExportService?application=lb-eoc-dev&category=providers,configurators,routers&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT, urls: [empty://172.15.9.23/com.bjucloud.usercenter.service.StoreApprovalRecordExportService?application=lb-eoc-dev&category=providers&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT, empty://172.15.9.23/com.bjucloud.usercenter.service.StoreApprovalRecordExportService?application=lb-eoc-dev&category=configurators&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT, empty://172.15.9.23/com.bjucloud.usercenter.service.StoreApprovalRecordExportService?application=lb-eoc-dev&category=routers&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT], dubbo version: 2.0.1, current host: 172.15.9.23
2022-06-02 09:45:49,443 WARN  org.springframework.web.context.support.XmlWebApplicationContext.refresh:551 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storeApprovalRecordController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storeApprovalRecordExportService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.bjucloud.usercenter.service.StoreApprovalRecordExportService. No provider available for the service mop-center/com.bjucloud.usercenter.service.StoreApprovalRecordExportService:3.0.0-SNAPSHOT from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=lb-eoc-dev&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&register.ip=172.15.9.23&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT to the consumer 172.15.9.23 use dubbo version 2.0.1
2022-06-02 09:45:49,443 ERROR org.springframework.web.servlet.DispatcherServlet.initServletBean:502 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storeApprovalRecordController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storeApprovalRecordExportService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.bjucloud.usercenter.service.StoreApprovalRecordExportService. No provider available for the service mop-center/com.bjucloud.usercenter.service.StoreApprovalRecordExportService:3.0.0-SNAPSHOT from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=lb-eoc-dev&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&register.ip=172.15.9.23&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT to the consumer 172.15.9.23 use dubbo version 2.0.1
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:321)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
	at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:171)
	at javax.servlet.GenericServlet.init(GenericServlet.java:158)
	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1038)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4997)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1692)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:465)
	at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:415)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
	at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
	at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
	at sun.rmi.transport.Transport$1.run(Transport.java:200)
	at sun.rmi.transport.Transport$1.run(Transport.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'storeApprovalRecordExportService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.bjucloud.usercenter.service.StoreApprovalRecordExportService. No provider available for the service mop-center/com.bjucloud.usercenter.service.StoreApprovalRecordExportService:3.0.0-SNAPSHOT from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=lb-eoc-dev&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&register.ip=172.15.9.23&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT to the consumer 172.15.9.23 use dubbo version 2.0.1
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:185)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1636)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:275)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1136)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:518)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:496)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:627)
	at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:171)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:318)
	... 67 more
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.bjucloud.usercenter.service.StoreApprovalRecordExportService. No provider available for the service mop-center/com.bjucloud.usercenter.service.StoreApprovalRecordExportService:3.0.0-SNAPSHOT from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?application=lb-eoc-dev&dubbo=2.0.1&group=mop-center&interface=com.bjucloud.usercenter.service.StoreApprovalRecordExportService&methods=getBySourceId,provincesRejected,insertSelectiveRecord,areaAgree,provincesAgree,getByParamsWithPage,areaRejected&pid=13764&register.ip=172.15.9.23&revision=5.0.0-SNAPSHOT&side=consumer&timeout=60000&timestamp=1654134349423&version=3.0.0-SNAPSHOT to the consumer 172.15.9.23 use dubbo version 2.0.1
	at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:422)
	at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:333)
	at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:163)
	at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178)
	... 82 more
[2022-06-02 09:45:49,477] Artifact eoc-web:war exploded: Artifact is deployed successfully
[2022-06-02 09:45:49,477] Artifact eoc-web:war exploded: Deploy took 45,470 milliseconds


解决方案:
发现是在配置文件里没有dev环境的配置,复制prd环境下的到dev环境下
在这里插入图片描述
在这里插入图片描述
随便放在dev对应的配置文件下任何一个位置,记得不要提交你修改后的配置文件

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值