willlau0524 opened a new issue #1765: 使用@Reference注解,如果对应服务没有实例,报错之后这个对象一直为空
URL: https://github.com/apache/incubator-dubbo/issues/1765
 
 
   最近服务上线的时候发现,使用@Reference 注解去引用某个服务,如果这个服务没有实例在zk,那么会抛出一个 
IllegalStateException, 信息是 No provider available for the service  xxxx。 
此时使用这个注解修饰的对象会置为空,那么后续就算有实例上线注册到zk了,运行到使用这个对象的代码的时候会报空指针。
   只有在引用服务有实例的时候重启,这样这个引用对象才会正确构建,不知道是故意这么设计的还是一个bug?  经过测试,使用API构建 
ReferenceConfig 没有这个问题

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to