bladex 微服务2.8.2版本Auth启动报错

Blade 未结 1 845
那个男人
那个男人 剑圣 2021-11-02 10:56

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

1. 正常启动redis、nacos、blade-system

2. 启动auth报错:

Caused by: java.lang.IllegalStateException: No fallback instance of type class org.springblade.system.feign.ISysClientFallback found for feign client blade-system

3.


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

期待auth启动成功,但是启动失败


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

bladex 微服务   2.8.2.RELEASE,  MacbookPro

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


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

----启动中,读取到的环境变量:[dev],jar地址:[/Users/chengtanggen/git/BladeX/blade-auth/target/classes/]----

                   ______                    ___   ___

                   | ___ \| |           | |      \  \ /  /

                   | |_/ /| |  __ _   __| |  ___  \  V  /

                   | ___ \| | / _` | / _` | / _ \   > <

                   | |_/ /| || (_| || (_| ||  __/ /  .  \

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


:: BladeX 2.8.2.RELEASE :: blade-auth:dev :: Running SpringBoot 2.3.12.RELEASE :: 


2021-10-28 20:01:01.565  INFO 32899 --- [           main] c.a.n.c.c.impl.LocalConfigInfoProcessor  : LOCAL_SNAPSHOT_PATH:/Users/chengtanggen/nacos/config

2021-10-28 20:01:01.570  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [RpcClientFactory] create a new rpc client of 7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0

2021-10-28 20:01:01.666  INFO 32899 --- [           main] org.reflections.Reflections              : Reflections took 50 ms to scan 1 urls, producing 3 keys and 6 values 

2021-10-28 20:01:01.704  INFO 32899 --- [           main] org.reflections.Reflections              : Reflections took 16 ms to scan 1 urls, producing 4 keys and 9 values 

2021-10-28 20:01:01.718  INFO 32899 --- [           main] org.reflections.Reflections              : Reflections took 11 ms to scan 1 urls, producing 3 keys and 10 values 

2021-10-28 20:01:01.839  INFO 32899 --- [           main] org.reflections.Reflections              : Reflections took 118 ms to scan 279 urls, producing 0 keys and 0 values 

2021-10-28 20:01:01.855  INFO 32899 --- [           main] org.reflections.Reflections              : Reflections took 15 ms to scan 1 urls, producing 1 keys and 5 values 

2021-10-28 20:01:01.873  INFO 32899 --- [           main] org.reflections.Reflections              : Reflections took 15 ms to scan 1 urls, producing 1 keys and 7 values 

2021-10-28 20:01:01.888  INFO 32899 --- [           main] org.reflections.Reflections              : Reflections took 13 ms to scan 1 urls, producing 2 keys and 8 values 

2021-10-28 20:01:01.985  INFO 32899 --- [           main] org.reflections.Reflections              : Reflections took 94 ms to scan 279 urls, producing 0 keys and 0 values 

2021-10-28 20:01:01.989  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0]RpcClient init label, labels={module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown}

2021-10-28 20:01:01.989  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$264/936261188

2021-10-28 20:01:01.989  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$265/1267110705

2021-10-28 20:01:01.990  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0]Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1

2021-10-28 20:01:01.990  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0]RpcClient init, ServerListFactory =com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2

2021-10-28 20:01:01.999  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0] Try to connect to server on start up, server: {serverIp='localhost', server main port=8848}

2021-10-28 20:01:03.005  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0] Success to connect to server [localhost:8848] on start up,connectionId=1635422462762_127.0.0.1_55816

2021-10-28 20:01:03.006  INFO 32899 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0]Notify connected event to listeners.

2021-10-28 20:01:03.006  INFO 32899 --- [t.remote.worker] c.a.n.client.config.impl.ClientWorker    : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0] Connected,notify listen context...

2021-10-28 20:01:03.006  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler

2021-10-28 20:01:03.007  INFO 32899 --- [           main] com.alibaba.nacos.common.remote.client   : [7a2e547b-0215-40e4-95a1-dcf1443b4383_config-0]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$4

2021-10-28 20:01:03.096  INFO 32899 --- [           main] c.a.nacos.client.config.impl.Limiter     : limitTime:5.0

2021-10-28 20:01:03.125  INFO 32899 --- [           main] c.a.nacos.client.config.utils.JvmUtil    : isMultiInstance:false

2021-10-28 20:01:03.166  WARN 32899 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-auth] & group[DEFAULT_GROUP]

2021-10-28 20:01:03.172  WARN 32899 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-auth.yaml] & group[DEFAULT_GROUP]

2021-10-28 20:01:03.177  WARN 32899 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-auth-dev.yaml] & group[DEFAULT_GROUP]

2021-10-28 20:01:03.177  INFO 32899 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-blade-auth-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade-auth.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade-auth,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade.yaml,DEFAULT_GROUP'}]

2021-10-28 20:01:03.184  INFO 32899 --- [           main] org.springblade.auth.AuthApplication     : The following profiles are active: dev

2021-10-28 20:01:03.297  WARN 32899 --- [           main] o.s.c.c.u.SpringFactoryImportSelector    : More than one implementation of @EnableCircuitBreaker (now relying on @Conditionals to pick one): [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration, com.alibaba.cloud.sentinel.custom.SentinelCircuitBreakerConfiguration]

2021-10-28 20:01:05.209  INFO 32899 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!

2021-10-28 20:01:05.214  INFO 32899 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.

2021-10-28 20:01:05.248  INFO 32899 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 13ms. Found 0 Redis repository interfaces.

2021-10-28 20:01:05.339  WARN 32899 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.

2021-10-28 20:01:05.356  WARN 32899 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'hystrix.stream' contains invalid characters, please migrate to a valid format.

2021-10-28 20:01:05.452  WARN 32899 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : No MyBatis mapper was found in '[org.springblade.auth]' package. Please check your configuration.

2021-10-28 20:01:05.611  INFO 32899 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=26d72083-106d-30f6-9bf8-433f26bb5b07

2021-10-28 20:01:05.617  INFO 32899 --- [           main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor init.

2021-10-28 20:01:05.618  INFO 32899 --- [           main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor process @BladePropertySource bean.

2021-10-28 20:01:06.428  INFO 32899 --- [           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)

INFO: Sentinel log output type is: file

INFO: Sentinel log charset is: utf-8

INFO: Sentinel log base directory is: /Users/chengtanggen/logs/csp/

INFO: Sentinel log name use pid is: false

2021-10-28 20:01:06.596  INFO 32899 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-10-28 20:01:07.119  WARN 32899 --- [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used

2021-10-28 20:01:07.156  INFO 32899 --- [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext

2021-10-28 20:01:07.156  INFO 32899 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3949 ms

2021-10-28 20:01:07.423  WARN 32899 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2021-10-28 20:01:07.424  INFO 32899 --- [           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.

2021-10-28 20:01:07.442  INFO 32899 --- [           main] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@4687fee7

2021-10-28 20:01:07.627  INFO 32899 --- [           main] o.s.b.a.e.web.ServletEndpointRegistrar   : Registered '/actuator/hystrix.stream' to hystrix.stream-actuator-endpoint

2021-10-28 20:01:07.686  INFO 32899 --- [           main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource

2021-10-28 20:01:09.235  INFO 32899 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited

2021-10-28 20:01:09.850  WARN 32899 --- [           main] o.s.c.openfeign.FeignClientFactoryBean   : The provided URL is empty. Will try picking an instance via load-balancing.

2021-10-28 20:01:10.189  WARN 32899 --- [           main] o.s.c.openfeign.FeignClientFactoryBean   : The provided URL is empty. Will try picking an instance via load-balancing.

2021-10-28 20:01:10.227  WARN 32899 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bladeAuthorizationServerConfiguration' defined in file [/Users/chengtanggen/git/BladeX/blade-auth/target/classes/org/springblade/auth/config/BladeAuthorizationServerConfiguration.class]: Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bladeUserDetailsServiceImpl' defined in file [/Users/chengtanggen/git/BladeX/blade-auth/target/classes/org/springblade/auth/service/BladeUserDetailsServiceImpl.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springblade.system.feign.ISysClient': Unexpected exception during bean creation; nested exception is java.lang.IllegalStateException: No fallback instance of type class org.springblade.system.feign.ISysClientFallback found for feign client blade-system

2021-10-28 20:01:10.231  INFO 32899 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closing ...

2021-10-28 20:01:10.243  INFO 32899 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closed

2021-10-28 20:01:10.268  INFO 32899 --- [           main] ConditionEvaluationReportLoggingListener : 

1条回答
提交回复