You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "amogege (GitHub)" <gi...@apache.org> on 2020/01/16 09:34:52 UTC
[GitHub] [dubbo-spring-boot-project] amogege opened issue #668: dubbo 2.7.3 升级2.7.5 连接不到zookeeper
配置文件 加了
dubbo.config-center.timeout: 50000
dubbo.registry.timeout: 40000
但还是报错
错误代码如下:
2020-01-16 17:32:23.666 [main-EventThread] INFO o.a.curator.framework.state.ConnectionStateManager -
State change: CONNECTED
2020-01-16 17:32:24.884 [main] INFO org.apache.catalina.core.StandardService -
Stopping service [Tomcat]
2020-01-16 17:32:24.889 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-01-16 17:32:24.897 [main] ERROR org.springframework.boot.SpringApplication -
Application run failed
java.lang.NullPointerException: null
at org.apache.dubbo.registry.integration.RegistryProtocol.register(RegistryProtocol.java:178)
at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:209)
at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:64)
at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:60)
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:143)
at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java)
at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:470)
at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:315)
at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:287)
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:205)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.lambda$exportServices$13(DubboBootstrap.java:873)
at java.util.HashMap$Values.forEach(HashMap.java:981)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.exportServices(DubboBootstrap.java:861)
at org.apache.dubbo.config.bootstrap.DubboBootstrap.start(DubboBootstrap.java:703)
at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onContextRefreshedEvent(DubboBootstrapApplicationListener.java:52)
at org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener.onApplicationContextEvent(DubboBootstrapApplicationListener.java:45)
at org.apache.dubbo.config.spring.context.OneTimeExecutionApplicationContextEventListener.onApplicationEvent(OneTimeExecutionApplicationContextEventListener.java:40)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:162)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at com.am.dubbo.provider.ProviderApplication.main(ProviderApplication.java:28)
2020-01-16 17:32:24.899 [main] INFO o.a.d.s.b.c.e.AwaitingNonWebApplicationListener -
[Dubbo] Current Spring Boot Application is about to shutdown...
2020-01-16 17:32:24.908 [Curator-Framework-0] INFO o.a.curator.framework.imps.CuratorFrameworkImpl -
backgroundOperationsLoop exiting
2020-01-16 17:32:24.912 [main] INFO org.apache.zookeeper.ZooKeeper -
Session: 0x1000000348e0011 closed
2020-01-16 17:32:24.912 [main-EventThread] INFO org.apache.zookeeper.ClientCnxn -
EventThread shut down for session: 0x1000000348e0011
2020-01-16 17:32:24.921 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor -
Shutting down ExecutorService 'applicationTaskExecutor'
2020-01-16 17:32:24.924 [main] INFO o.a.d.c.s.b.f.a.ReferenceAnnotationBeanPostProcessor -
class org.apache.dubbo.config.spring.beans.factory.annotation.ReferenceAnnotationBeanPostProcessor was destroying!
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/668 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mercyblitz commented on issue #668: dubbo 2.7.3 升级2.7.5 连接不到zookeeper
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
Duplicated https://github.com/apache/dubbo-spring-boot-project/issues/657
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/668 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] fxc109406 commented on issue #668: dubbo 2.7.3 升级2.7.5 连接不到zookeeper
Posted by "fxc109406 (GitHub)" <gi...@apache.org>.
我也遇到了同样的错误,zookeeper肯定是运行正常的,就是连不上,降到2.7.3就一切正常了。org.apache.dubbo的dubbo-spring-boot-starter比com.alibaba.boot的dubbo-spring-boot-starter连接外部zookeeper要慢不少。
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/668 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] l343765828 commented on issue #668: dubbo 2.7.3 升级2.7.5 连接不到zookeeper
Posted by "l343765828 (GitHub)" <gi...@apache.org>.
springboot的版本是多少
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/668 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [dubbo-spring-boot-project] mercyblitz closed issue #668: dubbo 2.7.3 升级2.7.5 连接不到zookeeper
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
[ issue closed by mercyblitz ]
[ Full content available at: https://github.com/apache/dubbo-spring-boot-project/issues/668 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org