q2186609 opened a new issue #9085:
URL: https://github.com/apache/dubbo/issues/9085


    
   
   ### Environment
   
   * Dubbo version: 3.0.3
   * Operating System version: window11
   * Java version: 1.8
   
   
   从3.0.2.1 升级 dubbo 到3.0.3
   
   启动失败
   `Exception in thread "main" java.lang.RuntimeException: Can not create 
registry 
service-discovery-registry://192.168.2.228:2181/org.apache.dubbo.registry.RegistryService?application=stream-provider&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=25560&registry=zookeeper&release=3.0.3
        at 
org.apache.dubbo.registry.support.AbstractRegistryFactory.getRegistry(AbstractRegistryFactory.java:89)
        at 
org.apache.dubbo.registry.RegistryFactoryWrapper.getRegistry(RegistryFactoryWrapper.java:33)
        at 
org.apache.dubbo.registry.RegistryFactory$Adaptive.getRegistry(RegistryFactory$Adaptive.java)
        at 
org.apache.dubbo.registry.integration.RegistryProtocol.getRegistry(RegistryProtocol.java:386)
        at 
org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:237)
        at 
org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:64)
        at 
org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:74)
        at 
org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:58)
        at 
org.apache.dubbo.rpc.protocol.ProtocolSerializationWrapper.export(ProtocolSerializationWrapper.java:47)
        at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java)
        at 
org.apache.dubbo.config.ServiceConfig.doExportUrl(ServiceConfig.java:650)
        at 
org.apache.dubbo.config.ServiceConfig.exportRemote(ServiceConfig.java:624)
        at 
org.apache.dubbo.config.ServiceConfig.exportUrl(ServiceConfig.java:584)
        at 
org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:415)
        at 
org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:403)
        at 
org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:378)
        at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:231)
        at DubboProvider.main(DubboProvider.java:46)
   Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: 
failed to connect to zookeeper server
        at 
org.apache.dubbo.common.function.ThrowableAction.execute(ThrowableAction.java:48)
        at 
org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.createServiceDiscovery(ServiceDiscoveryRegistry.java:115)
        at 
org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.<init>(ServiceDiscoveryRegistry.java:91)
        at 
org.apache.dubbo.registry.client.ServiceDiscoveryRegistryFactory.createRegistry(ServiceDiscoveryRegistryFactory.java:35)
        at 
org.apache.dubbo.registry.support.AbstractRegistryFactory.getRegistry(AbstractRegistryFactory.java:86)
        ... 17 more
   Caused by: java.lang.IllegalStateException: failed to connect to zookeeper 
server
        at 
org.apache.dubbo.registry.zookeeper.util.CuratorFrameworkUtils.buildCuratorFramework(CuratorFrameworkUtils.java:75)
        at 
org.apache.dubbo.registry.zookeeper.ZookeeperServiceDiscovery.doInitialize(ZookeeperServiceDiscovery.java:76)
        at 
org.apache.dubbo.registry.client.AbstractServiceDiscovery.initialize(AbstractServiceDiscovery.java:38)
        at 
org.apache.dubbo.registry.client.ServiceDiscoveryRegistry.lambda$createServiceDiscovery$0(ServiceDiscoveryRegistry.java:115)
        at 
org.apache.dubbo.registry.client.ServiceDiscoveryRegistry$$Lambda$105/115945887.execute(Unknown
 Source)
        at 
org.apache.dubbo.common.function.ThrowableAction.execute(ThrowableAction.java:46)
        ... 21 more`
   
   
   3.0.2.1  可以正常启动。没有更改任何配置文件
   
   
   
![image](https://user-images.githubusercontent.com/78395988/138244690-f06808d5-a750-488f-a86e-e47d94eb33bf.png)
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to