You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ralf0131 (GitHub)" <gi...@apache.org> on 2018/12/27 03:46:16 UTC

[GitHub] [incubator-dubbo] ralf0131 opened issue #3071: Could not start demo in latest master branch

- [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo version: 2.7.0
* Operating System version: MacOS
* Java version: 11.0.1

### Steps to reproduce this issue

1. Run org.apache.dubbo.demo.provider.Provider

### Expected Result

Provider should start.

### Actual Result

```
Caused by: java.lang.IllegalStateException: Failed to connect to config center (zookeeper): 127.0.0.1:2181 in 30000ms.
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.initWith(ZookeeperDynamicConfiguration.java:79)
	at org.apache.dubbo.configcenter.AbstractDynamicConfiguration.<init>(AbstractDynamicConfiguration.java:46)
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfiguration.<init>(ZookeeperDynamicConfiguration.java:62)
	at org.apache.dubbo.configcenter.support.zookeeper.ZookeeperDynamicConfigurationFactory.createDynamicConfiguration(ZookeeperDynamicConfigurationFactory.java:29)
	at org.apache.dubbo.configcenter.AbstractDynamicConfigurationFactory.getDynamicConfiguration(AbstractDynamicConfigurationFactory.java:33)
	at org.apache.dubbo.config.ConfigCenterConfig.startDynamicConfiguration(ConfigCenterConfig.java:105)
	at org.apache.dubbo.config.ConfigCenterConfig.init(ConfigCenterConfig.java:82)
	at org.apache.dubbo.config.spring.ConfigCenterBean.afterPropertiesSet(ConfigCenterBean.java:98)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1688)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1626)
	... 12 more
```

People may not install zookeeper locally, we need to restore the behavior to use multicast as default registry.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3071 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] ralf0131 commented on issue #3071: Could not start demo in latest master branch

Posted by "ralf0131 (GitHub)" <gi...@apache.org>.
@khanimteyaz 

Hi, have you installed zookeeper and started it locally before running this demo? If so, it will work. But not everyone will install the zookeeper locally. Normally we want to provider a convient way for user to try out the demo easily. So we use multicast as the default.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3071 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] khanimteyaz commented on issue #3071: Could not start demo in latest master branch

Posted by "khanimteyaz (GitHub)" <gi...@apache.org>.
@ralf0131 are you referring to incubator-dubbo/dubbo-demo/dubbo-demo-provider's Provider example? I just run it and it seems to be working fine ? If this is project you are referring then would you see I am missing something here?

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3071 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] ralf0131 closed issue #3071: Could not start demo in latest master branch

Posted by "ralf0131 (GitHub)" <gi...@apache.org>.
[ issue closed by ralf0131 ]

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3071 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [incubator-dubbo] ralf0131 commented on issue #3071: Could not start demo in latest master branch

Posted by "ralf0131 (GitHub)" <gi...@apache.org>.
Hi, I've checked out the latest code, the issue has been fixed. The default registry has been changed back to `multicast`. I am going to close this issue.

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/3071 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org