org.springframework.beans.factory.BeanCreationException
来源:互联网 发布:apk源码编译软件 编辑:程序博客网 时间:2024/05/16 17:14
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×tamp=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×tamp=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
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×tamp=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
0 0
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException:
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException:
- org.springframework.beans.factory.BeanCreationException
- Linux下运行java文件出现 -Xlint:unchecked
- js
- 原型模式
- 线程的应用之车票
- 3.1.2 视图实例演示-登录页面
- org.springframework.beans.factory.BeanCreationException
- gzip解压
- JAVA修饰符的详细介绍(public protect,default, private,final,abstract)
- 字符串值一旦初始化就不会被改变
- PAT-B 1030. 完美数列
- Centos6.6中Apache服务器的安装
- <Python进阶读书笔记>之(一) 函数不定参数传递
- 正则表达
- oracle v$session 详解