You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "zondahuman (GitHub)" <gi...@apache.org> on 2019/09/27 02:42:45 UTC

[GitHub] [dubbo-spring-boot-project] zondahuman opened issue #608: No registry config found or it's not a valid config! The registry config is:

stack strace:

Caused by: java.lang.IllegalStateException: No registry config found or it's not a valid config! The registry config is: <dubbo:registry valid="false" zookeeperProtocol="false" prefix="dubbo.registry" />
	at org.apache.dubbo.config.AbstractInterfaceConfig.checkRegistry(AbstractInterfaceConfig.java:202)
	at org.apache.dubbo.config.ServiceConfig.checkAndUpdateSubConfigs(ServiceConfig.java:302)
	at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:369)
	at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:336)
	at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:114)
	at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:60)
	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:402)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:408)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:359)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:896)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552)
	at org.springframework.cloud.context.named.NamedContextFactory.createContext(NamedContextFactory.java:136)
	at org.springframework.cloud.context.named.NamedContextFactory.getContext(NamedContextFactory.java:101)
	at org.springframework.cloud.context.named.NamedContextFactory.getInstance(NamedContextFactory.java:145)
	at org.springframework.cloud.openfeign.FeignClientFactoryBean.get(FeignClientFactoryBean.java:220)
	at org.springframework.cloud.openfeign.FeignClientFactoryBean.feign(FeignClientFactoryBean.java:84)
	at org.springframework.cloud.openfeign.FeignClientFactoryBean.getTarget(FeignClientFactoryBean.java:257)
	at org.springframework.cloud.openfeign.FeignClientFactoryBean.getObject(FeignClientFactoryBean.java:247)
	at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:171)
	... 135 common frames omitted




config:


dubbo:
      scan:
            basePackages: com.fgi.glo.aaa.bbb.ccc.facade
      application:
                    version: 1.1.1
                    id: hgyFacadeId
                    name: hgyFacade
      config:
              multiple: true
      protocols:
                  dubbo:
                        id: dubbo
                        name: dubbo
                        port: 20880
                        status: server
      registries:
                   general:
                            id: generalRegistry
                            address: zookeeper://10.96.79.168:2181





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


[GitHub] [dubbo-spring-boot-project] xuelianhan commented on issue #608: No registry config found or it's not a valid config! The registry config is:

Posted by "xuelianhan (GitHub)" <gi...@apache.org>.
The registries format may be the reason. Try the following format:
![test](https://user-images.githubusercontent.com/3296399/71955051-2fc5f200-3222-11ea-8c74-c91d6e15ceca.png)



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


[GitHub] [dubbo-spring-boot-project] xuelianhan commented on issue #608: No registry config found or it's not a valid config! The registry config is:

Posted by "xuelianhan (GitHub)" <gi...@apache.org>.
The registries format may be the reason. Try the following format:
 registries:
    generalRegistry:
        address: zookeeper://10.96.79.168:2181

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


[GitHub] [dubbo-spring-boot-project] zondahuman commented on issue #608: No registry config found or it's not a valid config! The registry config is:

Posted by "zondahuman (GitHub)" <gi...@apache.org>.
记得看别人都说是2.7.2里面已经解决了,我现在用的2.7.3,spring cloud+dubbo调用feign的时候,添加了@Lazy才正常,关键之前没加这个也没问题
@Resource
    @Lazy
    CompleteFeignService completeFeignService;

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

[GitHub] [dubbo-spring-boot-project] mercyblitz closed issue #608: No registry config found or it's not a valid config! The registry config is:

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

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


[GitHub] [dubbo-spring-boot-project] zondahuman commented on issue #608: No registry config found or it's not a valid config! The registry config is:

Posted by "zondahuman (GitHub)" <gi...@apache.org>.
记得看别人都说是2.7.2里面已经解决了,我现在用的2.7.3,spring cloud+dubbo调用feign的时候,添加了@Lazy才正常,关键之前没加这个也没问题
@Resource
    @Lazy
    CompleteFeignService completeFeignService;



    <dependencyManagement>
        <dependencies>
            <!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-dependencies -->
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>Greenwich.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <dependency>
                <!-- Import dependency management from Spring Boot -->
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>2.1.6.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <dependency>
                <groupId>org.apache.dubbo</groupId>
                <artifactId>dubbo-dependencies-bom</artifactId>
                <version>2.7.3</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

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