You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/06/03 11:44:41 UTC

[GitHub] [servicecomb-java-chassis] zhuqing205 opened a new issue #1813: 升级serviceComb2.0.0,定义RPC调用方式所使用的代理接口调不通

zhuqing205 opened a new issue #1813:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1813


   1、之前使用的是1.2.1版本的,使用spring-boot-starter-provider启动,
   2、现在2.0.0版本修改为java-chassis-spring-boot-starter后
   启动报错,提示在maven-compiler-plugin中添加<compilerArgument>-parameters</compilerArgument>
   3、完成后,微服务启动,但是cse接口一直提示如下错误
   
   [2020/06/03 19:14:57.041][WARN][new consumer invoke old version producer, parameter(xxxxx) is not exist in contract, method=xxxxx.][org.apache.servicecomb.swagger.invocation.arguments.consumer.ConsumerArgumentsMapperCreator][processUnknownParameter,80][ForkJoinPool.commonPool-worker-1]
   [2020/06/03 19:14:57.041][WARN][new consumer invoke old version producer, parameter(xxx) is not exist in contract, method=xxxx.][org.apache.servicecomb.swagger.invocation.arguments.consumer.ConsumerArgumentsMapperCreator][processUnknownParameter,80][ForkJoinPool.commonPool-worker-1]
   [2020/06/03 19:14:57.045][INFO][select [org.apache.servicecomb.swagger.generator.pojo.PojoSwaggerGeneratorFactory] for [xxxxxx] to generate schema.][org.apache.servicecomb.swagger.generator.SwaggerGenerator][create,39][ForkJoinPool.commonPool-worker-1]
   [2020/06/03 19:14:57.092][ERROR][Parameter is not valid for operation [xxxxxx]. Parameter is [xxxxx]. Processor is [query]. Add servicecomb.codec.printErrorMessage=true to print the details.][org.apache.servicecomb.common.rest.codec.RestCodec][restToArgs,75][group1-2-thread-2]
   [2020/06/03 19:14:57.092][ERROR][unknown rest exception.][org.apache.servicecomb.common.rest.AbstractRestInvocation][invoke,221][group1-2-thread-2]
   org.apache.servicecomb.swagger.invocation.exception.InvocationException: InvocationException: code=400;msg=CommonExceptionData [message=Parameter is not valid for operation [xxxxx]. Parameter is [xxxx]. Processor is [query].]
   	at org.apache.servicecomb.common.rest.codec.RestCodec.restToArgs(RestCodec.java:77) ~[common-rest-2.0.0.jar:2.0.0]
   	at org.apache.servicecomb.common.rest.filter.inner.ServerRestArgsFilter.afterReceiveRequest(ServerRestArgsFilter.java:62) ~[common-rest-2.0.0.jar:2.0.0]
   	at org.apache.servicecomb.common.rest.AbstractRestInvocation.prepareInvoke(AbstractRestInvocation.java:233) ~[common-rest-2.0.0.jar:2.0.0]
   	at org.apache.servicecomb.common.rest.AbstractRestInvocation.invoke(AbstractRestInvocation.java:213) ~[common-rest-2.0.0.jar:2.0.0]
   	at org.apache.servicecomb.common.rest.AbstractRestInvocation.runOnExecutor(AbstractRestInvocation.java:203) ~[common-rest-2.0.0.jar:2.0.0]
   	at org.apache.servicecomb.common.rest.AbstractRestInvocation.lambda$scheduleInvocation$0(AbstractRestInvocation.java:162) ~[common-rest-2.0.0.jar:2.0.0]
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
   	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1813: 升级serviceComb2.0.0,定义RPC调用方式所使用的代理接口调不通

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1813:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1813#issuecomment-638627904


   建议按照错误提示先看下是否存在对应的问题。 
   1. 警告:`new consumer invoke old version producer, parameter(xxx) is not exist in contract`, 客户端请求的时候,比服务端定义的接口多了参数。 这个通常可以忽略, 如果确实这样, 多余的参数没用,建议修改下;
   2. 错误:`Parameter is not valid for operation`, 根据错误提示加上 ` servicecomb.codec.printErrorMessage`把详细错误打印出来,看看具体错误。 或者调试一下 RestCodec 77 行代码,看看具体错误。


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #1813: 升级serviceComb2.0.0,定义RPC调用方式所使用的代理接口调不通

Posted by GitBox <gi...@apache.org>.
liubao68 edited a comment on issue #1813:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1813#issuecomment-638627904


   建议按照错误提示先看下是否存在对应的问题。 
   1. 警告:`new consumer invoke old version producer, parameter(xxx) is not exist in contract`, 客户端请求的时候,比服务端定义的接口多了参数。 这个通常可以忽略, 如果确实这样, 多余的参数没用,建议修改下;
   2. 错误:`Parameter is not valid for operation`, 根据错误提示加上 ` servicecomb.codec.printErrorMessage`把详细错误打印出来,看看具体错误。 或者调试一下 RestCodec 77 行代码,看看具体错误。
   
   * [spring boot starter 的对应关系参考](https://docs.servicecomb.io/java-chassis/zh_CN/using-java-chassis-in-spring-boot/components-for-spring-boot/)


----------------------------------------------------------------
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.

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



[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #1813: 升级serviceComb2.0.0,定义RPC调用方式所使用的代理接口调不通

Posted by GitBox <gi...@apache.org>.
liubao68 edited a comment on issue #1813:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1813#issuecomment-638627904


   建议按照错误提示先看下是否存在对应的问题。 
   1. 警告:`new consumer invoke old version producer, parameter(xxx) is not exist in contract`, 客户端请求的时候,比服务端定义的接口多了参数。 这个通常可以忽略, 如果确实这样, 多余的参数没用,建议修改下;
   2. 错误:`Parameter is not valid for operation`, 根据错误提示加上 ` servicecomb.codec.printErrorMessage`把详细错误打印出来,看看具体错误。 或者调试一下 RestCodec 77 行代码,看看具体错误。
   
   * [spring boot starter 的对应关系和例子参考](https://docs.servicecomb.io/java-chassis/zh_CN/using-java-chassis-in-spring-boot/components-for-spring-boot/)


----------------------------------------------------------------
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.

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