apache / servicecomb-samples

Apache servicecomb
https://servicecomb.apache.org/
Apache License 2.0
499 stars 144 forks source link

localhost 拒绝了我们的连接请求 #57

Closed richard1230 closed 3 years ago

richard1230 commented 3 years ago

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

2.

$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

3.

$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

4.

$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

richard1230 commented 3 years ago

I am a new , I do as the guides; I can't know the reason, Can anyone help me

liubao68 commented 3 years ago

In your logs there is an error:

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(RestServerVert

Please check https://github.com/apache/servicecomb-samples/blob/master/java-chassis-samples/bmi/webapp/src/main/resources/application.yml, and should configure

# This is web root for windows server, change this path according to where you put your source code
gateway:
  webroot: /code/servicecomb-samples/java-chassis-samples/bmi/webapp/src/main/resources/static
richard1230 commented 3 years ago

@liubao68 now I have modified this application.yml as follows:

gateway:
  webroot: /Users/mac/IdeaProjects/servicecomb-gitee-samples/java-chassis-samples/bmi/webapp/src/main/resources/static

It still has the same error:

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-16 10:25:34.736 ERROR 39200 --- [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-16 10:25:34.736 ERROR 39200 --- [tloop-thread-10] o.a.s.t.rest.vertx.RestServerVerticle    : 

the code is here

liubao68 commented 3 years ago

This message is clear and saying 'root cannot start with '/'', you can't specify a path starts with '/'.

This demo using vert.x as a static web page provider, it has this restrictions. In windows, should use '/xxx/' , but in Linux/Unix like systems should use relative path.

If this is not convinient, you can using a tomcat container to host the static pages as illustrated in https://github.com/apache/servicecomb-samples/tree/master/porter_springboot

also see this issue https://github.com/apache/servicecomb-samples/issues/53

ddassio commented 3 years ago

why not change to relative path directly: ./src/main/resources/static, this should be and hello-world , should be as easy as possible

liubao68 commented 3 years ago

@ddassio This version of vert.x do not support relative path in windows. And this example provide static pages in vert.x static server. In real application, you can use other web servers to host static web page, as demonstrated in https://github.com/apache/servicecomb-samples/tree/master/porter_springboot