kody1025 opened a new issue #9479:
URL: https://github.com/apache/dubbo/issues/9479


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ## Ask your question here
   Dubbo version: 2.7.14
   在同一个项目里面暴露服务和引用:
   @DubboService
   public class CustomMatchDubboService implements CustomMatchApi {}
   
   @RestController
   public class CustomMatchController {
       @DubboReference(injvm=true, connections=1)
       private CustomMatchApi customMatchApi;
   
   出现报错:
   Caused by: java.lang.IllegalStateException: Failed to check the status of 
the service com.api.CustomMatchApi. No provider available for the service 
com.api.CustomMatchApi from the url 
injvm://127.0.0.1/com.api.CustomMatchApi?application=oxp-upms-server&connections=1&dubbo=2.0.2&dump.directory=/opt/dubbo&init=false&injvm=true&interface=com.api.CustomMatchApi&methods=oneCustomizeMatchResult,batchCustomizeMatchResult&pid=72340&qos.enable=false&register.ip=10.108.81.167&release=2.7.14&side=consumer&sticky=false&timestamp=1640248512267
 to the consumer 10.108.81.167 use dubbo version 2.7.14
   
   debug发现:
   
![图片](https://user-images.githubusercontent.com/16163530/147212342-78770b05-eb8c-44eb-9b89-841d60c06e32.png)
   
在引用bean增强器ReferenceAnnotationBeanPostProcessor里拿到的注解属性只有connections,而没有injvm,导致后面的isLocalServiceBean返回false而没有做到injvm相关的操作。请问应该如何解决?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to