siegezhang opened a new issue, #3394:
URL: https://github.com/apache/incubator-shenyu/issues/3394
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
when json body is {},and dubbo method has ParameterType,can not find dubbo
method
in ApacheDubboProxyService genericInvoker method:
` if (StringUtils.isBlank(metaData.getParameterTypes()) ||
ParamCheckUtils.dubboBodyIsEmpty(body)) {
pair = new ImmutablePair<>(new String[]{}, new Object[]{});
} else {
pair = dubboParamResolveService.buildParameter(body,
metaData.getParameterTypes());
}
`
when StringUtils.isBlank(metaData.getParameterTypes() is false, and
ParamCheckUtils.dubboBodyIsEmpty(body) is true(we input an {} to dubbo
method),the dubbo method has parameterTypes,because of:
`
pair = new ImmutablePair<>(new String[]{}, new Object[]{});
`
we lost the parameterTypes,then invoke dubbo throw
java.lang.NoSuchMethodException
### Expected Behavior
_No response_
### Steps To Reproduce
_No response_
### Environment
```markdown
ShenYu version(s):2.4.3
```
### Debug logs
_No response_
### Anything else?
_No response_
--
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]