apache / apache/dubbo

Dubbo2.7.14 injvm调用问题

Open
#9,479 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

- [ ] 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®ister.ip=10.108.81.167&release=2.7.14&side=consumer&sticky=false×tamp=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)
在ReferenceAnnotationBeanPostProcessor里拿到的注解属性只有connections,而没有injvm,导致后面的isLocalServiceBean返回false而没有做到injvm相关的操作。请问应该如何解决?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.