启动blade-zipkin子项目时报错

Blade 未结 1 2431
霄飞
霄飞 剑童 2020-01-17 15:15

一、该问题的重现步骤是什么?

1. 启动blade-zipkin子项目时报错

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

启动blade-zipkin子项目成功


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

springblade dev版本 window8


四、请提供详细的错误堆栈信息,这很重要。

----启动中,读取到的环境变量:[dev],jar地址:[/F:/work/学习文档/springboot/SaaS 微服务开发平台 SpringBlade/smallc-SpringBlade-master/SpringBlade/blade-ops/blade-zipkin/target/classes/]----

 _____               _                 ______  _             _

/  ___|             (_)                | ___ \| |           | |

\ `--.  _ __   _ __  _  _ __    __ _   | |_/ /| |  __ _   __| |  ___

 `--. \| '_ \ | '__|| || '_ \  / _` |  | ___ \| | / _` | / _` | / _ \

/\__/ /| |_) || |   | || | | || (_| |  | |_/ /| || (_| || (_| ||  __/

\____/ | .__/ |_|   |_||_| |_| \__, |  \____/ |_| \__,_| \__,_| \___|

       | |                      __/ |

       |_|                     |___/


:: SpringBlade :: blade-zipkin:dev :: Running SpringBoot 2.2.2.RELEASE :: 


2020-01-17 15:17:16.834  WARN 12800 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade] & group[DEFAULT_GROUP]

2020-01-17 15:17:16.877  INFO 12800 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Loading nacos data, dataId: 'blade.yaml', group: 'DEFAULT_GROUP', data: server:

  undertow:

    io-threads: 4

    worker-threads: 20

    buffer-size: 1024

    direct-buffers: true


spring:

  devtools:

    restart:

      log-condition-evaluation-delta: false

    livereload:

      port: 23333


feign:

  hystrix:

    enabled: true

  #sentinel:

    #enabled: true

  okhttp:

    enabled: true

  httpclient:

    enabled: false


hystrix:

  threadpool:

    default:

      coreSize: 300

      maxQueueSize: 1000

      queueSizeRejectionThreshold: 800

  command:

    default:

      execution:

        isolation:

          thread:

            timeoutInMilliseconds: 5000


ribbon:

  MaxAutoRetries: 1

  MaxAutoRetriesNextServer: 2

  ReadTimeout: 60000

  ConnectTimeout: 60000

  OkToRetryOnAllOperations: true


management:

  endpoints:

    web:

      exposure:

        include: "*"

  endpoint:

    health:

      show-details: always


blade:

  xss:

    enable: true

    skip-url:

      - /weixin

  secure:

    skip-url:

      - /test/**

    client:

      - client-id: sword

        path-patterns:

          - /sword/**

      - client-id: saber

        path-patterns:

          - /saber/**

  tenant:

    column: tenant_id

    tables:

      - blade_notice



2020-01-17 15:17:16.924  INFO 12800 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Loading nacos data, dataId: 'blade-dev.yaml', group: 'DEFAULT_GROUP', data: spring:

  redis:

    host: 127.0.0.1

    port: 6379

    password:

    database: 0

    ssl: false

    #cluster:

    #  nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003

    #  commandTimeout: 5000


blade:

  datasource:

    dev:

      url: jdbc:mysql://localhost:3306/blade?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&tinyInt1isBit=false&allowMultiQueries=true&serverTimezone=GMT+8

      username: root

      password: root


2020-01-17 15:17:16.933  INFO 12800 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-blade-dev.yaml'}, BootstrapPropertySource {name='bootstrapProperties-blade.yaml'}, BootstrapPropertySource {name='bootstrapProperties-blade'}]

2020-01-17 15:17:16.963  INFO 12800 --- [           main] o.springblade.zipkin.ZipkinApplication   : The following profiles are active: dev

2020-01-17 15:17:19.197  WARN 12800 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format.

2020-01-17 15:17:19.205  WARN 12800 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format.

2020-01-17 15:17:19.983  WARN 12800 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.

2020-01-17 15:17:20.365  INFO 12800 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=f9e09a74-c5ff-326f-9479-678ba81c3eee

2020-01-17 15:17:20.877  INFO 12800 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.

2020-01-17 15:17:20.884  INFO 12800 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.

2020-01-17 15:17:20.890  INFO 12800 --- [           main] faultConfiguringBeanFactoryPostProcessor : No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.

2020-01-17 15:17:21.115  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.stream.config.BindersHealthIndicatorAutoConfiguration' of type [org.springframework.cloud.stream.config.BindersHealthIndicatorAutoConfiguration$$EnhancerBySpringCGLIB$$2a608e2d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:21.535  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'bindersHealthContributor' of type [org.springframework.cloud.stream.config.BindersHealthIndicatorAutoConfiguration$BindersHealthContributor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:21.539  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'bindersHealthIndicatorListener' of type [org.springframework.cloud.stream.config.BindersHealthIndicatorAutoConfiguration$BindersHealthIndicatorListener] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:21.554  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'BindingHandlerAdvise' of type [org.springframework.cloud.stream.config.BindingHandlerAdvise] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:21.575  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spelConverter' of type [org.springframework.cloud.stream.config.SpelExpressionConverterConfiguration$SpelConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:21.767  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:21.898  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration$$EnhancerBySpringCGLIB$$a2d6266] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:21.920  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:21.944  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationChannelResolver' of type [org.springframework.integration.support.channel.BeanFactoryChannelResolver] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:21.946  INFO 12800 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'integrationDisposableAutoCreatedBeans' of type [org.springframework.integration.config.annotation.Disposables] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2020-01-17 15:17:22.442  WARN 12800 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2020-01-17 15:17:22.442  INFO 12800 --- [           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-01-17 15:17:22.466  INFO 12800 --- [           main] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@32d418a9

2020-01-17 15:17:23.427  INFO 12800 --- [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext

2020-01-17 15:17:23.428  INFO 12800 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 6362 ms

2020-01-17 15:17:23.461  INFO 12800 --- [           main] c.a.c.s.SentinelWebAutoConfiguration     : [Sentinel Starter] register Sentinel CommonFilter with urlPatterns: [/*].

2020-01-17 15:17:24.091  WARN 12800 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletEndpointRegistrar' defined in class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/web/ServletEndpointManagementContextConfiguration$WebMvcServletEndpointManagementContextConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.endpoint.web.ServletEndpointRegistrar]: Factory method 'servletEndpointRegistrar' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'healthEndpoint' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Unsatisfied dependency expressed through method 'healthEndpoint' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'healthContributorRegistry' defined in class path resource [org/springframework/boot/actuate/autoconfigure/health/HealthEndpointConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.actuate.health.HealthContributorRegistry]: Factory method 'healthContributorRegistry' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'zipkinHealthIndicator' defined in zipkin2.server.internal.ZipkinServerConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [zipkin2.server.internal.ZipkinHealthIndicator]: Factory method 'zipkinHealthIndicator' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.boot.actuate.health.CompositeHealthIndicator.(Lorg/springframework/boot/actuate/health/HealthAggregator;)V

2020-01-17 15:17:24.134  INFO 12800 --- [           main] ConditionEvaluationReportLoggingListener : 


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2020-01-17 15:17:24.141 ERROR 12800 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


An attempt was made to call a method that does not exist. The attempt was made from the following location:


    zipkin2.server.internal.ZipkinHealthIndicator.(ZipkinHealthIndicator.java:26)


The following method did not exist:


    org.springframework.boot.actuate.health.CompositeHealthIndicator.(Lorg/springframework/boot/actuate/health/HealthAggregator;)V


The method's class, org.springframework.boot.actuate.health.CompositeHealthIndicator, is available from the following locations:


    jar:file:/F:/work/maven/org/springframework/boot/spring-boot-actuator/2.2.2.RELEASE/spring-boot-actuator-2.2.2.RELEASE.jar!/org/springframework/boot/actuate/health/CompositeHealthIndicator.class


It was loaded from the following location:


    file:/F:/work/maven/org/springframework/boot/spring-boot-actuator/2.2.2.RELEASE/spring-boot-actuator-2.2.2.RELEASE.jar



Action:


Correct the classpath of your application so that it contains a single, compatible version of org.springframework.boot.actuate.health.CompositeHealthIndicator


五、若有更多详细信息,请在下面提供。



1条回答
  • 2020-01-18 14:41

    是springboot 2.2.x的问题,后续版本会修复

    0 讨论(0)
提交回复