[jira] [Comment Edited] (SCB-489) Suggest to add Service Center user guide and development guide to the ServiceComb official website
[ https://issues.apache.org/jira/browse/SCB-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524428#comment-16524428 ] miaoyanjie edited comment on SCB-489 at 6/27/18 1:29 AM: - 我觉得可以做一些基于servicecomb的微服务的业务系统的demo案例,要一整套的,如同当年微软和IBM做的那个petshop案例,当然有些文档的介绍是最好的,现在零零散散的demo和文章,组合起来需要很多精力,搭建成一个微服务系统需要方方面面的。 举个例子,我们开发时,用的是mybatis+springboot, 当然是用最新的了,结果java-chassis是基于某个springboot版本的,问了半天才知道怎么解决这问题。 was (Author: msnetc): 我觉得可以做一些基于servicecomb的微服务的业务系统的demo案例,要一整套的,如同当年微软和IBM做的那个petshop案例,当然有些文档的介绍是最后的,现在零零散散的demo和文章,组合起来需要很多精力,搭建成一个微服务系统需要方方面面的。 举个例子,我们开发时,用的是mybatis+springboot, 当然是用最新的了,结果java-chassis是基于某个springboot版本的,问了半天才知道怎么解决这问题。 > Suggest to add Service Center user guide and development guide to the > ServiceComb official website > -- > > Key: SCB-489 > URL: https://issues.apache.org/jira/browse/SCB-489 > Project: Apache ServiceComb > Issue Type: Improvement > Components: Service-Center, website >Reporter: mabin >Priority: Major > > Suggest to add Service Center user guide to the ServiceComb official > website,so that users can look up it more quickly. > Reference documents: > https://github.com/apache/incubator-servicecomb-service-center/tree/master/docs -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Comment Edited] (SCB-489) Suggest to add Service Center user guide and development guide to the ServiceComb official website
[ https://issues.apache.org/jira/browse/SCB-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524428#comment-16524428 ] miaoyanjie edited comment on SCB-489 at 6/27/18 1:26 AM: - 我觉得可以做一些基于servicecomb的微服务的业务系统的demo案例,要一整套的,如同当年微软和IBM做的那个petshop案例,当然有些文档的介绍是最后的,现在零零散散的demo和文章,组合起来需要很多精力,搭建成一个微服务系统需要方方面面的。 举个例子,我们开发时,用的是mybatis+springboot, 当然是用最新的了,结果java-chassis是基于某个springboot版本的,问了半天才知道怎么解决这问题。 was (Author: msnetc): 我觉得可以做一些基于servicecomb的微服务的业务系统的demo案例,要一整套的,如同当年微软和IBM做的那个petshop案例,当然有些文档的介绍是最后的,而不是现在零零散散的demo和文章,搭建成一个微服务系统需要方方面面的。 > Suggest to add Service Center user guide and development guide to the > ServiceComb official website > -- > > Key: SCB-489 > URL: https://issues.apache.org/jira/browse/SCB-489 > Project: Apache ServiceComb > Issue Type: Improvement > Components: Service-Center, website >Reporter: mabin >Priority: Major > > Suggest to add Service Center user guide to the ServiceComb official > website,so that users can look up it more quickly. > Reference documents: > https://github.com/apache/incubator-servicecomb-service-center/tree/master/docs -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Comment Edited] (SCB-489) Suggest to add Service Center user guide and development guide to the ServiceComb official website
[ https://issues.apache.org/jira/browse/SCB-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524428#comment-16524428 ] miaoyanjie edited comment on SCB-489 at 6/27/18 1:24 AM: - 我觉得可以做一些基于servicecomb的微服务的业务系统的demo案例,要一整套的,如同当年微软和IBM做的那个petshop案例,当然有些文档的介绍是最后的,而不是现在零零散散的demo和文章,搭建成一个微服务系统需要方方面面的。 was (Author: msnetc): 我觉得可以做一些基于servicecomb的微服务的业务系统的demo案例,要一整套的,如同当年微软和IBM做的那个petshop案例,当然有些文档的介绍是最后的,而不是现在零零散散的demo和文章,搭建成一个微服务系统需要方方面面的。 > Suggest to add Service Center user guide and development guide to the > ServiceComb official website > -- > > Key: SCB-489 > URL: https://issues.apache.org/jira/browse/SCB-489 > Project: Apache ServiceComb > Issue Type: Improvement > Components: Service-Center, website >Reporter: mabin >Priority: Major > > Suggest to add Service Center user guide to the ServiceComb official > website,so that users can look up it more quickly. > Reference documents: > https://github.com/apache/incubator-servicecomb-service-center/tree/master/docs -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (SCB-489) Suggest to add Service Center user guide and development guide to the ServiceComb official website
[ https://issues.apache.org/jira/browse/SCB-489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16524428#comment-16524428 ] miaoyanjie commented on SCB-489: 我觉得可以做一些基于servicecomb的微服务的业务系统的demo案例,要一整套的,如同当年微软和IBM做的那个petshop案例,当然有些文档的介绍是最后的,而不是现在零零散散的demo和文章,搭建成一个微服务系统需要方方面面的。 > Suggest to add Service Center user guide and development guide to the > ServiceComb official website > -- > > Key: SCB-489 > URL: https://issues.apache.org/jira/browse/SCB-489 > Project: Apache ServiceComb > Issue Type: Improvement > Components: Service-Center, website >Reporter: mabin >Priority: Major > > Suggest to add Service Center user guide to the ServiceComb official > website,so that users can look up it more quickly. > Reference documents: > https://github.com/apache/incubator-servicecomb-service-center/tree/master/docs -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Resolved] (SCB-697) Service comb chassis must support JAX-RS @DefaultValue
[ https://issues.apache.org/jira/browse/SCB-697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] sukesh resolved SCB-697. Resolution: Fixed > Service comb chassis must support JAX-RS @DefaultValue > -- > > Key: SCB-697 > URL: https://issues.apache.org/jira/browse/SCB-697 > Project: Apache ServiceComb > Issue Type: Improvement >Reporter: sukesh >Assignee: sukesh >Priority: Major > > adding default values using @DefaultValue annotation is not working as the > same is not generated in swagger. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Closed] (SCB-697) Service comb chassis must support JAX-RS @DefaultValue
[ https://issues.apache.org/jira/browse/SCB-697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] sukesh closed SCB-697. -- > Service comb chassis must support JAX-RS @DefaultValue > -- > > Key: SCB-697 > URL: https://issues.apache.org/jira/browse/SCB-697 > Project: Apache ServiceComb > Issue Type: Improvement >Reporter: sukesh >Assignee: sukesh >Priority: Major > > adding default values using @DefaultValue annotation is not working as the > same is not generated in swagger. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Assigned] (SCB-701) RequestBody(required = false) and when requestBody is null then exception observed
[ https://issues.apache.org/jira/browse/SCB-701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mahesh Raju Somalaraju reassigned SCB-701: -- Assignee: sukesh (was: Mahesh Raju Somalaraju) > RequestBody(required = false) and when requestBody is null then exception > observed > -- > > Key: SCB-701 > URL: https://issues.apache.org/jira/browse/SCB-701 > Project: Apache ServiceComb > Issue Type: Improvement > Components: Java-Chassis >Affects Versions: java-chassis-1.0.0-m2 >Reporter: Mahesh Raju Somalaraju >Assignee: sukesh >Priority: Major > Fix For: java-chassis-1.0.0-m2 > > > RequestBody(required = false) and when requestBody is null then exception > observed > > @ApiOperation(value = "saysomething", notes = "saysomething") > @RequestMapping(path = "/saysomething", method = RequestMethod.POST) > @Transactional(propagation = Propagation.REQUIRED, rollbackFor = > Exception.class) > public String saySomething(@RequestBody(required=false) > @ApiParam(required=false) Person user) throws Exception { > if (user == null) { > return "please provide user details"; > } > return user.getName(); > } > > When requestBody is null then Exception is oberved. when requestbody > required is false then no Exception should come. > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Created] (SCB-701) RequestBody(required = false) and when requestBody is null then exception observed
Mahesh Raju Somalaraju created SCB-701: -- Summary: RequestBody(required = false) and when requestBody is null then exception observed Key: SCB-701 URL: https://issues.apache.org/jira/browse/SCB-701 Project: Apache ServiceComb Issue Type: Improvement Components: Java-Chassis Affects Versions: java-chassis-1.0.0-m2 Reporter: Mahesh Raju Somalaraju Assignee: Mahesh Raju Somalaraju Fix For: java-chassis-1.0.0-m2 RequestBody(required = false) and when requestBody is null then exception observed @ApiOperation(value = "saysomething", notes = "saysomething") @RequestMapping(path = "/saysomething", method = RequestMethod.POST) @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public String saySomething(@RequestBody(required=false) @ApiParam(required=false) Person user) throws Exception { if (user == null) { return "please provide user details"; } return user.getName(); } When requestBody is null then Exception is oberved. when requestbody required is false then no Exception should come. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (SCB-697) Service comb chassis must support JAX-RS @DefaultValue
[ https://issues.apache.org/jira/browse/SCB-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523674#comment-16523674 ] ASF GitHub Bot commented on SCB-697: liubao68 closed pull request #779: [SCB-697] Service comb chassis must support JAX-RS @DefaultValue URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/779 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/param/FormProcessorCreator.java b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/param/FormProcessorCreator.java index 58b3a672f8..3605af5809 100644 --- a/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/param/FormProcessorCreator.java +++ b/common/common-rest/src/main/java/org/apache/servicecomb/common/rest/codec/param/FormProcessorCreator.java @@ -53,7 +53,15 @@ public Object getValue(HttpServletRequest request) { return convertValue(request.getParameterValues(paramPath), targetType); } - return convertValue(request.getParameter(paramPath), targetType); + Object value = request.getParameter(paramPath); + if (value == null || value.equals("")) { +Object defaultValue = getDefaultValue(); +if (defaultValue != null) { + value = defaultValue; +} + } + + return convertValue(value, targetType); } @Override diff --git a/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/JaxrsClient.java b/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/JaxrsClient.java index 1ecf7f5543..64b4df8dcd 100644 --- a/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/JaxrsClient.java +++ b/demo/demo-jaxrs/jaxrs-client/src/main/java/org/apache/servicecomb/demo/jaxrs/client/JaxrsClient.java @@ -63,6 +63,7 @@ public static void run() throws Exception { testCompute(templateNew); testValidator(templateNew); testClientTimeOut(templateNew); +testDefaultValues(templateNew); } private static void testCompute(RestTemplate template) throws Exception { @@ -99,6 +100,26 @@ private static void testValidator(RestTemplate template) throws Exception { } } + private static void testDefaultValues(RestTemplate template) throws Exception { +String microserviceName = "jaxrs"; +for (String transport : DemoConst.transports) { + CseContext.getInstance().getConsumerProviderManager().setTransport(microserviceName, transport); + TestMgr.setMsg(microserviceName, transport); + + String cseUrlPrefix = "cse://" + microserviceName + "/default/"; + + TestMgr.check("40", + template.getForObject(cseUrlPrefix + "/add", + String.class)); + + TestMgr.check("hi test your age is : 20", + template.getForObject(cseUrlPrefix + "/sayhei", + String.class)); + + +} + } + private static void testGet(RestTemplate template, String cseUrlPrefix) { Map params = new HashMap<>(); @@ -188,7 +209,8 @@ private static void testValidatorAddFail(RestTemplate template, String cseUrlPre // ignored TestMgr.check( "CommonExceptionData [message=[ConstraintViolationImpl{interpolatedMessage=", - e.getErrorData().toString().substring(0, "CommonExceptionData [message=[ConstraintViolationImpl{interpolatedMessage=".length())); + e.getErrorData().toString().substring(0, + "CommonExceptionData [message=[ConstraintViolationImpl{interpolatedMessage=".length())); } TestMgr.check(true, isExcep); @@ -213,7 +235,8 @@ private static void testValidatorSayHiFail(RestTemplate template, String cseUrlP // Message dependends on locale, so just check the short part. TestMgr.check( "CommonExceptionData [message=[ConstraintViolationImpl{interpolatedMessage=", - e.getErrorData().toString().substring(0, "CommonExceptionData [message=[ConstraintViolationImpl{interpolatedMessage=".length())); + e.getErrorData().toString().substring(0, + "CommonExceptionData [message=[ConstraintViolationImpl{interpolatedMessage=".length())); } TestMgr.check(true, isExcep); } @@ -245,7 +268,8 @@ private static void testValidatorExchangeFail(RestTemplate template, String cseU // Message dependends on locale, so just check the short part. TestMgr.check( "CommonExceptionData [message=[ConstraintViolationImpl{interpolatedMessage=", - e.getErrorData().toString().substring(0, "CommonExceptionData [message=[ConstraintViola
[jira] [Created] (SCB-700) Check server status when choose an available server
liubao created SCB-700: -- Summary: Check server status when choose an available server Key: SCB-700 URL: https://issues.apache.org/jira/browse/SCB-700 Project: Apache ServiceComb Issue Type: Improvement Reporter: liubao Assignee: liubao In loadbalance, now we assume all server's are ready to server. But SC will have several minutes to check if instance is down. We need to check server status to reduce invoke and fail. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (SCB-697) Service comb chassis must support JAX-RS @DefaultValue
[ https://issues.apache.org/jira/browse/SCB-697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523636#comment-16523636 ] ASF GitHub Bot commented on SCB-697: acsukesh opened a new pull request #779: [SCB-697] Service comb chassis must support JAX-RS @DefaultValue URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/779 Follow this checklist to help us incorporate your contribution quickly and easily: - [ ] Make sure there is a [JIRA issue](https://issues.apache.org/jira/browse/SCB) filed for the change (usually before you start working on it). Trivial changes like typos do not require a JIRA issue. Your pull request should address just this issue, without pulling in other changes. - [ ] Each commit in the pull request should have a meaningful subject line and body. - [ ] Format the pull request title like `[SCB-XXX] Fixes bug in ApproximateQuantiles`, where you replace `SCB-XXX` with the appropriate JIRA issue. - [ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [ ] Run `mvn clean install` to make sure basic checks pass. A more thorough check will be performed on your pull request automatically. - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). --- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Service comb chassis must support JAX-RS @DefaultValue > -- > > Key: SCB-697 > URL: https://issues.apache.org/jira/browse/SCB-697 > Project: Apache ServiceComb > Issue Type: Improvement >Reporter: sukesh >Assignee: sukesh >Priority: Major > > adding default values using @DefaultValue annotation is not working as the > same is not generated in swagger. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (SCB-699) 使用Mock机制启动服务中心的时候,报找不到服务的schema定义
[ https://issues.apache.org/jira/browse/SCB-699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523601#comment-16523601 ] ASF GitHub Bot commented on SCB-699: fangnoo opened a new pull request #778: [SCB-699] add schemaIds field in register.yaml when mock the Local se… URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/778 registery.yaml template: ``` auth-provider: - id: "001" version: "0.0.1" appid: auth-sample #调试的服务id schemaIds: - springmvcHello instances: - endpoints: - rest://127.0.0.1:8080 ``` This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > 使用Mock机制启动服务中心的时候,报找不到服务的schema定义 > - > > Key: SCB-699 > URL: https://issues.apache.org/jira/browse/SCB-699 > Project: Apache ServiceComb > Issue Type: Bug > Components: Java-Chassis >Affects Versions: java-chassis-1.0.0-m2 >Reporter: fang qiang >Priority: Major > Attachments: image-2018-06-26-19-11-26-692.png > > > 在samples下面使用auth-sample的配置本地mock注册中心方式, > System.setProperty("local.registry.file", > "xxx/src\\main\\resources\\register.yaml"); > register.yaml > {code:java} > //代码占位符 > auth-provider: > - id: "001" > version: "0.0.1" > appid: auth-sample #调试的服务id > instances: > - endpoints: > - rest://127.0.0.1:8080 > {code} > 同时在resource下面放了契约文件。 > !image-2018-06-26-19-11-26-692.png! > 启动consumer报错: > {code:java} > 2018-06-26 19:04:04,889 [INFO] add microserviceVersion, appId=auth-sample, > microserviceName=auth-provider, version=0.0.1, versionRule=0.0.1. > org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersionRule.addMicroserviceVersion(MicroserviceVersionRule.java:89) > 2018-06-26 19:04:04,891 [INFO] set instances, appId=auth-sample, > microserviceName=auth-provider, versionRule=0.0.1, > instanceId=ced13ef2-f181-49db-a3a7-5d6996e3a278, version=0.0.1, > endpoints=[rest://127.0.0.1:8080]. > org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersionRule.lambda$setInstances$0(MicroserviceVersionRule.java:161) > Exception in thread "main" java.lang.Error: no schema defined for > auth-sample:auth-provider > at > org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.createRequestMeta(CseClientHttpRequest.java:157) > at > org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.execute(CseClientHttpRequest.java:138) > at > org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:660) > at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:621) > at > org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:388) > at > org.apache.servicecomb.provider.springmvc.reference.RestTemplateWrapper.postForObject(RestTemplateWrapper.java:113) > at > org.apache.servicecomb.samples.auth.consumer.AuthConsumerMain.main(AuthConsumerMain.java:44) > {code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (SCB-699) 使用Mock机制启动服务中心的时候,报找不到服务的schema定义
[ https://issues.apache.org/jira/browse/SCB-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] fang qiang updated SCB-699: --- Summary: 使用Mock机制启动服务中心的时候,报找不到服务的schema定义 (was: 会用local注册中心的时候,无报找不到服务的schema定义) > 使用Mock机制启动服务中心的时候,报找不到服务的schema定义 > - > > Key: SCB-699 > URL: https://issues.apache.org/jira/browse/SCB-699 > Project: Apache ServiceComb > Issue Type: Bug > Components: Java-Chassis >Affects Versions: java-chassis-1.0.0-m2 >Reporter: fang qiang >Priority: Major > Attachments: image-2018-06-26-19-11-26-692.png > > > 在samples下面使用auth-sample的配置本地mock注册中心方式, > System.setProperty("local.registry.file", > "xxx/src\\main\\resources\\register.yaml"); > register.yaml > {code:java} > //代码占位符 > auth-provider: > - id: "001" > version: "0.0.1" > appid: auth-sample #调试的服务id > instances: > - endpoints: > - rest://127.0.0.1:8080 > {code} > 同时在resource下面放了契约文件。 > !image-2018-06-26-19-11-26-692.png! > 启动consumer报错: > {code:java} > 2018-06-26 19:04:04,889 [INFO] add microserviceVersion, appId=auth-sample, > microserviceName=auth-provider, version=0.0.1, versionRule=0.0.1. > org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersionRule.addMicroserviceVersion(MicroserviceVersionRule.java:89) > 2018-06-26 19:04:04,891 [INFO] set instances, appId=auth-sample, > microserviceName=auth-provider, versionRule=0.0.1, > instanceId=ced13ef2-f181-49db-a3a7-5d6996e3a278, version=0.0.1, > endpoints=[rest://127.0.0.1:8080]. > org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersionRule.lambda$setInstances$0(MicroserviceVersionRule.java:161) > Exception in thread "main" java.lang.Error: no schema defined for > auth-sample:auth-provider > at > org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.createRequestMeta(CseClientHttpRequest.java:157) > at > org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.execute(CseClientHttpRequest.java:138) > at > org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:660) > at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:621) > at > org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:388) > at > org.apache.servicecomb.provider.springmvc.reference.RestTemplateWrapper.postForObject(RestTemplateWrapper.java:113) > at > org.apache.servicecomb.samples.auth.consumer.AuthConsumerMain.main(AuthConsumerMain.java:44) > {code} > -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Created] (SCB-699) 会用local注册中心的时候,无报找不到服务的schema定义
fang qiang created SCB-699: -- Summary: 会用local注册中心的时候,无报找不到服务的schema定义 Key: SCB-699 URL: https://issues.apache.org/jira/browse/SCB-699 Project: Apache ServiceComb Issue Type: Bug Components: Java-Chassis Affects Versions: java-chassis-1.0.0-m2 Reporter: fang qiang Attachments: image-2018-06-26-19-11-26-692.png 在samples下面使用auth-sample的配置本地mock注册中心方式, System.setProperty("local.registry.file", "xxx/src\\main\\resources\\register.yaml"); register.yaml {code:java} //代码占位符 auth-provider: - id: "001" version: "0.0.1" appid: auth-sample #调试的服务id instances: - endpoints: - rest://127.0.0.1:8080 {code} 同时在resource下面放了契约文件。 !image-2018-06-26-19-11-26-692.png! 启动consumer报错: {code:java} 2018-06-26 19:04:04,889 [INFO] add microserviceVersion, appId=auth-sample, microserviceName=auth-provider, version=0.0.1, versionRule=0.0.1. org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersionRule.addMicroserviceVersion(MicroserviceVersionRule.java:89) 2018-06-26 19:04:04,891 [INFO] set instances, appId=auth-sample, microserviceName=auth-provider, versionRule=0.0.1, instanceId=ced13ef2-f181-49db-a3a7-5d6996e3a278, version=0.0.1, endpoints=[rest://127.0.0.1:8080]. org.apache.servicecomb.serviceregistry.consumer.MicroserviceVersionRule.lambda$setInstances$0(MicroserviceVersionRule.java:161) Exception in thread "main" java.lang.Error: no schema defined for auth-sample:auth-provider at org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.createRequestMeta(CseClientHttpRequest.java:157) at org.apache.servicecomb.provider.springmvc.reference.CseClientHttpRequest.execute(CseClientHttpRequest.java:138) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:660) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:621) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:388) at org.apache.servicecomb.provider.springmvc.reference.RestTemplateWrapper.postForObject(RestTemplateWrapper.java:113) at org.apache.servicecomb.samples.auth.consumer.AuthConsumerMain.main(AuthConsumerMain.java:44) {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Created] (SCB-698) Pagination displays total count of data and not the filtered count
Mohammad Asif Siddiqui created SCB-698: -- Summary: Pagination displays total count of data and not the filtered count Key: SCB-698 URL: https://issues.apache.org/jira/browse/SCB-698 Project: Apache ServiceComb Issue Type: Bug Components: Service-Center Affects Versions: service-center-1.0.0-m1 Reporter: Mohammad Asif Siddiqui Assignee: Mohammad Asif Siddiqui Fix For: service-center-1.0.0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Created] (SCB-697) Service comb chassis must support JAX-RS @DefaultValue
sukesh created SCB-697: -- Summary: Service comb chassis must support JAX-RS @DefaultValue Key: SCB-697 URL: https://issues.apache.org/jira/browse/SCB-697 Project: Apache ServiceComb Issue Type: Improvement Reporter: sukesh Assignee: sukesh adding default values using @DefaultValue annotation is not working as the same is not generated in swagger. -- This message was sent by Atlassian JIRA (v7.6.3#76005)