当前位置:   article > 正文

异常 dubbo中provider和consumer加载异常 Zookeeper注册_info zkclient.zkeventthread - starting zkclient ev

info zkclient.zkeventthread - starting zkclient event thread.

异常如下

  1. INFO zkclient.ZkEventThread - Starting ZkClient event thread.
  2. INFO zkclient.ZkEventThread - Terminate ZkClient event thread.
  3. INFO context.InheritableListableBeanFactory - Destroying singletons in com.alibaba.citrus.springext.support.context.InheritableListableBeanFactory@3a3a41da: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,com.alibaba.citrus.service.configuration.support.PropertyPlaceholderConfigurer#0,templateService,mappingRuleService,dataResolverService,exceptionPipeline,resourceLoadingService,messageSource,uriBrokerService,restfulRewrite,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dubbo
  4. -admin,com.us.dubbo.config.RegistryConfig,registryService,configService,consumerService,overrideService,ownerService,providerService,routeService,userService,governanceCache,productionModeSensiblePostProcessor,webxConfiguration,requestContexts,com.alibaba.citrus.service.requestcontext.impl.RequestContextBeanFactoryPostProcessor#0,uploadService,pullService,formService,module.screen.Error404,module.screen.ErrorOther,moduleLoaderService,messageResourceService,com.alibaba.citrus.webx.context.WebxComponentsLoader$WebxComponentsCreator,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
  5. ERROR context.ContextLoader - Context initialization failed
  6. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.governance.sync.RegistryServerSync com.us.dubbo.governance.service.impl.AbstractService.sync; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'governanceCache': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.registry.RegistryService com.us.kulm.governance.sync.RegistryServerSync.registryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  7. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
  8. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)
  9. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
  10. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  11. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
  12. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  13. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
  14. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  15. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633)
  16. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
  17. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
  18. at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
  19. at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
  20. at com.alibaba.citrus.webx.context.WebxComponentsLoader.initWebApplicationContext(WebxComponentsLoader.java:117)
  21. at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
  22. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4811)
  23. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
  24. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
  25. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
  26. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
  27. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  28. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  29. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  30. at java.lang.Thread.run(Thread.java:745)
  31. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.governance.sync.RegistryServerSync com.us.kulm.governance.service.impl.AbstractService.sync; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'governanceCache': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.kulm.registry.RegistryService com.us.kulm.governance.sync.RegistryServerSync.registryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  32. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517)
  33. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
  34. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)
  35. ... 23 more
  36. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'governanceCache': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.kulm.registry.RegistryService com.us.kulm.governance.sync.RegistryServerSync.registryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  37. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
  38. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)
  39. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
  40. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  41. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
  42. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  43. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
  44. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  45. at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:917)
  46. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)
  47. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)
  48. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)
  49. ... 25 more
  50. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.registry.RegistryService com.us.kulm.governance.sync.RegistryServerSync.registryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  51. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517)
  52. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
  53. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)
  54. ... 36 more
  55. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  56. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
  57. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
  58. at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1468)
  59. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:249)
  60. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  61. at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:917)
  62. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)
  63. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)
  64. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)
  65. ... 38 more
  66. Caused by: org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  67. at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:876)
  68. at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:98)
  69. at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:92)
  70. at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:80)
  71. at com.us.dubbo.remoting.zookeeper.zkclient.ZkclientZookeeperClient.<init>(ZkclientZookeeperClient.java:26)
  72. at com.us.dubbo.remoting.zookeeper.zkclient.ZkclientZookeeperTransporter.connect(ZkclientZookeeperTransporter.java:10)
  73. at com.us.kulm.remoting.zookeeper.ZookeeperTransporter$Adpative.connect(ZookeeperTransporter$Adpative.java)
  74. at com.us.kulm.registry.zookeeper.ZookeeperRegistry.<init>(ZookeeperRegistry.java:69)
  75. at com.us.kulm.registry.zookeeper.ZookeeperRegistryFactory.createRegistry(ZookeeperRegistryFactory.java:37)
  76. at com.us.kulm.registry.support.AbstractRegistryFactory.getRegistry(AbstractRegistryFactory.java:94)
  77. at com.us.kulm.registry.RegistryFactory$Adpative.getRegistry(RegistryFactory$Adpative.java)
  78. at com.us.kulm.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:240)
  79. at com.us.kulm.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:60)
  80. at com.us.kulm.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:63)
  81. at com.us.kulm.rpc.Protocol$Adpative.refer(Protocol$Adpative.java)
  82. at com.us.kulm.config.ReferenceConfig.createProxy(ReferenceConfig.java:392)
  83. at com.us.kulm.config.ReferenceConfig.init(ReferenceConfig.java:300)
  84. at com.us.kulm.config.ReferenceConfig.get(ReferenceConfig.java:138)
  85. at com.us.kulm.config.spring.ReferenceBean.getObject(ReferenceBean.java:65)
  86. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
  87. ... 46 more
  88. 四月 11, 2016 6:17:02 下午 org.apache.catalina.core.StandardContext listenerStart
  89. 严重: Exception sending context initialized event to listener instance of class com.alibaba.citrus.webx.context.WebxContextLoaderListener
  90. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.governance.sync.RegistryServerSync com.us.dubbo.governance.service.impl.AbstractService.sync; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'governanceCache': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.registry.RegistryService com.us.dubbo.governance.sync.RegistryServerSync.registryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  91. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
  92. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)
  93. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
  94. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  95. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
  96. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  97. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
  98. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  99. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633)
  100. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
  101. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
  102. at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
  103. at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
  104. at com.alibaba.citrus.webx.context.WebxComponentsLoader.initWebApplicationContext(WebxComponentsLoader.java:117)
  105. at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
  106. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4811)
  107. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
  108. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
  109. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
  110. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
  111. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  112. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  113. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  114. at java.lang.Thread.run(Thread.java:745)
  115. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.governance.sync.RegistryServerSync com.us.kulm.governance.service.impl.AbstractService.sync; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'governanceCache': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.registry.RegistryService com.us.dubbo.governance.sync.RegistryServerSync.registryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  116. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517)
  117. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
  118. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)
  119. ... 23 more
  120. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'governanceCache': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.registry.RegistryService com.us.dubbo.governance.sync.RegistryServerSync.registryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  121. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
  122. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)
  123. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
  124. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
  125. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
  126. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
  127. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
  128. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  129. at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:917)
  130. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)
  131. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)
  132. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)
  133. ... 25 more
  134. Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.us.dubbo.registry.RegistryService com.us.kulm.governance.sync.RegistryServerSync.registryService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  135. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517)
  136. at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
  137. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)
  138. ... 36 more
  139. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'registryService': FactoryBean threw exception on object creation; nested exception is org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  140. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
  141. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
  142. at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1468)
  143. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:249)
  144. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
  145. at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:917)
  146. at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)
  147. at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)
  148. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)
  149. ... 38 more
  150. Caused by: org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 5000
  151. at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:876)
  152. at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:98)
  153. at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:92)
  154. at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:80)
  155. at com.us.dubbo.remoting.zookeeper.zkclient.ZkclientZookeeperClient.<init>(ZkclientZookeeperClient.java:26)
  156. at com.us.dubbo.remoting.zookeeper.zkclient.ZkclientZookeeperTransporter.connect(ZkclientZookeeperTransporter.java:10)
  157. at com.us.dubbo.remoting.zookeeper.ZookeeperTransporter$Adpative.connect(ZookeeperTransporter$Adpative.java)
  158. at com.us.dubbo.registry.zookeeper.ZookeeperRegistry.<init>(ZookeeperRegistry.java:69)
  159. at com.us.dubbo.registry.zookeeper.ZookeeperRegistryFactory.createRegistry(ZookeeperRegistryFactory.java:37)
  160. at com.us.dubbo.registry.support.AbstractRegistryFactory.getRegistry(AbstractRegistryFactory.java:94)
  161. at com.us.dubbo.registry.RegistryFactory$Adpative.getRegistry(RegistryFactory$Adpative.java)
  162. at com.us.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:240)
  163. at com.us.dubbo.rpc.protocol.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:60)
  164. at com.us.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:63)
  165. at com.us.dubbo.rpc.Protocol$Adpative.refer(Protocol$Adpative.java)
  166. at com.us.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:392)
  167. at com.us.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300)
  168. at com.us.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138)
  169. at com.us.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65)
  170. at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
  171. ... 46 more
  172. 四月 11, 2016 6:17:02 下午 org.apache.catalina.core.StandardContext startInternal
  173. 严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
  174. 四月 11, 2016 6:17:02 下午 org.apache.catalina.core.StandardContext startInternal
  175. 严重: Context [/dubbo-admin] startup failed due to previous errors
  176. 四月 11, 2016 6:17:02 下午 org.apache.catalina.core.ApplicationContext log
  177. 信息: Closing Spring root WebApplicationContext
  178. 四月 11, 2016 6:17:02 下午 org.apache.catalina.core.ApplicationContext log
  179. 信息: Shutting down log system
  180. 四月 11, 2016 6:17:02 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
  181. 警告: The web application [dubbo-admin] appears to have started a thread named [dubboRegistryFailedRetryTimer-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
  182. sun.misc.Unsafe.park(Native Method)
  183. java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
  184. java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
  185. java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
  186. java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
  187. java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
  188. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
  189. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  190. java.lang.Thread.run(Thread.java:745)
  191. 四月 11, 2016 6:17:02 下午 org.apache.coyote.AbstractProtocol start
  192. 信息: Starting ProtocolHandler ["http-nio-8080"]
  193. 四月 11, 2016 6:17:02 下午 org.apache.coyote.AbstractProtocol start
  194. 信息: Starting ProtocolHandler ["ajp-nio-8009"]
  195. 四月 11, 2016 6:17:02 下午 org.apache.catalina.startup.Catalina start
  196. 信息: Server startup in 19092 ms




解决方法:
启动Zookeeper 的zkServer.bat/zkServer.sh 文件,开启本地的Zoookeeper。

因为:开启本地的Zookeeper 才能启动本地的Zookeeper服务;

报了500错误 连接超时了 因为本地的zookeeper没有开启 也就是dubbo配置的时候 <dubbo:register >zookeeper://127.0.0.1 处配置的本地服务zookeeper 注册中心没有开启

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/94778
推荐阅读
相关标签
  

闽ICP备14008679号