关于一个dubbo项目,zookeeper和spring-boot的bean的问题,详细情况下面说明

是这样的:一开始运行的好好的,但是中途我安装了一个wifi共享精灵,就会报出如下错误,之后卸载掉又会恢复正常,这是为什呢?
异常情况如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderController' defined in file [C:\Users\shengcl\Documents\workspace-sts-3.7.3.RELEASE\P160309\ouyeel\ouyeel-web-protal\target\classes\com\ouyeel\controller\OrderController.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) ~[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:11

0

1个回答

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderController' defined in file [C:\Users\shengcl\Documents\workspace-sts-3.7.3.RELEASE\P160309\ouyeel\ouyeel-web-protal\target\classes\com\ouyeel\controller\OrderController.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) ~[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180) [spring-boot-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at com.ouyeel.ApplicationBootstrap.main(ApplicationBootstrap.java:10) [classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_45]
at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_45]
at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:478) [spring-boot-maven-plugin-1.3.3.RELEASE.jar:1.3.3.RELEASE]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_45]
Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessBeforeInitialization(AnnotationBean.java:253) ~[dubbo-2.8.4.jar:2.8.4]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.5.RELEASE.jar:4.2.5.RELEASE]
... 21 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420) ~[dubbo-2.8.4.jar:2.8.4]
at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300) ~[dubbo-2.8.4.jar:2.8.4]
at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138) ~[dubbo-2.8.4.jar:2.8.4]
at com.alibaba.dubbo.config.spring.AnnotationBean.refer(AnnotationBean.java:317) ~[dubbo-2.8.4.jar:2.8.4]
at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessBeforeInitialization(AnnotationBean.java:246) ~[dubbo-2.8.4.jar:2.8.4]
... 24 common frames omitted

2016-04-19 14:33:28.799 INFO 5624 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/C:/Users/shengcl/Documents/workspace-sts-3.7.3.RELEASE/P160309/ouyeel/ouyeel-web-protal/target/classes/, file:/C:/Users/shengcl/.m2/repository/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.0.32/tomcat-embed-core-8.0.32.jar, file:/C:/Users/shengcl/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar, file:/C:/Users/shengcl/.m2/repository/org/jboss/spec/javax/el/jboss-el-api_3.0_spec/1.0.0.Final/jboss-el-api_3.0_spec-1.0.0.Final.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-thymeleaf/1.3.3.RELEASE/spring-boot-starter-thymeleaf-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/1.3.3.RELEASE/spring-boot-autoconfigure-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/github/jsqlparser/jsqlparser/0.9.1/jsqlparser-0.9.1.jar, file:/C:/Users/shengcl/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar, file:/C:/Users/shengcl/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.6.5/jackson-databind-2.6.5.jar, file:/C:/Users/shengcl/.m2/repository/org/thymeleaf/thymeleaf-spring4/2.1.4.RELEASE/thymeleaf-spring4-2.1.4.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.6.5/jackson-annotations-2.6.5.jar, file:/C:/Users/shengcl/.m2/repository/com/alibaba/dubbo/2.8.4/dubbo-2.8.4.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/xplat-core/0.0.1-SNAPSHOT/xplat-core-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/org/slf4j/slf4j-api/1.7.16/slf4j-api-1.7.16.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-core/4.2.5.RELEASE/spring-core-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/xplat-dubbo-consumer/0.0.1-SNAPSHOT/xplat-dubbo-consumer-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter/1.3.3.RELEASE/spring-boot-starter-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar, file:/C:/Users/shengcl/.m2/repository/org/freemarker/freemarker/2.3.23/freemarker-2.3.23.jar, file:/C:/Users/shengcl/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-web/4.2.5.RELEASE/spring-web-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/thymeleaf/thymeleaf/2.1.4.RELEASE/thymeleaf-2.1.4.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/xplat-dubbo-api/0.0.1-SNAPSHOT/xplat-dubbo-api-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-actuator/1.3.3.RELEASE/spring-boot-starter-actuator-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-actuator/1.3.3.RELEASE/spring-boot-actuator-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/ch/qos/logback/logback-core/1.1.5/logback-core-1.1.5.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/1.3.3.RELEASE/spring-boot-starter-tomcat-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-webmvc/4.2.5.RELEASE/spring-webmvc-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/io/swagger/swagger-annotations/1.5.4/swagger-annotations-1.5.4.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-freemarker/1.3.3.RELEASE/spring-boot-starter-freemarker-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-expression/4.2.5.RELEASE/spring-expression-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/tomcat/embed/tomcat-embed-logging-juli/8.0.32/tomcat-embed-logging-juli-8.0.32.jar, file:/C:/Users/shengcl/.m2/repository/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.0.32/tomcat-embed-el-8.0.32.jar, file:/C:/Users/shengcl/.m2/repository/org/unbescape/unbescape/1.1.0.RELEASE/unbescape-1.1.0.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar, file:/C:/Users/shengcl/.m2/repository/org/slf4j/jul-to-slf4j/1.7.16/jul-to-slf4j-1.7.16.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-web/1.3.3.RELEASE/spring-boot-starter-web-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-aop/4.2.5.RELEASE/spring-aop-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/ch/qos/logback/logback-classic/1.1.5/logback-classic-1.1.5.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-beans/4.2.5.RELEASE/spring-beans-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/github/sgroschupf/zkclient/0.1/zkclient-0.1.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-devtools/1.3.3.RELEASE/spring-boot-devtools-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/com/github/pagehelper/pagehelper/4.0.1/pagehelper-4.0.1.jar, file:/C:/Users/shengcl/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.6.5/jackson-core-2.6.5.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/ouyeel-api-cms/0.0.1-SNAPSHOT/ouyeel-api-cms-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/com/ouyeel/xplat/ouyeel-api-trade/0.0.1-SNAPSHOT/ouyeel-api-trade-0.0.1-SNAPSHOT.jar, file:/C:/Users/shengcl/.m2/repository/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot/1.3.3.RELEASE/spring-boot-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/nz/net/ultraq/thymeleaf/thymeleaf-layout-dialect/1.3.3/thymeleaf-layout-dialect-1.3.3.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-validation/1.3.3.RELEASE/spring-boot-starter-validation-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/ognl/ognl/3.0.8/ognl-3.0.8.jar, file:/C:/Users/shengcl/.m2/repository/junit/junit/4.12/junit-4.12.jar, file:/C:/Users/shengcl/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.0.32/tomcat-embed-websocket-8.0.32.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-context-support/4.2.5.RELEASE/spring-context-support-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.16/log4j-over-slf4j-1.7.16.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/boot/spring-boot-starter-logging/1.3.3.RELEASE/spring-boot-starter-logging-1.3.3.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/codehaus/groovy/groovy/2.4.6/groovy-2.4.6.jar, file:/C:/Users/shengcl/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.16/jcl-over-slf4j-1.7.16.jar, file:/C:/Users/shengcl/.m2/repository/org/springframework/spring-context/4.2.5.RELEASE/spring-context-4.2.5.RELEASE.jar, file:/C:/Users/shengcl/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar]
[WARNING]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:478)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderController' defined in file [C:\Users\shengcl\Documents\workspace-sts-3.7.3.RELEASE\P160309\ouyeel\ouyeel-web-protal\target\classes\com\ouyeel\controller\OrderController.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
at com.ouyeel.ApplicationBootstrap.main(ApplicationBootstrap.java:10)
... 6 more
Caused by: org.springframework.beans.factory.BeanInitializationException: Failed to init remote service reference at filed cmsOrderService in class com.ouyeel.controller.OrderController; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessBeforeInitialization(AnnotationBean.java:253)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
... 21 more
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.ouyeel.order.service.CmsOrderService. No provider available for the service com.ouyeel.order.service.CmsOrderService from the url zookeeper://127.0.0.1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=xplat-seed-consumer&check=false&dubbo=2.8.4&generic=false&interface=com.ouyeel.order.service.CmsOrderService&methods=create,findAll&organization=dubbox&owner=kk580kk&pid=5624&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1461047607234 to the consumer 192.168.23.1 use dubbo version 2.8.4
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:317)
at com.alibaba.dubbo.config.spring.AnnotationBean.postProcessBeforeInitialization(AnnotationBean.java:246)
... 24 more

-1
baidu_29092471
Scl1724 这是详细的异常情况
接近 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
idea创建springboot,集成使用dubbo、zookeeper
idea创建使用springboot项目,zookeeper做注册,使用dubbo分布部署实现接口的远程调用
构建 Zookeeper + Dubbo + Spring Boot 的分布式调用项目(二)
构建 Zookeep + Dubbo + Spring Boot 的分布式调用项目(一) 一、使用 Spring Initializr 构建 Dubbo 服务消费者 dubbo-consumer 项目 1. 登录 http://start.spring.io/ 填写如下信息后点击 “Generate Project” 按钮,得到 dubbo-consumer 项目骨架
(2)Dubbo入门使用案例
本节介绍 这一节会通过一个Dubbo的入门实战案例,来介绍一下Dubbo服务的提供者、消费者分别是如何使用的,项目是如何划分的。Dubbo的新版本的一些特性使用不当,会导致启动的时候报"Fail to start qos server"的异常,这里也会介绍为什么出现这个错误已经是如何解决这个问题的。 准备工作说明 Dubbo系列博客使用的开发环境为:JDK1.8,Maven3.1.0,Ecl...
构建 Zookeeper + Dubbo + Spring Boot 的分布式调用项目(一)
一、写在前头 在开始构建前,默认你已经能够成功安装并启动 Zookeeper 注册中心,能够成功安装并启动 Dubbo 控制台; 在本例中,我的 Zookeeper 注册中心 IP 地址为 192.168.10.41,端口号为 4183,Dubbo 控制台的访问地址为 http://192.168.10.41:8080; 为了体现分布式调用,本例中创建了以下两个项目
SpringBoot 整合 Dubbo&Zookeeper 实现分布式(特别完整)
https://www.jianshu.com/p/78835f740404?utm_source=oschina-app https://blog.csdn.net/qq_26641781/article/details/80631311 最新官方版的SpringBoot 整合 Dubbo https://www.jianshu.com/p/b462b8cb99ce SpringBoot...
Spring+zookeeper+dubbo构建微服务项目框架
Spring+zookeeper+dubbo构建微服务项目框架 整个项目源码我已经提交到Github上面了,大家可以去看一下 :项目源码地址 1、首先上搭建好的项目结构: 分层多模块web项目(微服务架构) SpringMVC+Spring+mybatis-plus 集成redis commons-parent是父级项目管理子项目的maven jar包的版本信息。 commons-util...
项目使用Dubbo实现解耦和
代码准备本次作者建立了一个小Demo来说明如何使用Dubbo实现解耦和的项目部署方式 作者使用的开发工具是idea,大家也可以使用eclipse或者myeclipse. 首先使用idea创建一个maven项目, 其中包括了5个子模块,分别是 - dao - daoimpl - service - serviceimpl - web 项目结构如下图,请原谅画的比较…..(额..抽
dubbo服务分布式事务话术:
dubbo服务分布式事务话术:         我们的电商项目中使用到了dubbo、zookeeper的服务化框架,把项目拆分成了订单,帐户,会员,积分,红包等服务,         在Consumer端调用服务的过程中可能会操作多个服务,每个服务可能操作着不同的数据源,这时候就涉及到分布式事务         的问题。关于分布式事务dubbo框架并没有提供可靠的方案,所以我们还是采用的传统分布式...
Dubbo_创建Dubbo服务并在ZooKeeper注册,然后通过Jar包执行【转】
duboo无容器开发部署
dubbo+zookeeper 分布式项目搭建
dubbo简介:            系统间服务调用方式有三种,浏览器直接访问,通过ajax或者jsonp方式请求。第二种,httpclient方式发起http协议的请求,是后台调用。第三种基于RPC方式的远程过程调用协议的请求。DUBBO是一个分布式服务框架,致力于提供高性能和透明化的RPC远程服务调用方案,是阿里巴巴SOA服务化治理方案的核心框架,每天为2,000+个服务提供3,0
Dubbo+Zookeeper入门 — 实现工程间的远程服务调用
什么是Dubbo       百科释义:Dubbo是阿里巴巴公司开源的一个高性能优秀的服务框架,使得应用可通过高性能的 RPC 实现服务的输出和输入功能,可以和 Spring框架无缝集成。        随着互联网的发展,网站应用的规模不断扩大,常规的垂直应用架构已无法应对,分布式服务架构以及流动计算架构势在必行,亟需一个治理系统确保架构有条不紊的演进。...
dubbo系列(一)——dubbo简介和dubbo+spring+zookeeper配置整合
简介 Dubbo是一个分布式服务框架,可以在java项目中整合使用,dubbo推荐的注册中心是wookeeper。 在dubbo流行之前,分布式框架实现是通过RMI或Hessian等工具,简单的暴露和引用远程服务,通过配置服务的URL地址进行调用,通过F5等硬件进行负载均衡。 架构 节点角色说明: Provider: 暴露服务的服务提供方。 Consumer: 调用远程服务的
zookeeper+Dubbo环境搭建及简单Demo
一、运行环境 本文运行环境:windows 7  + JDK1.8 + zookeeper-3.3.6 + dubbo-admin-2.5.4 (支持JDK 1.8)+ dubbo 2.5.3 所需工具可至资源页下载  --》点我下载 本文采用Dubbo与Zookeeper、Spring框架的整合。 主要是以下几个步骤:  1. 安装Zookeeper,启动;  2
dubbo和zookeeper项目中使用
关于dubbo的使用,我们举个简单例子: 存在2个系统,A系统和B系统,A系统调用B系统的接口获取数据,用于查询用户列表。 在上一篇博文介绍了dubbo的创建,zookeeper的创建完成后,我们可以来使用dubbo和zookeeper了? 再回顾下dubbo的架构: 所以通过此图,我们看到就是服务的提供者将服务注册到注册中心,服务的消费者从注册中心获取服务
在使用idea搭建dubbo-zookeeper过程中遇到的问题
在参考https://www.kancloud.cn/digest/javaframe/125576 ,搭建dubbo_zookeeper框架时,由于使用的使用IDE工具是idea,不提供自动生成jar到本地仓库的问题; 因此此处需要自己手动将自己的项目生成jar到本地maven仓库;以下为步骤的简单描述: 1.导出provider为jar包(只需要TestService)接口即可; 2.使用
整合了SSM框架+dubbo+zookeeper的java项目
这是一个整合了SSM框架+dubbo+zookeeper的java项目,运用到了项目中常用的权限控制,读写分离等技术,是一个学习java技术非常好的项目
电商底层接口(系统接口或SOA接口)高并发解决方案:dubbo + zookeeper
简介 dubbo是一个分布式服务框架,是阿里巴巴开发的一个解决RPC远程调用优化的核心框架,包含负载均衡算法,能提高分布式系统的性能。 zookeeper是hadoop的一个子项目,主要用来解决分布式系统的数据一致性、状态同步、服务集群管理、配置同步等一系列的问题。本文使用zookeeper作为dubbo的服务注册中心。 Dubbo适用于哪些场景? 当网站变大后
Springboot整合Dubbo(三):consumer注册到zookeeper上,调用时接口注入为null的问题
解决了与注解配置事物的问题后,又遇到了一个坑,通过@Reference注解注入接口调试项目时发现接口注入显示为null,但是查看dubbo-admin上的消费者已经注册到了zookeeper上,但是为什么引用不到呢?查看了很多大神们的博文,发现这个是因为springboot初始化时加载配置的先后顺序有关,扫描@Reference的步骤是在类加载之后,也就是说consumer注册到zookeeper...
dubbo向zookeeper发布服务报错:连接超时
在启动spring+dubbo+zookeeper的项目中,zookeeper是服务的注册中心,provider会向zookeeper发布服务,但是........问题来了,在服务发布时可能 连接不上 zookeeper注册中心,在zookeper部署的服务器上我们需要将zookeeper使用的端口默认为2181 暴露出来否则,zookeeper将连接不上就会报错连接超时。下面说说如何配置zook...
spring-boot项目多模块开发及集成dubbo的使用
首先我使用的开发工具是idea2017,本人搭建的项目也是基于这spring-boot项目多模块项目搭建1.先创建一个普通的maven项目(这里我创建叫game-union),创建成果后删掉src目录2.再创建base层,web层,service层。base层用来存放实体类和service接口,service层用来存放service实现类及dao层web层存放网络访问层也就是常用的controll...
idea搭建dubbo zookeeper服务ssm开发环境
环境配置和工程目录 下一篇文章测试此次环境搭建:idea 开发dubbo 分布式 工程目录:realfake是装载子工程的工程,提供公共maven,consumer是服务消费者,provider是服务提供者,service包含服务接口以及实体类。provider向zookeeper注册服务,同时给dubbo暴露服务,consumer向zookeeper说明需要的服务,dubbo生成远程代理让c...
springboot+dubbo框架下服务注册时不能创建bean对象
服务注册的两种方式: 1.直接用dubbo提供的注解@Service    但是这种方式加事务注解@Transactional时注册服务会失败,解决方式一种是改dubbo注解的源码(这种没有试过),另一种方式是手动控制事务的创建和提交        //获取Spring容器的对象        // WebApplicationContext contextLoader = Context
创建Maven项目下的Dubbo+Zookeeper框架
引言: 互联网的发展,网站应用的规模不断扩大,常规的垂直应用架构已无法应对,分布式服务架构以及流动计算架构势在必行,Dubbo是一个分布式服务框架,在这种情况下诞生的。现在核心业务抽取出来,作为独立的服务,使前端应用能更快速和稳定的响应。 第一:Dubbo背景 大规模服务化,应用使用RMI或Hessian等工具,通过配置服务URL地址调用,通过
spring_boot 远程调用配置
准备一个tomcat 下载 dubbo:https://github.com/dangdangdotcom/dubbox 将dubbo 打war包 dubbo-admin 下的war 放在tomcat解压,并修改E:\JBY\application\tomcat\zookeeper 8081\apache-tomcat-9.0.12\webapps\dubbo\WEB-INF 目录下的 dubb...
idea开发dubbo服务注册到zookeeper入门示例
我知道网上有很多优秀的博客介绍dubbo+zookeeper,我自己也是参考别人优秀的东西来学习的,我只是想记录下自己搭建的过程,以后看到这篇文章就能很快捡起来! 首先zookeeper下载地址:http://mirrors.cnnic.cn/apache/zookeeper/zookeeper-3.4.8/zookeeper-3.4.8.tar.gz 然后解压到指定目录E:\zookeepe...
关于dubbo的一个面试题
七月份去多啦宝面试,面试官问了我一个问题,由于在传统行业待得时间久了对一些技术不是特别了解,没有答上来,问题如下:dubbo运行时,突然所有的zookeeper全部宕机,dubbo是否还会继续提供服务. 答案如下:会,dubbo启动成功后会在本地生成一个cache文件,如下图 文件内容为服务提供的地址 当dubbo运行过程中遭遇zookeeper集群宕机,dubbo会尝试读取本地缓存文件,并在后台打
分布式框架Zookeeper+Dubbo多Provider实例(静态注入+动态调用)
Zookeeper服务节点的动态操作(添加修改删除),Dubbo远程RPC调用。 项目功能简介: Zookeeper开启2个zkServer分别监听2081,2082端口,即分别为Provider和Provider1提供服务注册中心,Provider开启20880端口启动Dubbo服务,Provider1开启20881端口启动Dubbo服务,Consumer调用Provider和Provide...
IDEA下搭建maven管理的DUBBO项目,Zookeeper作为注册中心
maven DUBBO+zookeeper框架搭建
Dubbo+Zookeeper+SpringMVC整合实现微服务项目
互联网的发展,网站应用的规模不断扩大,常规的垂直应用架构已无法应对,分布式服务架构以及流动计算架构势在必行,Dubbo是一个分布式服务框架,在这种情况下诞生的。现在核心业务抽取出来,作为独立的服务,使前端应用能更快速和稳定的响应。第一:介绍Dubbo背景    大规模服务化之前,应用可能只是通过RMI或Hessian等工具,简单的暴露和引用远程服务,通过配置服务的URL地址进行调用,通过F5等硬件...
dubbo--zookeeper面试中问题解答
前几天出去试了个不知道外面的行情怎么样了,总体感觉还可以,就是工资没有达到我想要的最低标准,回来一直忙别的交接的事情,一直也没有给对方回复,那我就先回复他提的问题吧,spring(Springmvc)+dubbo+zookeeper  现在很火啊,我以为dubbo只是一个服务端的插件罢了,但是好多公司都开始研究了, Dubbo是阿里巴巴SOA服务化治理方案的核心框架,每天为2,000+个服务提供
关于dubbo+zookeeper在安置配置时遇到的一些问题
这两天在做一个项目时用到了dubbo和zookeeper,在安装配置时,虽然是一步一步跟着教程来走的,但还是进了坑 在配置完dubbo启动Tomcat时,第一个问题,提示我:WARN utils.NetUtils -  [DUBBO] Failed to retriving ip address, centos: centos1: unknown error, dubbo version: 2.
(一) springboot+zookeeper+dubbo搭建简单的分布式框架
(1)简介:       根据springboot快速的web项目搭建方式,用zookeeper+dubbo快速搭建分布式框架。  (2)开发环境        zookeeper-3.4.13直接在官网下载,        dubbo2.6.2直接maven配置   (3) 具体的操作     3.1 下载zookeeper后,zoo_sample.cfg复制一份改名为zoo.cfg...
Dubbo和Zookeeper常见错误解决
最近在使用阿里的分布式服务中间件Dubbo框架重构项目时遇到以下错误: 1、Spring配置文件Dubbo标签报错 原因:dubbo约束文件Key配置错误 错误:http://code.alibabatech.com/schema/dubbo 正确:http://code.alibabatech.com/schema/dubbo/dubbo.xsd 2.客户端连接Linux上的Zoo...
springBoot+Dubbo+Zookeeper整合实现最简单的RPC调用服务(总结)
springBoot+Dubbo+Zookeeper整合实现最简单的RPC调用服务(总结) 这一两天在学习Dubbo在集成springBoot、zookeeper、dubbo的时候遇到了一些问题,对这些问题进行一个总结和反思以及扩展思考。 一、首先是总结集成过程 1.安装好 zookeeper 、谷歌下载好Dubbo-admin.war项目,并能够在tomcat中启动,进入dubbo管理界面...
dubbo 问题整理
1 面试题:Dubbo中zookeeper做注册中心,如果注册中心集群都挂掉,发布者和订阅者之间还能通信么? 可以的,启动dubbo时,消费者会从zk拉取注册的生产者的地址接口等数据,缓存在本地。每次调用时,按照本地存储的地址进行调用注册中心对等集群,任意一台宕掉后,会自动切换到另一台 注册中心全部宕掉,服务提供者和消费者仍可以通过本地缓存通讯 服务提供者无状态,任一台 宕机后,不影响使用
查看dubbo服务是否注册到了zookeeper
因为环境中并没有安装dubbo admin,所以需要在命令行查看服务是否被注册到zookeeper,以及是否有消费者   假设zookeeper所在的ip是192.168.2.2 1、登陆服务器后进入zookeeper的bin目录,输入命令 ./zkCli.sh -server ip:port 本示例中为 ./zkCli.sh -server 192.168.2.2:2181 2、查看...
解决linux dubbo注册到zookeeper 很慢 3-10分钟问题
问题查找,在源码找到问题是: com.alibaba.dubbo.config.ServiceConfig类获取host的代码卡住了5秒 if (NetUtils.isInvalidLocalHost(host)) { anyhost = true; try { host = InetAddress.getLocalHost().getHostAddress(); } catch (
多模块项目spring整合dubbo,服务方正常启动,消费方启动报错解决记录
服务方写法: <dubbo:application name="babasport-service-product"/> <!--2.设置注册中心的地址 zookeeper--> <!-- 集群式配置:<dubbo:registry address="192.168.200.128:2181,192
springCloud集成Dubbo,使用redis做注册中心
springCloud怎么集成Dubbo可以看我的另一篇文章, springCloud集成Dubbo简单记录 - JAVA_HIGHNESS的专栏 - CSDN博客 https://blog.csdn.net/javahighness/article/details/82719083 首先,maven添加redis依赖, <!-- redis注册中心需要的依赖 --> <de...
dubbo注册到zookeeper很慢5秒一个
前段时间新买的Mac环境都重新整了个遍(mac 10.12+idea+jetty9),最后发觉一样的代码,一样的配置,但是服务启动时间,从原来的几十秒,飙升到了3分半钟。查看控制台日志,发现每个dubbo服务注册到zookeeper都需要5秒。 怀疑zk问题,换了好几个版本,也试用连接正常的远程zk,都没结果。网上搜索居然有类似问题,悬而未解(详见:http://ask.csdn.net/questions/353225)。缓慢开发1个多月后,有一天想起来dubbo代码可以下载,可以debug,于是居然发
文章热词 双目视觉问题 特征点问题 相机标定问题 最优化问题 统计学稳健估计问题
相关热词 c++ 关于unique的问题 编写一个关于圆形的c++ c#新建一个项目 关于python培训班 关于区块链的课程