Coder Social home page Coder Social logo

apache / servicecomb-samples Goto Github PK

View Code? Open in Web Editor NEW
498.0 25.0 144.0 1.53 MB

Apache servicecomb

Home Page: https://servicecomb.apache.org/

License: Apache License 2.0

Java 98.55% CSS 0.10% JavaScript 0.33% HTML 0.68% Dockerfile 0.14% Shell 0.19%
servicecomb

servicecomb-samples's Introduction

ServiceComb samples

This project is samples for java-chassis 3.x.x. You can switch to other branches to see different samples.

basic

A sample shows a provider, a consumer and a gateway using java chassis.

porter_lightweight

A sample shows an application with basic login, download file, delete file functions. Read this document for details.

porter_springboot

A sample shows an application with basic login, download file, delete file functions. Read this document for details.

java-chassis-samples

Featured samples for java-chassis modules. Each module contains 10 minutes guides.

java-chassis-integration-tests

java-chassis integration tests。

Precondition

Before running the samples,install service center and kie. Or download Lightweight Cloud Service Engine which integrates both service center and kie for ease of use.

使用ServiceComb开发微服务的示例项目

这个项目使用java-chassis 2.0.x版本。可以切换分支,查看其他版本的例子。

basic

该项目展示了Java Chassis开发的一个provider, 一个consumer和一个网关服务。

porter_lightweight

该项目演示了一个包括网关、文件下载、认证鉴权等功能的简单应用系统,同时演示了ServiceComb推荐的先写接口声明,再写业务代码的软件工程实践。可以阅读文章了解项目的细节。这个例子的运行环境采用vert.x作为HTTP服务器,即 REST over Vert.x transport。

porter_springboot

该项目演示了一个包括网关、文件下载、认证鉴权等功能的简单应用系统,同时演示了ServiceComb推荐的先写接口声明,再写业务代码的软件工程实践。可以阅读文章了解项目的细节。这个例子的运行环境采用Spring Boot及其Embeded Tomcat,即 REST over Servlet。

java-chassis-samples

java-chassis 各个模块功能的例子。每个子项目包含了10分钟可以学习完成的简单示例。

java-chassis-integration-tests

java-chassis 的集成测试用例。

前提条件

运行这些例子之前,需要先安装注册中心配置中心 。华为云提供一个出色的本地轻量化微服务引擎 ,可以直接下载安装使用。

servicecomb-samples's People

Contributors

alec-z avatar david6969xin avatar develpoerx avatar hujinming178 avatar lbc97 avatar liubao68 avatar mishrasamiksha avatar willemjiang avatar yanghao605 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

servicecomb-samples's Issues

org.apache.servicecomb:java-chassis-bom:${project.version}

我不知道我这样引用是否正确,我在我的项目中使用了

org.apache.servicecomb
java-chassis-parent
2.1.5

但是无法启动,因为我必须在我的项目中规定2.1.5
否则会提示
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.jdkj:service-comb-parent:0.0.1 (/Volumes/SSD/SVNProjects/ServiceComb/TEST/0x02/ServiceCombParent/pom.xml) has 1 error
[ERROR] Non-resolvable import POM: Failure to find org.apache.servicecomb:java-chassis-bom:pom:0.0.1 in https://maven.aliyun.com/repository/central was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced @ org.apache.servicecomb:java-chassis-dependencies:2.1.5, /Users/matcha/.m2/repository/org/apache/servicecomb/java-chassis-dependencies/2.1.5/java-chassis-dependencies-2.1.5.pom, line 876, column 19 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

于是我找到了在java-chassis-dependencies-2.1.5.pom中876行有如下内容

org.apache.servicecomb
java-chassis-bom
${project.version}
pom
import

我想知道是不是我使用的方式错误,这样导致我无法规定自己项目的版本号

root cannot start with '/'

servicecomb-samples/java-chassis-samples/bmi/webapp项目启动报java.lang.IllegalArgumentException: root cannot start with '/'异常

mvn clean install errors in metrics-extend-healthcheck

I execute commd 'mvn clean install' in ./java-chassis-samples. And then get errors.

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] 'dependencies.dependency.version' for org.apache.servicecomb:java-chassis-spring-boot-starter-servlet:jar is missing. @ line 38, column 17
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.servicecomb.samples:metrics-extend-healthcheck:2.0.0-SNAPSHOT (/opt/testjava/servicecomb-samples/java-chassis-samples/metrics-extend-healthcheck/pom.xml) has 1 error
[ERROR] 'dependencies.dependency.version' for org.apache.servicecomb:java-chassis-spring-boot-starter-servlet:jar is missing. @ line 38, column 17
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

When I add
org.apache.servicecomb
java-chassis-spring-boot-starter-servlet
2.0.0-SNAPSHOT

I get anothor err:
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.apache.servicecomb:java-chassis-spring-boot-starter-servlet:jar:2.0.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Java Chassis::Samples 2.0.0-SNAPSHOT:
[INFO]
[INFO] Java Chassis::Samples .............................. SUCCESS [ 0.246 s]
[INFO] Java Chassis::Samples::Common Schema ............... SUCCESS [ 1.246 s]
[INFO] Java Chassis::Samples::CodeFirst ................... SUCCESS [ 0.005 s]
[INFO] Java Chassis::Samples::CodeFirst::Provider ......... SUCCESS [01:42 min]
[INFO] Java Chassis::Samples::CodeFirst::Consumer ......... SUCCESS [ 0.096 s]
[INFO] Java Chassis::Samples::Custom Handler .............. SUCCESS [ 0.004 s]
[INFO] Java Chassis::Samples::Custom Handler::Consumer .... SUCCESS [ 7.731 s]
[INFO] Java Chassis::Samples::Custom Handler::Provider .... SUCCESS [ 0.076 s]
[INFO] Java Chassis::Samples::JAXRS ....................... SUCCESS [ 0.003 s]
[INFO] Java Chassis::Samples::JAXRS::Provider ............. SUCCESS [ 13.595 s]
[INFO] Java Chassis::Samples::JAXRS::Consumer ............. SUCCESS [ 0.104 s]
[INFO] pojo-sample ........................................ SUCCESS [ 0.004 s]
[INFO] pojo-provider ...................................... SUCCESS [ 0.107 s]
[INFO] pojo-consumer ...................................... SUCCESS [ 0.071 s]
[INFO] springmvc-sample ................................... SUCCESS [ 0.004 s]
[INFO] springmvc-provider ................................. SUCCESS [ 0.083 s]
[INFO] springmvc-consumer ................................. SUCCESS [ 0.111 s]
[INFO] Java Chassis::Samples::Auth ........................ SUCCESS [ 0.004 s]
[INFO] auth-provider ...................................... SUCCESS [ 0.088 s]
[INFO] Java Chassis::Samples::Auth::Consumer .............. SUCCESS [ 0.067 s]
[INFO] Java Chassis::Samples::Metrics ..................... SUCCESS [ 0.003 s]
[INFO] Java Chassis::Samples::Metrics::Write File ......... SUCCESS [ 0.137 s]
[INFO] Java Chassis::Samples::Metrics::Health Check ....... FAILURE [ 0.071 s]
[INFO] config-apollo-sample ............................... SKIPPED
[INFO] use-log4j2-sample .................................. SKIPPED
[INFO] Java Chassis::Demo::Local service registry ......... SKIPPED
[INFO] Java Chassis::Demo::LocalRegistry::Server .......... SKIPPED
[INFO] Java Chassis::Demo::LocalServiceRegistry::Client ... SKIPPED
[INFO] trust-sample ....................................... SKIPPED
[INFO] store .............................................. SKIPPED
[INFO] customer ........................................... SKIPPED
[INFO] hacker ............................................. SKIPPED
[INFO] Java Chassis::Samples::apm-agent ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:06 min
[INFO] Finished at: 2019-12-18T16:25:01+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project metrics-extend-healthcheck: Could not resolve dependencies for project org.apache.servicecomb.samples:metrics-extend-healthcheck:jar:2.0.0-SNAPSHOT: Could not find artifact org.apache.servicecomb:java-chassis-spring-boot-starter-servlet:jar:2.0.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :metrics-extend-healthcheck

image

静态资源访问不了

我按照porter_lightweight和springboot中readme的操作启动服务,webroot也设置了,并且把ui文件夹放在了${gateway.webroot}下,但访问/ui/login.html出错:Request has already been read

java编码形式对接cse配置中心

你好,目前我需要java以编码形式获取配置中心的内容,以及当配置发生变更后主动推送给我的java某个线程,请问我需要怎么做?类似对接nacos配置中心一样(ConfigService cs=NacosFactory.createConfigService(properties);之后能够使用ConfigService的实例对象获取nacos上的配置)。

localhost 拒绝了我们的连接请求

descript: my system environment is MacOS 10.14.3

step to reproduce this issue:
1.

git clone https://github.com/apache/servicecomb-samples.git
$cd bmi
$pwd
/Users/mac/IdeaProjects/servicecomb-samples/java-chassis-samples/bmi
$mvn clean install
[INFO] 
[INFO] Java Chassis::Samples::BMI ......................... SUCCESS [  0.301 s]
[INFO] Java Chassis::Samples::BMI::Calculator ............. SUCCESS [ 28.589 s]
[INFO] Java Chassis::Samples::BMI::Webapp ................. SUCCESS [  4.198 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  33.467 s
[INFO] Finished at: 2020-09-12T12:22:40+08:00
[INFO] ------------------------------------------------------------------------

$docker run -d -p 30100:30100 servicecomb/service-center:latest
1f0f46cd8efc14c40c55da444993bf5903ac81efdd97fa60bc4633d7538a6c19
$docker ps
CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                      NAMES
1f0f46cd8efc        servicecomb/service-center:latest   "/opt/service-center…"   9 seconds ago       Up 8 seconds        0.0.0.0:30100->30100/tcp   stupefied_galileo
$cd bmi
$cd calculator
$mvn spring-boot:run
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------< org.apache.servicecomb.samples:bmi-calculator >------------
[INFO] Building Java Chassis::Samples::BMI::Calculator 2.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] >>> spring-boot-maven-plugin:2.1.2.RELEASE:run (default-cli) > test-compile @ bmi-calculator >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ bmi-calculator ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ bmi-calculator ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ bmi-calculator ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/mac/IdeaProjects/servicecomb-samples/java-chassis-samples/bmi/calculator/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ bmi-calculator ---
[INFO] No sources to compile
[INFO] 
[INFO] <<< spring-boot-maven-plugin:2.1.2.RELEASE:run (default-cli) < test-compile @ bmi-calculator <<<
[INFO] 
[INFO] 
[INFO] --- spring-boot-maven-plugin:2.1.2.RELEASE:run (default-cli) @ bmi-calculator ---

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.6.RELEASE)

2020-09-12 12:29:00.897  INFO 5218 --- [           main] o.a.s.samples.bmi.CalculatorApplication  : Starting CalculatorApplication on Richard-macbookdeMacBook-Pro.local with PID 5218 (/Users/mac/IdeaProjects/servicecomb-samples/java-chassis-samples/bmi/calculator/target/classes started by mac in /Users/mac/IdeaProjects/servicecomb-samples/java-chassis-samples/bmi/calculator)
2020-09-12 12:29:00.900  INFO 5218 --- [           main] o.a.s.samples.bmi.CalculatorApplication  : No active profile set, falling back to default profiles: default
2020-09-12 12:29:02.230  INFO 5218 --- [           main] o.a.s.c.ConfigurationSpringInitializer   : Environment received, will get configurations from [org.springframework.web.context.support.StandardServletEnvironment@672798784].
2020-09-12 12:29:02.268  WARN 5218 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2020-09-12 12:29:02.268  INFO 5218 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2020-09-12 12:29:02.279  INFO 5218 --- [           main] o.apache.servicecomb.config.ConfigUtil   : create local config:
2020-09-12 12:29:02.288  INFO 5218 --- [           main] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@20938401
2020-09-12 12:29:02.303  INFO 5218 --- [           main] o.apache.servicecomb.config.ConfigUtil   :  jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/java-chassis-core/2.0.0/java-chassis-core-2.0.0.jar!/microservice.yaml.
2020-09-12 12:29:02.331  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.config.spi.ConfigCenterConfigurationSource, count=0.
2020-09-12 12:29:02.331  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Can not find SPI service for org.apache.servicecomb.config.spi.ConfigCenterConfigurationSource
2020-09-12 12:29:02.331  INFO 5218 --- [           main] o.apache.servicecomb.config.ConfigUtil   : config center SPI service can not find, skip to load configuration from config center
2020-09-12 12:29:02.338  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Can not find SPI service for org.apache.servicecomb.config.spi.ConfigCenterConfigurationSource
2020-09-12 12:29:02.339  INFO 5218 --- [           main] o.apache.servicecomb.config.ConfigUtil   : create local config:
2020-09-12 12:29:02.339  INFO 5218 --- [           main] o.apache.servicecomb.config.ConfigUtil   :  jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/java-chassis-core/2.0.0/java-chassis-core-2.0.0.jar!/microservice.yaml.
2020-09-12 12:29:02.811  INFO 5218 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 7777 (http)
2020-09-12 12:29:02.853  INFO 5218 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2020-09-12 12:29:02.853  INFO 5218 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.32
2020-09-12 12:29:02.992  INFO 5218 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2020-09-12 12:29:02.993  INFO 5218 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2033 ms
2020-09-12 12:29:03.057  INFO 5218 --- [ost-startStop-1] o.a.s.foundation.common.net.NetUtils     : add network interface name:en0,host address:192.168.0.100
2020-09-12 12:29:03.058  INFO 5218 --- [ost-startStop-1] o.a.s.foundation.common.net.NetUtils     : get localhost address: 192.168.0.100
2020-09-12 12:29:03.058  INFO 5218 --- [ost-startStop-1] o.a.s.foundation.common.net.NetUtils     : add host name from localhost:Richard-macbookdeMacBook-Pro.local,host address:192.168.0.100
2020-09-12 12:29:03.061  INFO 5218 --- [ost-startStop-1] o.a.s.t.r.servlet.RestServletInjector    : RESTful servlet url pattern: [/*].
2020-09-12 12:29:03.062  INFO 5218 --- [ost-startStop-1] o.a.s.t.rest.servlet.ServletUtils        : UrlPrefix of this instance is "".
2020-09-12 12:29:03.063  INFO 5218 --- [ost-startStop-1] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2020-09-12 12:29:03.131  INFO 5218 --- [           main] o.a.s.s.d.MicroserviceDefinition         : load microservice config, name=calculator, paths=[jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/java-chassis-core/2.0.0/java-chassis-core-2.0.0.jar!/microservice.yaml]
2020-09-12 12:29:03.194  INFO 5218 --- [           main] o.a.s.s.registry.ServiceRegistryFactory  : It is running in the normal mode, a separated service registry is required
2020-09-12 12:29:03.214  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.serviceregistry.registry.ServiceRegistryTaskInitializer, count=1.
2020-09-12 12:29:03.215  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.serviceregistry.diagnosis.instance.InstanceCacheCheckTask.
2020-09-12 12:29:03.228  INFO 5218 --- [           main] o.apache.servicecomb.config.ConfigUtil   : create local config:
2020-09-12 12:29:03.228  INFO 5218 --- [           main] o.apache.servicecomb.config.ConfigUtil   :  jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/java-chassis-core/2.0.0/java-chassis-core-2.0.0.jar!/microservice.yaml.
2020-09-12 12:29:03.231  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.deployment.DeploymentProvider, count=1.
2020-09-12 12:29:03.231  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.deployment.DefaultDeploymentProvider.
2020-09-12 12:29:03.282  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.ConsumerProvider, count=0.
2020-09-12 12:29:03.528  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.Transport, count=1.
2020-09-12 12:29:03.528  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.transport.rest.servlet.ServletRestTransport.
2020-09-12 12:29:03.531  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.BootListener, count=2.
2020-09-12 12:29:03.532  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.core.provider.producer.ProducerBootListener.
2020-09-12 12:29:03.532  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.common.rest.RestEngineSchemaListener.
2020-09-12 12:29:03.536  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.bootup.BootUpInformationCollector, count=2.
2020-09-12 12:29:03.536  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.core.bootup.AddressInformationCollector.
2020-09-12 12:29:03.536  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.core.bootup.ServiceInformationCollector.
2020-09-12 12:29:03.544  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.ProducerProvider, count=2.
2020-09-12 12:29:03.544  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.provider.rest.common.RestProducerProvider.
2020-09-12 12:29:03.544  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.provider.pojo.PojoProducerProvider.
2020-09-12 12:29:03.586  INFO 5218 --- [           main] o.a.s.core.executor.GroupExecutor        : thread pool rules:
1.use core threads.
2.if all core threads are busy, then create new thread.
3.if thread count reach the max limitation, then queue the request.
4.if queue is full, and threads count is max, then reject the request.
2020-09-12 12:29:03.587  INFO 5218 --- [           main] o.a.s.core.executor.GroupExecutor        : executor name=group, group=2. per group settings, coreThreads=25, maxThreads=100, maxIdleInSecond=60, maxQueueSize=2147483647.
2020-09-12 12:29:04.697  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.common.rest.filter.HttpServerFilter, count=1.
2020-09-12 12:29:04.697  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.common.rest.filter.inner.ServerRestArgsFilter.
2020-09-12 12:29:04.698  INFO 5218 --- [           main] o.a.s.t.rest.servlet.RestServlet         : Rest Servlet inited
2020-09-12 12:29:04.705  INFO 5218 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 7777 (http) with context path ''
2020-09-12 12:29:04.709  INFO 5218 --- [           main] o.a.s.samples.bmi.CalculatorApplication  : Started CalculatorApplication in 4.482 seconds (JVM running for 8.57)
2020-09-12 12:29:04.848  INFO 5218 --- [           main] c.n.config.util.ConfigurationUtils       : Loaded properties file jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/handler-bizkeeper/2.0.0/handler-bizkeeper-2.0.0.jar!/hystrix-plugins.properties
2020-09-12 12:29:04.858  INFO 5218 --- [           main] o.a.s.c.handler.AbstractHandlerManager   : get handler chain for [servicecomb.handler.chain.Consumer.service.calculator]: [simpleLB]
2020-09-12 12:29:04.865  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.serviceregistry.discovery.DiscoveryFilter, count=5.
2020-09-12 12:29:04.865  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.core.filter.OperationInstancesDiscoveryFilter.
2020-09-12 12:29:04.865  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.serviceregistry.discovery.InstanceStatusDiscoveryFilter.
2020-09-12 12:29:04.865  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.loadbalance.filter.ZoneAwareDiscoveryFilter.
2020-09-12 12:29:04.865  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.loadbalance.filter.InstancePropertyDiscoveryFilter.
2020-09-12 12:29:04.868  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.loadbalance.filter.IsolationDiscoveryFilter.
2020-09-12 12:29:04.871  INFO 5218 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.core.filter.OperationInstancesDiscoveryFilter, enabled true.
2020-09-12 12:29:04.871  INFO 5218 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.serviceregistry.discovery.InstanceStatusDiscoveryFilter, enabled true.
2020-09-12 12:29:04.871  INFO 5218 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.loadbalance.filter.ZoneAwareDiscoveryFilter, enabled true.
2020-09-12 12:29:04.872  INFO 5218 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.loadbalance.filter.InstancePropertyDiscoveryFilter, enabled true.
2020-09-12 12:29:04.872  INFO 5218 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.loadbalance.filter.IsolationDiscoveryFilter, enabled true.
2020-09-12 12:29:04.873  INFO 5218 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.core.filter.EndpointDiscoveryFilter, enabled true.
2020-09-12 12:29:04.873  INFO 5218 --- [           main] o.a.s.c.handler.AbstractHandlerManager   : get handler chain for [servicecomb.handler.chain.Provider.service.calculator]: [bizkeeper-provider]
2020-09-12 12:29:04.895  INFO 5218 --- [           main] o.a.s.s.swagger.SwaggerLoader            : try to load schema locally, appId=[bmi], serviceName=[calculator], schemaId=[calculatorRestEndpoint]
2020-09-12 12:29:04.911  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.generator.SwaggerGeneratorFactory, count=3.
2020-09-12 12:29:04.911  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGeneratorFactory.
2020-09-12 12:29:04.911  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.generator.jaxrs.JaxrsSwaggerGeneratorFactory.
2020-09-12 12:29:04.912  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.generator.pojo.PojoSwaggerGeneratorFactory.
2020-09-12 12:29:04.913  INFO 5218 --- [           main] o.a.s.s.generator.SwaggerGenerator       : select [org.apache.servicecomb.swagger.generator.springmvc.SpringmvcSwaggerGeneratorFactory] for [org.apache.servicecomb.samples.bmi.CalculatorRestEndpoint] to generate schema.
2020-09-12 12:29:04.917  INFO 5218 --- [           main] o.a.s.s.generator.SwaggerGenerator       : generate schema from [class org.apache.servicecomb.samples.bmi.CalculatorRestEndpoint]
2020-09-12 12:29:04.924  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.generator.SwaggerContextRegister, count=2.
2020-09-12 12:29:04.925  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.generator.core.processor.parameter.HttpServletRequestContextRegister.
2020-09-12 12:29:04.925  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.invocation.generator.InvocationContextProcessor.
2020-09-12 12:29:04.944  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.generator.ClassAnnotationProcessor, count=7.
2020-09-12 12:29:04.945  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.RestControllerClassAnnotationProcessor.
2020-09-12 12:29:04.945  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.RequestMappingClassAnnotationProcessor.
2020-09-12 12:29:04.945  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.PathClassAnnotationProcessor.
2020-09-12 12:29:04.945  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.swagger.generator.core.processor.annotation.ApiProcessor.
2020-09-12 12:29:04.946  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.swagger.generator.core.processor.annotation.SwaggerDefinitionProcessor.
2020-09-12 12:29:04.946  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   5. org.apache.servicecomb.swagger.generator.core.processor.annotation.ApiResponsesClassProcessor.
2020-09-12 12:29:04.947  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   6. org.apache.servicecomb.swagger.generator.core.processor.annotation.ApiResponseClassProcessor.
2020-09-12 12:29:04.970  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.generator.MethodAnnotationProcessor, count=18.
2020-09-12 12:29:04.970  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.RequestMappingMethodAnnotationProcessor.
2020-09-12 12:29:04.971  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.GetMappingMethodAnnotationProcessor.
2020-09-12 12:29:04.971  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.DeleteMappingMethodAnnotationProcessor.
2020-09-12 12:29:04.971  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.PostMappingMethodAnnotationProcessor.
2020-09-12 12:29:04.977  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.PutMappingMethodAnnotationProcessor.
2020-09-12 12:29:04.977  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   5. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.PatchMappingMethodAnnotationProcessor.
2020-09-12 12:29:04.978  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   6. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.ConsumesAnnotationProcessor.
2020-09-12 12:29:04.978  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   7. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.ProducesAnnotationProcessor.
2020-09-12 12:29:04.980  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   8. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.PathMethodAnnotationProcessor.
2020-09-12 12:29:04.981  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   9. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.GetAnnotationProcessor.
2020-09-12 12:29:04.981  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   10. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.PostAnnotationProcessor.
2020-09-12 12:29:04.981  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   11. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.PutAnnotationProcessor.
2020-09-12 12:29:04.983  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   12. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.DeleteAnnotationProcessor.
2020-09-12 12:29:04.983  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   13. org.apache.servicecomb.swagger.generator.core.processor.annotation.ApiOperationProcessor.
2020-09-12 12:29:04.983  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   14. org.apache.servicecomb.swagger.generator.core.processor.annotation.ApiResponsesMethodProcessor.
2020-09-12 12:29:04.986  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   15. org.apache.servicecomb.swagger.generator.core.processor.annotation.ApiResponseMethodProcessor.
2020-09-12 12:29:04.986  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   16. org.apache.servicecomb.swagger.generator.core.processor.annotation.ResponseHeadersProcessor.
2020-09-12 12:29:04.986  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   17. org.apache.servicecomb.swagger.generator.core.processor.annotation.ResponseHeaderProcessor.
2020-09-12 12:29:05.027  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.generator.ParameterProcessor, count=21.
2020-09-12 12:29:05.027  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.generator.springmvc.processor.parameter.MultipartFileTypeProcessor.
2020-09-12 12:29:05.027  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.generator.springmvc.processor.parameter.MultipartFileArrayProcessor.
2020-09-12 12:29:05.027  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.generator.springmvc.processor.parameter.MultipartFileListProcessor.
2020-09-12 12:29:05.027  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.CookieValueAnnotationProcessor.
2020-09-12 12:29:05.028  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.PathVariableAnnotationProcessor.
2020-09-12 12:29:05.029  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   5. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.RequestBodyAnnotationProcessor.
2020-09-12 12:29:05.029  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   6. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.RequestParamAnnotationProcessor.
2020-09-12 12:29:05.029  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   7. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.RequestHeaderAnnotationProcessor.
2020-09-12 12:29:05.030  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   8. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.RequestPartAnnotationProcessor.
2020-09-12 12:29:05.030  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   9. org.apache.servicecomb.swagger.generator.springmvc.processor.annotation.RequestAttributeAnnotationProcessor.
2020-09-12 12:29:05.030  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   10. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.PathParamAnnotationProcessor.
2020-09-12 12:29:05.033  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   11. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.QueryParamAnnotationProcessor.
2020-09-12 12:29:05.033  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   12. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.HeaderParamAnnotationProcessor.
2020-09-12 12:29:05.033  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   13. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.CookieParamAnnotationProcessor.
2020-09-12 12:29:05.033  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   14. org.apache.servicecomb.swagger.generator.jaxrs.processor.annotation.FormParamAnnotationProcessor.
2020-09-12 12:29:05.041  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   15. org.apache.servicecomb.swagger.generator.core.processor.parameter.ApiImplicitParamProcessor.
2020-09-12 12:29:05.041  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   16. org.apache.servicecomb.swagger.generator.core.processor.parameter.ApiParamProcessor.
2020-09-12 12:29:05.041  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   17. org.apache.servicecomb.swagger.generator.core.processor.parameter.RawJsonRequestBodyProcessor.
2020-09-12 12:29:05.043  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   18. org.apache.servicecomb.swagger.generator.core.processor.parameter.PartProcessor.
2020-09-12 12:29:05.043  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   19. org.apache.servicecomb.swagger.generator.core.processor.parameter.PartArrayProcessor.
2020-09-12 12:29:05.044  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   20. org.apache.servicecomb.swagger.generator.core.processor.parameter.PartListProcessor.
2020-09-12 12:29:05.067  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.generator.ResponseTypeProcessor, count=5.
2020-09-12 12:29:05.067  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.generator.springmvc.processor.response.ResponseEntityProcessor.
2020-09-12 12:29:05.068  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.generator.jaxrs.processor.response.JaxrsResponseProcessor.
2020-09-12 12:29:05.068  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.generator.core.processor.response.CompletableFutureProcessor.
2020-09-12 12:29:05.068  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.swagger.generator.core.processor.response.OptionalProcessor.
2020-09-12 12:29:05.069  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.swagger.invocation.generator.ScbResponseProcessor.
2020-09-12 12:29:05.082  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service com.fasterxml.jackson.databind.Module, count=5.
2020-09-12 12:29:05.083  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. com.fasterxml.jackson.datatype.jdk8.Jdk8Module.
2020-09-12 12:29:05.083  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. com.fasterxml.jackson.datatype.jsr310.JSR310Module.
2020-09-12 12:29:05.083  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. com.fasterxml.jackson.module.paramnames.ParameterNamesModule.
2020-09-12 12:29:05.083  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   3. com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule.
2020-09-12 12:29:05.083  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.foundation.common.utils.json.PartModule.
2020-09-12 12:29:05.155  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.extend.ModelResolveObjectMapperProvider, count=0.
2020-09-12 12:29:05.155  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Can not find SPI service for org.apache.servicecomb.swagger.extend.ModelResolveObjectMapperProvider
2020-09-12 12:29:05.158  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.extend.property.creator.PropertyCreator, count=0.
2020-09-12 12:29:05.159  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.extend.ConcreteTypeRegister, count=0.
2020-09-12 12:29:05.214  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerContextArgumentMapperFactory, count=2.
2020-09-12 12:29:05.214  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.provider.rest.common.ProducerHttpRequestArgMapperFactory.
2020-09-12 12:29:05.215  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerInvocationContextMapperFactory.
2020-09-12 12:29:05.221  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.invocation.response.producer.ProducerResponseMapperFactory, count=6.
2020-09-12 12:29:05.222  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.swagger.invocation.springmvc.response.SpringmvcProducerResponseMapperFactory.
2020-09-12 12:29:05.222  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.swagger.invocation.jaxrs.response.JaxrsProducerResponseMapperFactory.
2020-09-12 12:29:05.222  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.swagger.invocation.response.producer.CseResponseProducerResponseMapperFactory.
2020-09-12 12:29:05.222  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.swagger.invocation.response.producer.CompletableFutureProducerResponseMapperFactory.
2020-09-12 12:29:05.222  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.swagger.invocation.response.producer.OptionalProducerResponseMapperFactory.
2020-09-12 12:29:05.222  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   5. org.apache.servicecomb.swagger.invocation.response.producer.DefaultProducerResponseMapperFactory.
2020-09-12 12:29:05.227  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.invocation.extension.ProducerInvokeExtension, count=0.
2020-09-12 12:29:05.229  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.swagger.invocation.response.ResponseMetaMapper, count=0.
2020-09-12 12:29:05.229  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Can not find SPI service for org.apache.servicecomb.swagger.invocation.response.ResponseMetaMapper
2020-09-12 12:29:05.257  INFO 5218 --- [           main] o.a.s.core.transport.TransportManager    : choose org.apache.servicecomb.transport.rest.servlet.ServletRestTransport for rest.
2020-09-12 12:29:05.261  WARN 5218 --- [           main] o.a.s.serviceregistry.RegistryUtils      : address /0.0.0.0:7777, auto select a host address to publish 192.168.0.100:7777, maybe not the correct one
2020-09-12 12:29:05.286  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.common.rest.filter.HttpClientFilter, count=3.
2020-09-12 12:29:05.286  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.provider.springmvc.reference.RestTemplateCopyHeaderFilter.
2020-09-12 12:29:05.286  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.common.rest.filter.inner.ClientRestArgsFilter.
2020-09-12 12:29:05.286  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.transport.rest.client.http.DefaultHttpClientFilter.
2020-09-12 12:29:05.312  WARN 5218 --- [           main] o.a.s.foundation.vertx.VertxTLSBuilder   : keyStore [server.p12] file not exist, please check!
2020-09-12 12:29:05.312  WARN 5218 --- [           main] o.a.s.foundation.vertx.VertxTLSBuilder   : trustStore [trust.jks] file not exist, please check!
2020-09-12 12:29:05.333  WARN 5218 --- [           main] o.a.s.foundation.vertx.VertxTLSBuilder   : keyStore [server.p12] file not exist, please check!
2020-09-12 12:29:05.333  WARN 5218 --- [           main] o.a.s.foundation.vertx.VertxTLSBuilder   : trustStore [trust.jks] file not exist, please check!
2020-09-12 12:29:05.338  INFO 5218 --- [           main] o.a.s.t.common.TransportConfigUtils      : servicecomb.rest.client.verticle-count not defined, set to 8.
2020-09-12 12:29:05.428  INFO 5218 --- [           main] o.a.s.t.common.TransportConfigUtils      : servicecomb.rest.client.verticle-count not defined, set to 8.
2020-09-12 12:29:05.573  INFO 5218 --- [           main] o.a.s.core.transport.TransportManager    : endpoint to publish: rest://192.168.0.100:7777
2020-09-12 12:29:05.645  INFO 5218 --- [           main] o.a.s.c.p.producer.ProducerBootListener  : generate swagger for bmi/calculator/calculatorRestEndpoint, swagger: ---
swagger: "2.0"
info:
  version: "1.0.0"
  title: "swagger definition for org.apache.servicecomb.samples.bmi.CalculatorRestEndpoint"
  x-java-interface: "gen.swagger.CalculatorRestEndpointIntf"
basePath: "/"
schemes:
- "http"
consumes:
- "application/json"
produces:
- "application/json"
paths:
  /bmi:
    get:
      operationId: "calculate"
      parameters:
      - name: "height"
        in: "query"
        required: false
        type: "number"
        format: "double"
      - name: "weight"
        in: "query"
        required: false
        type: "number"
        format: "double"
      responses:
        "200":
          description: "response of 200"
          schema:
            $ref: "#/definitions/BMIViewObject"
definitions:
  BMIViewObject:
    type: "object"
    properties:
      result:
        type: "number"
        format: "double"
      instanceId:
        type: "string"
      callTime:
        type: "string"
    x-java-class: "org.apache.servicecomb.samples.bmi.BMIViewObject"

2020-09-12 12:29:05.650  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.common.rest.codec.produce.ProduceProcessor, count=2.
2020-09-12 12:29:05.650  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.common.rest.codec.produce.ProduceJsonProcessor.
2020-09-12 12:29:05.650  INFO 5218 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.common.rest.codec.produce.ProduceTextPlainProcessor.
2020-09-12 12:29:05.660  INFO 5218 --- [           main] o.a.s.c.rest.locator.ServicePathManager  : add schema to service paths. bmi:calculator:calculatorRestEndpoint.
2020-09-12 12:29:05.660  INFO 5218 --- [           main] o.a.s.c.rest.locator.MicroservicePaths   : Swagger mapped "{[/bmi/], method=[GET], produces=[application/json]}" onto public org.apache.servicecomb.samples.bmi.BMIViewObject org.apache.servicecomb.samples.bmi.CalculatorRestEndpoint.calculate(double,double)
2020-09-12 12:29:05.664  INFO 5218 --- [           main] o.a.s.s.task.MicroserviceRegisterTask    : running microservice register task.
2020-09-12 12:29:05.936  INFO 5218 --- [           main] o.a.s.s.task.MicroserviceRegisterTask    : Registry Microservice successfully. id=[08088b0d11f4dc26858875798d5467de098dea4f] appId=[bmi], name=[calculator], version=[0.0.1], schemaIds=[calculatorRestEndpoint], env=[]
2020-09-12 12:29:05.941  INFO 5218 --- [           main] o.a.s.s.task.MicroserviceRegisterTask    : schemaId [calculatorRestEndpoint] exists [true], summary exists [false]
2020-09-12 12:29:05.977  INFO 5218 --- [           main] o.a.s.s.c.h.ServiceRegistryClientImpl    : register schema 08088b0d11f4dc26858875798d5467de098dea4f/calculatorRestEndpoint success.
2020-09-12 12:29:05.978  INFO 5218 --- [           main] o.a.s.s.task.ServiceCenterTask           : read MicroserviceRegisterTask status is FINISHED
2020-09-12 12:29:05.978  INFO 5218 --- [           main] a.s.s.t.MicroserviceInstanceRegisterTask : running microservice instance register task.
2020-09-12 12:29:06.000  INFO 5218 --- [           main] a.s.s.t.MicroserviceInstanceRegisterTask : Register microservice instance success. microserviceId=08088b0d11f4dc26858875798d5467de098dea4f instanceId=7e611780f4b011ea82960242ac110002 endpoints=[rest://192.168.0.100:7777] lease 120s
2020-09-12 12:29:06.000  INFO 5218 --- [           main] o.a.s.s.task.ServiceCenterTask           : read MicroserviceInstanceRegisterTask status is FINISHED
2020-09-12 12:29:06.000  INFO 5218 --- [           main] org.apache.servicecomb.core.SCBEngine    : receive MicroserviceInstanceRegisterTask event, check instance Id...
2020-09-12 12:29:06.001  INFO 5218 --- [           main] org.apache.servicecomb.core.SCBEngine    : instance registry succeeds for the first time, will send AFTER_REGISTRY event.
2020-09-12 12:29:06.001  WARN 5218 --- [           main] org.apache.servicecomb.core.SCBEngine    : ServiceComb is ready.
2020-09-12 12:29:06.022  INFO 5218 --- [           main] org.apache.servicecomb.core.SCBEngine    : Waiting for status up. timeout: 10000ms
2020-09-12 12:29:06.022  INFO 5218 --- [           main] org.apache.servicecomb.core.SCBEngine    : Status already changed to up.
2020-09-12 12:29:06.023  INFO 5218 --- [           main] org.apache.servicecomb.core.SCBEngine    : Service information is shown below:
Service Center: [http://127.0.0.1:30100]
Config Center: not exist
App ID: bmi
Service Name: calculator
Version: 0.0.1
Environment: 
Service ID: 08088b0d11f4dc26858875798d5467de098dea4f
Instance ID: 7e611780f4b011ea82960242ac110002


$cd webapp
$ls
build.gradle    pom.xml         src             target
$mvn spring-boot:run
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------< org.apache.servicecomb.samples:webapp >----------------
[INFO] Building Java Chassis::Samples::BMI::Webapp 2.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] >>> spring-boot-maven-plugin:2.1.2.RELEASE:run (default-cli) > test-compile @ webapp >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ webapp ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/mac/IdeaProjects/servicecomb-samples/java-chassis-samples/bmi/webapp/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ webapp ---
[INFO] No sources to compile
[INFO] 
[INFO] <<< spring-boot-maven-plugin:2.1.2.RELEASE:run (default-cli) < test-compile @ webapp <<<
[INFO] 
[INFO] 
[INFO] --- spring-boot-maven-plugin:2.1.2.RELEASE:run (default-cli) @ webapp ---

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.1.6.RELEASE)

2020-09-12 12:31:06.762  INFO 5580 --- [           main] o.a.s.samples.bmi.GatewayApplication     : Starting GatewayApplication on Richard-macbookdeMacBook-Pro.local with PID 5580 (/Users/mac/IdeaProjects/servicecomb-samples/java-chassis-samples/bmi/webapp/target/classes started by mac in /Users/mac/IdeaProjects/servicecomb-samples/java-chassis-samples/bmi/webapp)
2020-09-12 12:31:06.766  INFO 5580 --- [           main] o.a.s.samples.bmi.GatewayApplication     : No active profile set, falling back to default profiles: default
2020-09-12 12:31:08.006  INFO 5580 --- [           main] o.a.s.c.ConfigurationSpringInitializer   : Environment received, will get configurations from [org.springframework.core.env.StandardEnvironment@105040469].
2020-09-12 12:31:08.033  WARN 5580 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.
2020-09-12 12:31:08.034  INFO 5580 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2020-09-12 12:31:08.051  INFO 5580 --- [           main] o.apache.servicecomb.config.ConfigUtil   : create local config:
2020-09-12 12:31:08.061  INFO 5580 --- [           main] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@27ccb5e1
2020-09-12 12:31:08.079  INFO 5580 --- [           main] o.apache.servicecomb.config.ConfigUtil   :  jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/java-chassis-core/2.0.0/java-chassis-core-2.0.0.jar!/microservice.yaml.
2020-09-12 12:31:08.110  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.config.spi.ConfigCenterConfigurationSource, count=0.
2020-09-12 12:31:08.110  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Can not find SPI service for org.apache.servicecomb.config.spi.ConfigCenterConfigurationSource
2020-09-12 12:31:08.110  INFO 5580 --- [           main] o.apache.servicecomb.config.ConfigUtil   : config center SPI service can not find, skip to load configuration from config center
2020-09-12 12:31:08.121  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Can not find SPI service for org.apache.servicecomb.config.spi.ConfigCenterConfigurationSource
2020-09-12 12:31:08.123  INFO 5580 --- [           main] o.apache.servicecomb.config.ConfigUtil   : create local config:
2020-09-12 12:31:08.123  INFO 5580 --- [           main] o.apache.servicecomb.config.ConfigUtil   :  jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/java-chassis-core/2.0.0/java-chassis-core-2.0.0.jar!/microservice.yaml.
2020-09-12 12:31:08.211  INFO 5580 --- [           main] o.a.s.s.d.MicroserviceDefinition         : load microservice config, name=gateway, paths=[jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/java-chassis-core/2.0.0/java-chassis-core-2.0.0.jar!/microservice.yaml]
2020-09-12 12:31:08.254  INFO 5580 --- [           main] o.a.s.s.registry.ServiceRegistryFactory  : It is running in the normal mode, a separated service registry is required
2020-09-12 12:31:08.270  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.serviceregistry.registry.ServiceRegistryTaskInitializer, count=1.
2020-09-12 12:31:08.270  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.serviceregistry.diagnosis.instance.InstanceCacheCheckTask.
2020-09-12 12:31:08.281  INFO 5580 --- [           main] o.apache.servicecomb.config.ConfigUtil   : create local config:
2020-09-12 12:31:08.281  INFO 5580 --- [           main] o.apache.servicecomb.config.ConfigUtil   :  jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/java-chassis-core/2.0.0/java-chassis-core-2.0.0.jar!/microservice.yaml.
2020-09-12 12:31:08.288  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.deployment.DeploymentProvider, count=1.
2020-09-12 12:31:08.288  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.deployment.DefaultDeploymentProvider.
2020-09-12 12:31:08.295  INFO 5580 --- [           main] o.a.s.foundation.common.net.NetUtils     : add network interface name:en0,host address:192.168.0.100
2020-09-12 12:31:08.296  INFO 5580 --- [           main] o.a.s.foundation.common.net.NetUtils     : get localhost address: 192.168.0.100
2020-09-12 12:31:08.296  INFO 5580 --- [           main] o.a.s.foundation.common.net.NetUtils     : add host name from localhost:Richard-macbookdeMacBook-Pro.local,host address:192.168.0.100
2020-09-12 12:31:08.335  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.ConsumerProvider, count=0.
2020-09-12 12:31:08.525  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.Transport, count=1.
2020-09-12 12:31:08.525  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.transport.rest.vertx.VertxRestTransport.
2020-09-12 12:31:08.528  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.BootListener, count=2.
2020-09-12 12:31:08.528  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.core.provider.producer.ProducerBootListener.
2020-09-12 12:31:08.528  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.common.rest.RestEngineSchemaListener.
2020-09-12 12:31:08.531  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.bootup.BootUpInformationCollector, count=2.
2020-09-12 12:31:08.531  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.core.bootup.AddressInformationCollector.
2020-09-12 12:31:08.532  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.core.bootup.ServiceInformationCollector.
2020-09-12 12:31:08.541  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.core.ProducerProvider, count=2.
2020-09-12 12:31:08.542  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.provider.rest.common.RestProducerProvider.
2020-09-12 12:31:08.542  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.provider.pojo.PojoProducerProvider.
2020-09-12 12:31:08.581  INFO 5580 --- [           main] o.a.s.core.executor.GroupExecutor        : thread pool rules:
1.use core threads.
2.if all core threads are busy, then create new thread.
3.if thread count reach the max limitation, then queue the request.
4.if queue is full, and threads count is max, then reject the request.
2020-09-12 12:31:08.582  INFO 5580 --- [           main] o.a.s.core.executor.GroupExecutor        : executor name=group, group=2. per group settings, coreThreads=25, maxThreads=100, maxIdleInSecond=60, maxQueueSize=2147483647.
2020-09-12 12:31:09.014  INFO 5580 --- [           main] o.a.s.samples.bmi.GatewayApplication     : Started GatewayApplication in 2.96 seconds (JVM running for 7.182)
2020-09-12 12:31:09.170  INFO 5580 --- [           main] c.n.config.util.ConfigurationUtils       : Loaded properties file jar:file:/Users/mac/.m2/repository/org/apache/servicecomb/handler-bizkeeper/2.0.0/handler-bizkeeper-2.0.0.jar!/hystrix-plugins.properties
2020-09-12 12:31:09.185  INFO 5580 --- [           main] o.a.s.c.handler.AbstractHandlerManager   : get handler chain for [servicecomb.handler.chain.Consumer.service.gateway]: [simpleLB]
2020-09-12 12:31:09.193  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.serviceregistry.discovery.DiscoveryFilter, count=5.
2020-09-12 12:31:09.193  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.core.filter.OperationInstancesDiscoveryFilter.
2020-09-12 12:31:09.193  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.serviceregistry.discovery.InstanceStatusDiscoveryFilter.
2020-09-12 12:31:09.193  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.loadbalance.filter.ZoneAwareDiscoveryFilter.
2020-09-12 12:31:09.193  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.loadbalance.filter.InstancePropertyDiscoveryFilter.
2020-09-12 12:31:09.194  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   4. org.apache.servicecomb.loadbalance.filter.IsolationDiscoveryFilter.
2020-09-12 12:31:09.195  INFO 5580 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.core.filter.OperationInstancesDiscoveryFilter, enabled true.
2020-09-12 12:31:09.195  INFO 5580 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.serviceregistry.discovery.InstanceStatusDiscoveryFilter, enabled true.
2020-09-12 12:31:09.195  INFO 5580 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.loadbalance.filter.ZoneAwareDiscoveryFilter, enabled true.
2020-09-12 12:31:09.196  INFO 5580 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.loadbalance.filter.InstancePropertyDiscoveryFilter, enabled true.
2020-09-12 12:31:09.196  INFO 5580 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.loadbalance.filter.IsolationDiscoveryFilter, enabled true.
2020-09-12 12:31:09.200  INFO 5580 --- [           main] o.a.s.s.discovery.DiscoveryTree          : DiscoveryFilter org.apache.servicecomb.core.filter.EndpointDiscoveryFilter, enabled true.
2020-09-12 12:31:09.201  INFO 5580 --- [           main] o.a.s.c.handler.AbstractHandlerManager   : get handler chain for [servicecomb.handler.chain.Provider.service.gateway]: []
2020-09-12 12:31:09.229  INFO 5580 --- [           main] o.a.s.edge.core.EdgeBootListener         : Set ReactiveExecutor to be edge service default executor.
2020-09-12 12:31:09.242  WARN 5580 --- [           main] o.a.s.serviceregistry.RegistryUtils      : address /0.0.0.0:8889, auto select a host address to publish 192.168.0.100:8889, maybe not the correct one
2020-09-12 12:31:09.255  INFO 5580 --- [           main] o.a.s.core.transport.TransportManager    : choose org.apache.servicecomb.transport.rest.vertx.VertxRestTransport for rest.
2020-09-12 12:31:09.272  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.common.rest.filter.HttpClientFilter, count=3.
2020-09-12 12:31:09.272  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.provider.springmvc.reference.RestTemplateCopyHeaderFilter.
2020-09-12 12:31:09.272  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.common.rest.filter.inner.ClientRestArgsFilter.
2020-09-12 12:31:09.272  INFO 5580 --- [           main] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.transport.rest.client.http.DefaultHttpClientFilter.
2020-09-12 12:31:09.284  WARN 5580 --- [           main] o.a.s.foundation.vertx.VertxTLSBuilder   : keyStore [server.p12] file not exist, please check!
2020-09-12 12:31:09.285  WARN 5580 --- [           main] o.a.s.foundation.vertx.VertxTLSBuilder   : trustStore [trust.jks] file not exist, please check!
2020-09-12 12:31:09.517  WARN 5580 --- [           main] o.a.s.foundation.vertx.VertxTLSBuilder   : keyStore [server.p12] file not exist, please check!
2020-09-12 12:31:09.518  WARN 5580 --- [           main] o.a.s.foundation.vertx.VertxTLSBuilder   : trustStore [trust.jks] file not exist, please check!
2020-09-12 12:31:09.520  INFO 5580 --- [           main] o.a.s.t.common.TransportConfigUtils      : servicecomb.rest.client.verticle-count not defined, set to 8.
2020-09-12 12:31:09.610  INFO 5580 --- [           main] o.a.s.t.common.TransportConfigUtils      : servicecomb.rest.client.verticle-count not defined, set to 8.
2020-09-12 12:31:09.774  INFO 5580 --- [           main] o.a.s.t.common.TransportConfigUtils      : servicecomb.rest.server.verticle-count not defined, set to 8.
2020-09-12 12:31:09.794  INFO 5580 --- [ntloop-thread-7] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.common.rest.filter.HttpServerFilter, count=1.
2020-09-12 12:31:09.795  INFO 5580 --- [ntloop-thread-7] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.common.rest.filter.inner.ServerRestArgsFilter.
2020-09-12 12:31:09.813  INFO 5580 --- [ntloop-thread-7] o.a.s.e.c.URLMappedConfigurationLoader   : config item: key=calculator;pattern=/calculator/.*;service=calculator;versionRule=0.0.0+
2020-09-12 12:31:09.814  INFO 5580 --- [ntloop-thread-7] o.a.s.f.common.utils.SPIServiceUtils     : Found SPI service org.apache.servicecomb.transport.rest.vertx.VertxHttpDispatcher, count=4.
2020-09-12 12:31:09.814  INFO 5580 --- [ntloop-thread-7] o.a.s.f.common.utils.SPIServiceUtils     :   0. org.apache.servicecomb.edge.core.DefaultEdgeDispatcher.
2020-09-12 12:31:09.815  INFO 5580 --- [ntloop-thread-7] o.a.s.f.common.utils.SPIServiceUtils     :   1. org.apache.servicecomb.edge.core.URLMappedEdgeDispatcher.
2020-09-12 12:31:09.815  INFO 5580 --- [ntloop-thread-7] o.a.s.f.common.utils.SPIServiceUtils     :   2. org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.
2020-09-12 12:31:09.815  INFO 5580 --- [ntloop-thread-7] o.a.s.f.common.utils.SPIServiceUtils     :   3. org.apache.servicecomb.transport.rest.vertx.VertxRestDispatcher.
2020-09-12 12:31:09.829  INFO 5580 --- [ntloop-thread-5] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2020-09-12 12:31:09.829  INFO 5580 --- [ntloop-thread-8] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2020-09-12 12:31:09.829  INFO 5580 --- [ntloop-thread-3] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2020-09-12 12:31:09.829  INFO 5580 --- [ntloop-thread-7] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2020-09-12 12:31:09.829  INFO 5580 --- [tloop-thread-10] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2020-09-12 12:31:09.829  INFO 5580 --- [ntloop-thread-6] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2020-09-12 12:31:09.829  INFO 5580 --- [tloop-thread-15] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2020-09-12 12:31:09.829  INFO 5580 --- [ntloop-thread-4] o.a.s.common.rest.UploadConfig           : servicecomb.uploads.directory is null, not support upload.
2020-09-12 12:31:09.853 ERROR 5580 --- [ntloop-thread-8] o.a.s.t.rest.vertx.RestServerVerticle    : 

java.lang.IllegalArgumentException: root cannot start with '/'
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615) ~[vertx-web-3.8.3.jar:3.8.3]
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478) ~[vertx-web-3.8.3.jar:3.8.3]
        at org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45) ~[classes/:na]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVerticle.java:94) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at io.vertx.core.Verticle.start(Verticle.java:66) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:556) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

2020-09-12 12:31:09.853 ERROR 5580 --- [ntloop-thread-3] o.a.s.t.rest.vertx.RestServerVerticle    : 

java.lang.IllegalArgumentException: root cannot start with '/'
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615) ~[vertx-web-3.8.3.jar:3.8.3]
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478) ~[vertx-web-3.8.3.jar:3.8.3]
        at org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45) ~[classes/:na]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVerticle.java:94) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at io.vertx.core.Verticle.start(Verticle.java:66) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:556) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

2020-09-12 12:31:09.854 ERROR 5580 --- [ntloop-thread-5] o.a.s.t.rest.vertx.RestServerVerticle    : 

java.lang.IllegalArgumentException: root cannot start with '/'
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615) ~[vertx-web-3.8.3.jar:3.8.3]
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478) ~[vertx-web-3.8.3.jar:3.8.3]
        at org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45) ~[classes/:na]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVerticle.java:94) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at io.vertx.core.Verticle.start(Verticle.java:66) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:556) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

2020-09-12 12:31:09.853 ERROR 5580 --- [ntloop-thread-7] o.a.s.t.rest.vertx.RestServerVerticle    : 

java.lang.IllegalArgumentException: root cannot start with '/'
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615) ~[vertx-web-3.8.3.jar:3.8.3]
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478) ~[vertx-web-3.8.3.jar:3.8.3]
        at org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45) ~[classes/:na]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVerticle.java:94) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at io.vertx.core.Verticle.start(Verticle.java:66) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:556) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

2020-09-12 12:31:09.854 ERROR 5580 --- [ntloop-thread-6] o.a.s.t.rest.vertx.RestServerVerticle    : 

java.lang.IllegalArgumentException: root cannot start with '/'
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615) ~[vertx-web-3.8.3.jar:3.8.3]
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478) ~[vertx-web-3.8.3.jar:3.8.3]
        at org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45) ~[classes/:na]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVerticle.java:94) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at io.vertx.core.Verticle.start(Verticle.java:66) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:556) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

2020-09-12 12:31:09.854 ERROR 5580 --- [tloop-thread-15] o.a.s.t.rest.vertx.RestServerVerticle    : 

java.lang.IllegalArgumentException: root cannot start with '/'
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615) ~[vertx-web-3.8.3.jar:3.8.3]
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478) ~[vertx-web-3.8.3.jar:3.8.3]
        at org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45) ~[classes/:na]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVerticle.java:94) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at io.vertx.core.Verticle.start(Verticle.java:66) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:556) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

2020-09-12 12:31:09.853 ERROR 5580 --- [tloop-thread-10] o.a.s.t.rest.vertx.RestServerVerticle    : 

java.lang.IllegalArgumentException: root cannot start with '/'
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615) ~[vertx-web-3.8.3.jar:3.8.3]
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478) ~[vertx-web-3.8.3.jar:3.8.3]
        at org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45) ~[classes/:na]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVerticle.java:94) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at io.vertx.core.Verticle.start(Verticle.java:66) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:556) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

2020-09-12 12:31:09.853 ERROR 5580 --- [ntloop-thread-4] o.a.s.t.rest.vertx.RestServerVerticle    : 

java.lang.IllegalArgumentException: root cannot start with '/'
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615) ~[vertx-web-3.8.3.jar:3.8.3]
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478) ~[vertx-web-3.8.3.jar:3.8.3]
        at org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45) ~[classes/:na]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVerticle.java:94) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at io.vertx.core.Verticle.start(Verticle.java:66) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:556) [vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

2020-09-12 12:31:09.921 ERROR 5580 --- [ntloop-thread-2] o.a.s.foundation.vertx.VertxUtils        : deploy vertx failed, cause 

java.lang.IllegalArgumentException: root cannot start with '/'
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setRoot(StaticHandlerImpl.java:615) ~[vertx-web-3.8.3.jar:3.8.3]
        at io.vertx.ext.web.handler.impl.StaticHandlerImpl.setWebRoot(StaticHandlerImpl.java:478) ~[vertx-web-3.8.3.jar:3.8.3]
        at org.apache.servicecomb.samples.bmi.StaticWebpageDispatcher.init(StaticWebpageDispatcher.java:45) ~[classes/:na]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.initDispatcher(RestServerVerticle.java:212) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at org.apache.servicecomb.transport.rest.vertx.RestServerVerticle.start(RestServerVerticle.java:94) ~[transport-rest-vertx-2.0.0.jar:2.0.0]
        at io.vertx.core.Verticle.start(Verticle.java:66) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$8(DeploymentManager.java:556) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:369) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.vertx.core.impl.EventLoopContext.lambda$executeAsync$0(EventLoopContext.java:38) ~[vertx-core-3.8.3.jar:3.8.3]
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) ~[netty-transport-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.45.Final.jar:4.1.45.Final]
        at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_241]

2020-09-12 12:31:10.047  INFO 5580 --- [           main] o.a.s.s.task.MicroserviceRegisterTask    : running microservice register task.
2020-09-12 12:31:10.396  INFO 5580 --- [           main] o.a.s.s.task.MicroserviceRegisterTask    : Registry Microservice successfully. id=[296cb6b50987ec12967e934d1e3df522901b1ccc] appId=[bmi], name=[gateway], version=[0.0.1], schemaIds=[], env=[]
2020-09-12 12:31:10.401  INFO 5580 --- [           main] o.a.s.s.task.ServiceCenterTask           : read MicroserviceRegisterTask status is FINISHED
2020-09-12 12:31:10.402  INFO 5580 --- [           main] a.s.s.t.MicroserviceInstanceRegisterTask : running microservice instance register task.
2020-09-12 12:31:10.430  INFO 5580 --- [           main] a.s.s.t.MicroserviceInstanceRegisterTask : Register microservice instance success. microserviceId=296cb6b50987ec12967e934d1e3df522901b1ccc instanceId=c88b675df4b011ea82960242ac110002 endpoints=[] lease 120s
2020-09-12 12:31:10.431  INFO 5580 --- [           main] org.apache.servicecomb.core.SCBEngine    : receive MicroserviceInstanceRegisterTask event, check instance Id...
2020-09-12 12:31:10.431  INFO 5580 --- [           main] org.apache.servicecomb.core.SCBEngine    : instance registry succeeds for the first time, will send AFTER_REGISTRY event.
2020-09-12 12:31:10.431  WARN 5580 --- [           main] org.apache.servicecomb.core.SCBEngine    : ServiceComb is ready.
2020-09-12 12:31:10.431  INFO 5580 --- [           main] o.a.s.s.task.ServiceCenterTask           : read MicroserviceInstanceRegisterTask status is FINISHED
2020-09-12 12:31:10.462  INFO 5580 --- [           main] org.apache.servicecomb.core.SCBEngine    : Waiting for status up. timeout: 10000ms
2020-09-12 12:31:10.464  INFO 5580 --- [           main] org.apache.servicecomb.core.SCBEngine    : Status already changed to up.
2020-09-12 12:31:10.465  INFO 5580 --- [           main] org.apache.servicecomb.core.SCBEngine    : Service information is shown below:
Service Center: [http://127.0.0.1:30100]
Config Center: not exist
App ID: bmi
Service Name: gateway
Version: 0.0.1
Environment: 
Service ID: 296cb6b50987ec12967e934d1e3df522901b1ccc
Instance ID: c88b675df4b011ea82960242ac110002

2020-09-12 12:31:10.506  INFO 5580 --- [worker-thread-2] o.a.s.s.c.h.ServiceRegistryClientImpl    : watching microservice 296cb6b50987ec12967e934d1e3df522901b1ccc successfully, the chosen service center address is 127.0.0.1:30100
2020-09-12 12:31:40.452  INFO 5580 --- [Center Task [1]] o.a.s.s.task.ServiceCenterTaskMonitor    : sc task interval changed from -1 to 30


Then the problem happened:
image

can not create a new instance with new port

steps:
#cd /opt/develop/servicecomb-samples/java-chassis-samples/bmi/calculator

mvn spring-boot:run -Drun.jvmArguments="-Dcse.rest.address=0.0.0.0:7778"

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.2.RELEASE:run (default-cli) on project bmi-calculator: An exception occurred while running. null: InvocationTargetException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat: java.net.BindException: Address already in use (Bind failed) -> [Help 1]

refer to link: https://servicecomb.apache.org/cn/docs/products/java-chassis/load-balance/

porter_lightweight demo在idea启动之后,页面加载不了

porter_lightweight demo在idea启动之后,页面加载不了
image
报错信息:
[2022-03-21 10:00:38,760][transport-vert.x-eventloop-thread-8][ERROR][io.vertx.ext.web.RoutingContext:] Unhandled exception in router
java.lang.IllegalStateException: Request has already been read
at io.vertx.core.http.impl.Http1xServerRequest.checkEnded(Http1xServerRequest.java:655) ~[vertx-core-4.1.5.jar:4.1.5]
at io.vertx.core.http.impl.Http1xServerRequest.handler(Http1xServerRequest.java:293) ~[vertx-core-4.1.5.jar:4.1.5]
at io.vertx.ext.web.impl.HttpServerRequestWrapper.handler(HttpServerRequestWrapper.java:103) ~[vertx-web-4.1.5.jar:4.1.5]
at org.apache.servicecomb.transport.rest.vertx.RestBodyHandler.handle(RestBodyHandler.java:111) ~[transport-rest-vertx-2.6.0.jar:2.6.0]
at org.apache.servicecomb.transport.rest.vertx.RestBodyHandler.handle(RestBodyHandler.java:56) ~[transport-rest-vertx-2.6.0.jar:2.6.0]
at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1127) ~[vertx-web-4.1.5.jar:4.1.5]
at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:151) ~[vertx-web-4.1.5.jar:4.1.5]
at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:133) ~[vertx-web-4.1.5.jar:4.1.5]
at io.vertx.ext.web.handler.impl.StaticHandlerImpl.lambda$sendStatic$1(StaticHandlerImpl.java:203) ~[vertx-web-4.1.5.jar:4.1.5]
at io.vertx.core.impl.future.FutureImpl$3.onSuccess(FutureImpl.java:141) ~[vertx-core-4.1.5.jar:4.1.5]
at io.vertx.core.impl.future.FutureBase.lambda$emitSuccess$0(FutureBase.java:54) ~[vertx-core-4.1.5.jar:4.1.5]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) [netty-transport-4.1.68.Final.jar:4.1.68.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at java.lang.Thread.run(Thread.java:834) [?:?]
[2022-03-21 10:00:38,775][transport-vert.x-eventloop-thread-8][ERROR][org.apache.servicecomb.samples.porter.gateway.StaticWebpageDispatcher:48]
java.lang.IllegalStateException: Request has already been read
at io.vertx.core.http.impl.Http1xServerRequest.checkEnded(Http1xServerRequest.java:655) ~[vertx-core-4.1.5.jar:4.1.5]
at io.vertx.core.http.impl.Http1xServerRequest.handler(Http1xServerRequest.java:293) ~[vertx-core-4.1.5.jar:4.1.5]
at io.vertx.ext.web.impl.HttpServerRequestWrapper.handler(HttpServerRequestWrapper.java:103) ~[vertx-web-4.1.5.jar:4.1.5]
at org.apache.servicecomb.transport.rest.vertx.RestBodyHandler.handle(RestBodyHandler.java:111) ~[transport-rest-vertx-2.6.0.jar:2.6.0]
at org.apache.servicecomb.transport.rest.vertx.RestBodyHandler.handle(RestBodyHandler.java:56) ~[transport-rest-vertx-2.6.0.jar:2.6.0]
at io.vertx.ext.web.impl.RouteState.handleContext(RouteState.java:1127) ~[vertx-web-4.1.5.jar:4.1.5]
at io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:151) ~[vertx-web-4.1.5.jar:4.1.5]
at io.vertx.ext.web.impl.RoutingContextImpl.next(RoutingContextImpl.java:133) ~[vertx-web-4.1.5.jar:4.1.5]
at io.vertx.ext.web.handler.impl.StaticHandlerImpl.lambda$sendStatic$1(StaticHandlerImpl.java:203) ~[vertx-web-4.1.5.jar:4.1.5]
at io.vertx.core.impl.future.FutureImpl$3.onSuccess(FutureImpl.java:141) ~[vertx-core-4.1.5.jar:4.1.5]
at io.vertx.core.impl.future.FutureBase.lambda$emitSuccess$0(FutureBase.java:54) ~[vertx-core-4.1.5.jar:4.1.5]
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) [netty-transport-4.1.68.Final.jar:4.1.68.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [netty-common-4.1.68.Final.jar:4.1.68.Final]
at java.lang.Thread.run(Thread.java:834) [?:?]

BMI例子没有办法正常启动

通过本地service center 2.0启动后,运行BMI例子,没有办法正常访问前端界面,前段提示404,后台提示:[ntloop-thread-7] o.a.s.c.rest.locator.OperationLocator : locate path failed, status:Not Found, http method:GET, path:/, microserviceName:gateway

Feature: Adding contributors section to the README.md file.

There is no Contributors section in readme file .
As we know Contributions are what make the open-source community such an amazing place to learn, inspire, and create.
The Contributors section in a README.md file is important as it acknowledges and gives credit to those who have contributed to a project, fosters community and collaboration, adds transparency and accountability, and helps document the project's history for current and future maintainers. It also serves as a form of recognition, motivating contributors to continue their efforts.
contributors

springmvc-sample示例程序运行失败

下载servicecomb-samples代码后,参考https://github.com/apache/servicecomb-samples/tree/master/java-chassis-samples/springmvc-sample教程运行providerconsumerconsumer运行失败,报错如下所示:

Exception in thread "main" InvocationException: code=405;msg=CommonExceptionData [message=method POST, path /springmvchello/sayhi/, statusCode 405, reasonPhrase Method Not Allowed, response content-type text/html;charset=iso-8859-1 is not supported]
	at org.apache.servicecomb.transport.rest.client.http.DefaultHttpClientFilter.extractResponse(DefaultHttpClientFilter.java:126)
	at org.apache.servicecomb.transport.rest.client.http.DefaultHttpClientFilter.afterReceiveResponse(DefaultHttpClientFilter.java:133)
	at org.apache.servicecomb.transport.rest.client.http.RestClientInvocation.lambda$processResponseBody$6(RestClientInvocation.java:240)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
 at [Source: (org.apache.servicecomb.foundation.vertx.stream.BufferInputStream); line: 1, column: 2]
	at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:2337)
	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:710)
	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:635)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2691)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:870)
	at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:762)
	at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4684)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4586)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3601)
	at org.apache.servicecomb.common.rest.codec.produce.ProduceJsonProcessor.doDecodeResponse(ProduceJsonProcessor.java:64)
	at org.apache.servicecomb.common.rest.codec.produce.ProduceProcessor.decodeResponse(ProduceProcessor.java:76)
	at org.apache.servicecomb.transport.rest.client.http.DefaultHttpClientFilter.extractResponse(DefaultHttpClientFilter.java:104)
	... 7 more

branch/1.3.0 mvn compile metrics-write-file-sample\metrics-write-file failed

metrics-write-file-sample pom.xml

<dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.servicecomb</groupId>
        <artifactId>metrics-core</artifactId>
        <version>2.0.0-SNAPSHOT</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

changed

<dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.servicecomb</groupId>
        <artifactId>metrics-core</artifactId>
        <version>1.3.0</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.