You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "yufeng629 (GitHub)" <gi...@apache.org> on 2018/10/18 06:28:41 UTC
[GitHub] [incubator-dubbo-spring-boot-project] yufeng629 opened issue #296: consumer引用提供者报NullPointerException
以DemoService为例,当DemoService没有任何服务提供者暴露到注册中心的时候,此时启动consumer,这时在消费者端不会生成DemoService的代理对象,导致程序运行的时候就报NullPointerException异常,我用springboot 1.5.13、dubbo 2.6.2、dubbo-starter 0.1.0、curator 4.0.1
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/296 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz commented on issue #296: consumer引用提供者报NullPointerException
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
This issue has been fixed on 2.6.5
Please add dependencies in your Maven `pom.xml`, like this:
```xml
<!-- Dubbo -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.6.5</version>
</dependency>
<!-- Spring Context Extras -->
<dependency>
<groupId>com.alibaba.spring</groupId>
<artifactId>spring-context-support</artifactId>
<version>1.0.2</version>
</dependency>
```
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/296 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
[GitHub] [incubator-dubbo-spring-boot-project] mercyblitz closed issue #296: consumer引用提供者报NullPointerException
Posted by "mercyblitz (GitHub)" <gi...@apache.org>.
[ issue closed by mercyblitz ]
[ Full content available at: https://github.com/apache/incubator-dubbo-spring-boot-project/issues/296 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org