Github user lindzh commented on a diff in the pull request: https://github.com/apache/incubator-rocketmq/pull/144#discussion_r132393089 --- Diff: client/src/main/java/org/apache/rocketmq/client/impl/factory/MQClientInstance.java --- @@ -225,10 +225,13 @@ public void start() throws MQClientException { switch (this.serviceState) { case CREATE_JUST: this.serviceState = ServiceState.START_FAILED; - // If not specified,looking address from name server - if (null == this.clientConfig.getNamesrvAddr()) { + // name server address and web server address should be specified at least one + if (null == this.clientConfig.getNamesrvAddr() && MixAll.getWSAddr().equals(MixAll.WS_ADDR)) { + throw new MQClientException("name server address and web server address should be specified at least one.", null); --- End diff -- What if someone want to use default wsaddr?
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---