This is an automated email from the ASF dual-hosted git repository. liubao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-servicecomb-java-chassis.git
commit bc618004997bb2ba332576600dcb8b167f19f162 Author: jeho0815 <jeho0...@email.com> AuthorDate: Fri Mar 9 16:16:04 2018 +0800 SCB-373 change Rest args code/encoding to HttpClientFilter/HttpServerFilter --- .../servicecomb/common/rest/filter/inner/ClientRestArgsFilter.java | 2 +- .../servicecomb/common/rest/filter/inner/ServerRestArgsFilter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ClientRestArgsFilter.java b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ClientRestArgsFilter.java index db5aed6..099d313 100644 --- a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ClientRestArgsFilter.java +++ b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ClientRestArgsFilter.java @@ -45,7 +45,7 @@ public class ClientRestArgsFilter implements HttpClientFilter { try { RestCodec.argsToRest(invocation.getArgs(), swaggerRestOperation, restClientRequest); requestEx.setBodyBuffer(restClientRequest.getBodyBuffer()); - } catch (Exception e) { + } catch (Throwable e) { throw ExceptionFactory.convertConsumerException(e); } } diff --git a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ServerRestArgsFilter.java b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ServerRestArgsFilter.java index 000defc..830e33b 100644 --- a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ServerRestArgsFilter.java +++ b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/filter/inner/ServerRestArgsFilter.java @@ -62,7 +62,7 @@ public class ServerRestArgsFilter implements HttpServerFilter { produceProcessor.encodeResponse(output, body); responseEx.setBodyBuffer(output.getBuffer()); - } catch (Exception e) { + } catch (Throwable e) { throw ExceptionFactory.convertProducerException(e); } } -- To stop receiving notification emails like this one, please contact liu...@apache.org.