org.springframework.beans.factory.BeanCreationException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mgPlatformUserServiceImpl': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.zx.sms.service.MgPlatformUserService. No provider available for the service com.zx.sms.service.MgPlatformUserService:1.0 from the url zookeeper://192.168.100.61:30001/com.alibaba.dubbo.registry.RegistryService?application=dubbo-service-consumer&dubbo=2.8.5&interface=com.zx.sms.service.MgPlatformUserService&methods=deleteUserByPhone,queryMGRByRoleId,selectUserAllByRole,selectUserAllByChannelSign,updatePWD,selectUrToRoleByUserId,insertUserInfo,updateCounState,selectMgPlatformUserByPhone,selectDateidByUserid,selectUserNameformUser,deleteUrByUrid,selectCheckUser,selectMgPlatformUser_new,updateValidDate,selectUserPhoneExist,selectMgPlatformUser,selectInsertUser,updateUserInfo,insertUrInfo&pid=17696&revision=1.0&side=consumer&timeout=120000&timestamp=1469154606192&version=1.0 to the consumer 192.168.100.60 use dubbo version 2.8.5
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1517)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)
        ... 28 more
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.zx.sms.service.MgPlatformUserService. No provider available for the service com.zx.sms.service.MgPlatformUserService:1.0 from the url zookeeper://192.168.100.61:30001/com.alibaba.dubbo.registry.RegistryService?application=dubbo-service-consumer&dubbo=2.8.5&interface=com.zx.sms.service.MgPlatformUserService&methods=deleteUserByPhone,queryMGRByRoleId,selectUserAllByRole,selectUserAllByChannelSign,updatePWD,selectUrToRoleByUserId,insertUserInfo,updateCounState,selectMgPlatformUserByPhone,selectDateidByUserid,selectUserNameformUser,deleteUrByUrid,selectCheckUser,selectMgPlatformUser_new,updateValidDate,selectUserPhoneExist,selectMgPlatformUser,selectInsertUser,updateUserInfo,insertUrInfo&pid=17696&revision=1.0&side=consumer&timeout=120000&timestamp=1469154606192&version=1.0 to the consumer 192.168.100.60 use dubbo version 2.8.5
        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.ReferenceBean.getObject(ReferenceBean.java:65)
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
        ... 36 more




解决方案:
我的问题是第二点服务端applicationContext.xml的dubbo-provicder.xml被注调导致的。

1,查看客户端dubbo-concumer.xml和dubbo-provicder.xml 暴漏的接口是否缺少
2,看看客户端applicationContext.xml和服务端的applicationContext.xml是否分别引入dubbo-concumer.xml和dubbo-provicder.xml

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值