You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/25 06:47:02 UTC

[GitHub] [dubbo] Liu-YongDong opened a new issue #9120: dubbo泛化调用问题

Liu-YongDong opened a new issue #9120:
URL: https://github.com/apache/dubbo/issues/9120


   使用dubbo泛化调用时,提供者的入参列表是可变参数列表,我该怎么写paramTypes,现在填的对应提供者入参类型,报错了。。。
    Failed to invoke the method $invoke in the service com.alibaba.dubbo.rpc.service.GenericService.
   
   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [dubbo] Liu-YongDong commented on issue #9120: dubbo泛化调用问题

Posted by GitBox <gi...@apache.org>.
Liu-YongDong commented on issue #9120:
URL: https://github.com/apache/dubbo/issues/9120#issuecomment-953438526


   > `$invoke("sayHello",new String[]{"long",String.class.getName()},new Object[]{1L,"Hello"})` methodName, parameterTypes, args
   
   public ResEntity checkCompAccountState(ComAccountStateBean... req);
   hey, 请看这个提供者的接口参数列表是这样的,当我使用泛化调用是会报错。
   我的测试代码是这样的,请帮我看看,感谢
   $invoke("checkCompAccountState",new String[]{ComAccountStateBean.class.getName()},new Object[]{ComAccountStateBean})


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [dubbo] AlbumenJ commented on issue #9120: dubbo泛化调用问题

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #9120:
URL: https://github.com/apache/dubbo/issues/9120#issuecomment-954712515


   > $invoke("checkCompAccountState",new String[]{ComAccountStateBean.class.getName()},new Object[]{ComAccountStateBean})
   
   这个本身没问题,检查下 genericService 生成的时候指定的 interface 对不对,参数列表对不对


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [dubbo] Liu-YongDong removed a comment on issue #9120: dubbo泛化调用问题

Posted by GitBox <gi...@apache.org>.
Liu-YongDong removed a comment on issue #9120:
URL: https://github.com/apache/dubbo/issues/9120#issuecomment-953437882


   public  ResEntity<Boolean> checkCompAccountState(ComAccountStateBean... req);    
     hey, 请看这个提供者的接口参数列表是这样的,当我使用泛化调用是会报错。
           我的测试代码是这样的;$invoke("checkCompAccountState",new String[]{checkCompAccountState.class.getName()},new Object[]{checkCompAccountState})


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [dubbo] Liu-YongDong commented on issue #9120: dubbo泛化调用问题

Posted by GitBox <gi...@apache.org>.
Liu-YongDong commented on issue #9120:
URL: https://github.com/apache/dubbo/issues/9120#issuecomment-953437882


   public  ResEntity<Boolean> checkCompAccountState(ComAccountStateBean... req);    
     hey, 请看这个提供者的接口参数列表是这样的,当我使用泛化调用是会报错。
           我的测试代码是这样的;$invoke("checkCompAccountState",new String[]{checkCompAccountState.class.getName()},new Object[]{checkCompAccountState})


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [dubbo] AlbumenJ commented on issue #9120: dubbo泛化调用问题

Posted by GitBox <gi...@apache.org>.
AlbumenJ commented on issue #9120:
URL: https://github.com/apache/dubbo/issues/9120#issuecomment-952684735


   `$invoke("sayHello",new String[]{"long",String.class.getName()},new Object[]{1L,"Hello"})`
   methodName, parameterTypes, args


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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