bladex-gateway无法启动或者启动后无法转发

Blade 未结 1 3856
1010602131
1010602131 2019-12-12 13:27

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

1. 服务器nacos配置了blade-gateway-dev.json

2. 本地开发环境启动报错

3.把打包后的jar放到服务器后能正常注册到nacos,但是前端saber登入报错,经核实gateway没有转发到blade-auth


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

期待的开发环境能正常启动

实际启动不了


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

bladeX,2.1.9版本  window server 2008 R2


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

【开发环境】启动报错

----启动中,读取到的环境变量:[dev],jar地址:[/F:/workspace/workspace-BladeX/BladeX/blade-gateway/target/classes/]----

2019-12-12 13:11:24.007  INFO 14088 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$65876bda] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

            ______  _             _       ___   ___

            | ___ \| |           | |      \  \ /  /

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

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

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

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


:: BladeX :: blade-gateway:dev :: Running SpringBoot 2.1.9.RELEASE :: 


2019-12-12 13:11:26.258  INFO 14088 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Loading nacos data, dataId: 'blade.yaml', group: 'DEFAULT_GROUP'

2019-12-12 13:11:26.282  INFO 14088 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Loading nacos data, dataId: 'blade-dev.yaml', group: 'DEFAULT_GROUP'

2019-12-12 13:11:26.302  INFO 14088 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: CompositePropertySource {name='NACOS', propertySources=[NacosPropertySource {name='blade-gateway-dev.yaml'}, NacosPropertySource {name='blade-gateway.yaml'}, NacosPropertySource {name='blade-dev.yaml'}, NacosPropertySource {name='blade.yaml'}]}

2019-12-12 13:11:26.312  INFO 14088 --- [           main] o.s.gateway.GateWayApplication           : The following profiles are active: dev

2019-12-12 13:11:27.687  WARN 14088 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'nacos-config' contains invalid characters, please migrate to a valid format.

2019-12-12 13:11:27.694  WARN 14088 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'nacos-discovery' contains invalid characters, please migrate to a valid format.

2019-12-12 13:11:28.101  INFO 14088 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!

2019-12-12 13:11:28.107  INFO 14088 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.

2019-12-12 13:11:28.184  INFO 14088 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 46ms. Found 0 repository interfaces.

2019-12-12 13:11:28.339  WARN 14088 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.

2019-12-12 13:11:28.373  WARN 14088 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'hystrix.stream' contains invalid characters, please migrate to a valid format.

2019-12-12 13:11:28.964  INFO 14088 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=198103a5-1756-3cd0-8307-1a4c1bce70e0

2019-12-12 13:11:29.640  INFO 14088 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$65876bda] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2019-12-12 13:11:31.645  WARN 14088 --- [           main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dynamicRouteServiceListener' defined in file [F:\workspace\workspace-BladeX\BladeX\blade-gateway\target\classes\org\springblade\gateway\dynamic\DynamicRouteServiceListener.class]: Unsatisfied dependency expressed through constructor parameter 3; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springblade.core.launch.props.BladeProperties' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

2019-12-12 13:11:31.761  INFO 14088 --- [           main] ConditionEvaluationReportLoggingListener : 


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

2019-12-12 13:11:32.202 ERROR 14088 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


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

APPLICATION FAILED TO START

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


Description:


Parameter 3 of constructor in org.springblade.gateway.dynamic.DynamicRouteServiceListener required a bean of type 'org.springblade.core.launch.props.BladeProperties' that could not be found.



Action:


Consider defining a bean of type 'org.springblade.core.launch.props.BladeProperties' in your configuration.


【服务器环境】无法转发

image.png

image.png

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



1条回答
  •  admin
    admin (楼主)
    2019-12-12 21:21

    错误:Consider defining a bean of type 'org.springblade.core.launch.props.BladeProperties' in your configuration.


    image.png


    确认下打包有没有问题,问题原因是BladeProperties这个类没有获取到

    0 讨论(0)
提交回复