Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1390

quick start java-chassis samples bmi has some errors

    XMLWordPrintableJSON

Details

    Description

      In the wibsite ,quick start Load Balance  when run the second BMI calculator service  with the following command

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

      flow controller,service managerment, distributed tracing may has the same errors

      it have some errors 

      Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
      2019-07-23 11:28:03.902 ERROR 29423 — [ main] o.s.boot.SpringApplication : Application startup failed

      java.lang.IllegalStateException: ServiceComb init failed.
      at org.apache.servicecomb.core.SCBEngine.init(SCBEngine.java:225) ~[java-chassis-core-1.2.1.jar:1.2.1]
      at org.apache.servicecomb.core.CseApplicationListener.onApplicationEvent(CseApplicationListener.java:81) ~[java-chassis-core-1.2.1.jar:1.2.1]
      at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-4.3.20.RELEASE.jar:4.3.20.RELEASE]
      at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-4.3.20.RELEASE.jar:4.3.20.RELEASE]
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-4.3.20.RELEASE.jar:4.3.20.RELEASE]
      at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) ~[spring-context-4.3.20.RELEASE.jar:4.3.20.RELEASE]
      at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) ~[spring-context-4.3.20.RELEASE.jar:4.3.20.RELEASE]
      at org.springframework.boot.context.event.EventPublishingRunListener.finished(EventPublishingRunListener.java:101) ~[spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
      at org.springframework.boot.SpringApplicationRunListeners.callFinishedListener(SpringApplicationRunListeners.java:79) ~[spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
      at org.springframework.boot.SpringApplicationRunListeners.finished(SpringApplicationRunListeners.java:72) ~[spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) [spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
      at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.12.RELEASE.jar:1.5.12.RELEASE]
      at org.apache.servicecomb.samples.bmi.CalculatorApplication.main(CalculatorApplication.java:29) [classes/:na]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
      at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
      at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:542) [spring-boot-maven-plugin-2.1.6.RELEASE.jar:2.1.6.RELEASE]
      at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]
      Caused by: org.apache.servicecomb.foundation.common.exceptions.ServiceCombException: all transport named rest refused to init.
      at org.apache.servicecomb.core.transport.TransportManager.chooseOneTransport(TransportManager.java:90) ~[java-chassis-core-1.2.1.jar:1.2.1]
      at org.apache.servicecomb.core.transport.TransportManager.buildTransportMap(TransportManager.java:74) ~[java-chassis-core-1.2.1.jar:1.2.1]
      at org.apache.servicecomb.core.transport.TransportManager.init(TransportManager.java:52) ~[java-chassis-core-1.2.1.jar:1.2.1]
      at org.apache.servicecomb.core.SCBEngine.doInit(SCBEngine.java:254) ~[java-chassis-core-1.2.1.jar:1.2.1]
      at org.apache.servicecomb.core.SCBEngine.init(SCBEngine.java:214) ~[java-chassis-core-1.2.1.jar:1.2.1]
      ... 19 common frames omitted

      2019-07-23 11:28:03.903 INFO 29423 — [ main] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@1eefc769: startup date [Tue Jul 23 11:28:00 CST 2019]; root of context hierarchy
      2019-07-23 11:28:04.384 INFO 29423 — [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
      [WARNING]
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:498)
      at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:542)
      at java.lang.Thread.run (Thread.java:748)
      Caused by: java.lang.IllegalStateException: ServiceComb init failed.
      at org.apache.servicecomb.core.SCBEngine.init (SCBEngine.java:225)
      at org.apache.servicecomb.core.CseApplicationListener.onApplicationEvent (CseApplicationListener.java:81)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener (SimpleApplicationEventMulticaster.java:172)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener (SimpleApplicationEventMulticaster.java:165)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:139)
      at org.springframework.context.support.AbstractApplicationContext.publishEvent (AbstractApplicationContext.java:393)
      at org.springframework.context.support.AbstractApplicationContext.publishEvent (AbstractApplicationContext.java:347)
      at org.springframework.boot.context.event.EventPublishingRunListener.finished (EventPublishingRunListener.java:101)
      at org.springframework.boot.SpringApplicationRunListeners.callFinishedListener (SpringApplicationRunListeners.java:79)
      at org.springframework.boot.SpringApplicationRunListeners.finished (SpringApplicationRunListeners.java:72)
      at org.springframework.boot.SpringApplication.run (SpringApplication.java:305)
      at org.springframework.boot.SpringApplication.run (SpringApplication.java:1118)
      at org.springframework.boot.SpringApplication.run (SpringApplication.java:1107)
      at org.apache.servicecomb.samples.bmi.CalculatorApplication.main (CalculatorApplication.java:29)
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:498)
      at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:542)
      at java.lang.Thread.run (Thread.java:748)
      Caused by: org.apache.servicecomb.foundation.common.exceptions.ServiceCombException: all transport named rest refused to init.
      at org.apache.servicecomb.core.transport.TransportManager.chooseOneTransport (TransportManager.java:90)
      at org.apache.servicecomb.core.transport.TransportManager.buildTransportMap (TransportManager.java:74)
      at org.apache.servicecomb.core.transport.TransportManager.init (TransportManager.java:52)
      at org.apache.servicecomb.core.SCBEngine.doInit (SCBEngine.java:254)
      at org.apache.servicecomb.core.SCBEngine.init (SCBEngine.java:214)
      at org.apache.servicecomb.core.CseApplicationListener.onApplicationEvent (CseApplicationListener.java:81)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener (SimpleApplicationEventMulticaster.java:172)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener (SimpleApplicationEventMulticaster.java:165)
      at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:139)
      at org.springframework.context.support.AbstractApplicationContext.publishEvent (AbstractApplicationContext.java:393)
      at org.springframework.context.support.AbstractApplicationContext.publishEvent (AbstractApplicationContext.java:347)
      at org.springframework.boot.context.event.EventPublishingRunListener.finished (EventPublishingRunListener.java:101)
      at org.springframework.boot.SpringApplicationRunListeners.callFinishedListener (SpringApplicationRunListeners.java:79)
      at org.springframework.boot.SpringApplicationRunListeners.finished (SpringApplicationRunListeners.java:72)
      at org.springframework.boot.SpringApplication.run (SpringApplication.java:305)
      at org.springframework.boot.SpringApplication.run (SpringApplication.java:1118)
      at org.springframework.boot.SpringApplication.run (SpringApplication.java:1107)
      at org.apache.servicecomb.samples.bmi.CalculatorApplication.main (CalculatorApplication.java:29)
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:498)
      at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:542)
      at java.lang.Thread.run (Thread.java:748)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6.148 s
      [INFO] Finished at: 2019-07-23T11:28:04+08:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.6.RELEASE:run (default-cli) on project bmi-calculator: An exception occurred while running. null: InvocationTargetException: ServiceComb init failed. all transport named rest refused to init. -> [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/MojoExecutionException

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              linzb0123 Zibin Lin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m