You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "sq1015 (via GitHub)" <gi...@apache.org> on 2023/06/14 03:05:20 UTC

[GitHub] [servicecomb-java-chassis] sq1015 opened a new issue, #3829: InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错

sq1015 opened a new issue, #3829:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3829

   https://github.com/apache/servicecomb-java-chassis/blob/6bcdc2ea3729bb14bb188fe3d60a0b33aa9afabb/providers/provider-pojo/src/main/java/org/apache/servicecomb/provider/pojo/FilterInvocationCaller.java#LL48C26-L48C26
   
   InvokerUtils.invoke(invocation).thenApply(invocation::convertResponse)
   
   InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错
   org.apache.servicecomb.swagger.invocation.exception.InvocationException cannot be cast to com.example.model.AppInfo


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

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


[GitHub] [servicecomb-java-chassis] sq1015 commented on issue #3829: InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错

Posted by "sq1015 (via GitHub)" <gi...@apache.org>.
sq1015 commented on issue #3829:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3829#issuecomment-1621261795

   `@RestSchema(schemaId = "app-test")
   @RequestMapping(path = "/app-test/v1/")
   public class AppTestController {
       @RpcReference(microserviceName = "Service:AppService",
           schemaId = "publish")
       private PublishApi publishApi;
   
       @PostMapping(path = "/app/list", produces = MediaType.APPLICATION_JSON_VALUE,
           consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
       public GetAppListRspForSeas queryAppTest() {
   
           AppInfo appInfo = publishApi.getAppInfo("6818657360", null, null);
   
           return new GetAppListRspForSeas();
       }
   }`
   
   
    AppInfo appInfo = publishApi.getAppInfo("6818657360", null, null); 这地方报的错,queryAppTest接口调用前,故意断网了(PublishApi服务是访问不通的 )


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3829: InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #3829:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3829#issuecomment-1608608877

   你方便提供一个测试用例吗?即如何复现你的问题,方便我们分析和验证。


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-java-chassis] sq1015 commented on issue #3829: InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错

Posted by "sq1015 (via GitHub)" <gi...@apache.org>.
sq1015 commented on issue #3829:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3829#issuecomment-1605940072

   是的,开启了Filter 机制


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-java-chassis] sq1015 commented on issue #3829: InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错

Posted by "sq1015 (via GitHub)" <gi...@apache.org>.
sq1015 commented on issue #3829:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3829#issuecomment-1594254808

   2.8.7版本,rpc调用,模拟了连接超时的异常场景


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3829: InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #3829:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3829#issuecomment-1596406510

   你启用了 Filter 机制吗? 这个版本默认没开启这个机制。 感觉你贴的代码是否不符合实际情况。 


-- 
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: commits-unsubscribe@servicecomb.apache.org

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


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3829: InvokerUtils.invoke(invocation)不抛异常,convertResponse方法报错

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #3829:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3829#issuecomment-1592239010

   你在尝试最新版本吗?使用场景是怎么样的?


-- 
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: commits-unsubscribe@servicecomb.apache.org

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