Unkown
Unkown
client
``` async fn send_request( self, mut req: Request, pool_key: PoolKey, ) -> Result { let mut pooled = self.connection_for(pool_key).await?; req.extensions_mut() .get_mut::() .map(|conn| conn.set(&pooled.conn_info)); if pooled.is_http1() { if req.version() == Version::HTTP_2...
` 2021-11-30 10:30:52 [New I/O client worker #1-1] ERROR org.apache.shenyu.plugin.alibaba.dubbo.AlibabaDubboPlugin - dubbo failed using async genericInvoker() metaData=MetaData{id='1461601432558649344', appName='dubbo-sample-webapp', contextPath='/dubbo-sample-webapp', path='/dubbo-sample-webapp/student/findById', rpcType='dubbo', serviceName='com.meip.gateway.inf.StudentInterface', methodName='findById', parameterTypes='long', rpcExt='{"loadbalance":"random","retries":2,"timeout":3000,"sent":false}', enabled=true} param={"id":"10"} java.lang.RuntimeException: java.lang.RuntimeException: Illegal...
### Interface `public interface StudentInterface { Student findById(long id); List findByArrays(Long[] ids); }` ### impl `@DubboService public class StudentInterfaceImpl implements StudentInterface { @Override @ShenyuDubboClient(path = "/student/findById") public Student findById(long id)...
### primitive type : long ` public Student findById(long id) { return Student.builder().id(id).age(20).height(170).name("测试").sex(Sex.MALE).build(); } `
### If is Long Then true ` public Student findById(Long id) `
Request is error not Response ` @Data @Builder public class Student implements Serializable { private long id; private String name; private int age; private Sex sex; private int height; }...
[是否是基本类型拼装类型的问题](https://dubbo.apache.org/zh/blog/2018/08/14/dubbo%E7%9A%84%E6%B3%9B%E5%8C%96%E8%B0%83%E7%94%A8/) ### GenericService 这个接口只有一个方法,名为 $invoke,它接受三个参数,分别为方法名、方法参数类型数组和参数值数组; 对于方法参数类型数组 1. 如果是基本类型,如 int 或 long,可以使用 int.class.getName()获取其类型; 2. 如果是基本类型数组,如 int[],则可以使用 int[].class.getName(); 3. 如果是 POJO,则直接使用全类名,如 com.alibaba.dubbo.samples.generic.api.Params。
Or it could be a Dubbo BUG
### ApacheDubboProxyService Line : 84 ` return Mono.fromFuture(invokeAsync(genericService, metaData.getMethodName(), pair.getLeft(), pair.getRight()).thenApply(ret -> { if (Objects.isNull(ret)) { ret = Constants.DUBBO_RPC_RESULT_EMPTY; } exchange.getAttributes().put(Constants.RPC_RESULT, ret); exchange.getAttributes().put(Constants.CLIENT_RESPONSE_RESULT_TYPE, ResultEnum.SUCCESS.getName()); return ret; })).onErrorMap(exception -> exception instanceof...