项目启动报A default binder has been requested, but ther

Blade 未结 1 4205
bladx的粉丝
bladx的粉丝 剑童 2019-12-27 11:12

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

启动报错:A default binder has been requested, but there is no binder available


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

项目启动不成功


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

blade,开源版,win10


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

org.springframework.context.ApplicationContextException: Failed to start bean 'outputBindingLifecycle'; nested exception is java.lang.IllegalArgumentException: A default binder has been requested, but there is no binder available

at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:185) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:894) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:162) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:49) [blade-core-launch-2.6.0.jar:na]

at org.springblade.admin.AdminApplication.main(AdminApplication.java:33) [classes/:na]

Caused by: java.lang.IllegalArgumentException: A default binder has been requested, but there is no binder available

at org.springframework.util.Assert.notEmpty(Assert.java:549) ~[spring-core-5.2.2.RELEASE.jar:5.2.2.RELEASE]

at org.springframework.cloud.stream.binder.DefaultBinderFactory.doGetBinder(DefaultBinderFactory.java:142) ~[spring-cloud-stream-3.0.1.RELEASE.jar:3.0.1.RELEASE]

at org.springframework.cloud.stream.binder.DefaultBinderFactory.getBinder(DefaultBinderFactory.java:132) ~[spring-cloud-stream-3.0.1.RELEASE.jar:3.0.1.RELEASE]

at org.springframework.cloud.stream.binding.BindingService.getBinder(BindingService.java:362) ~[spring-cloud-stream-3.0.1.RELEASE.jar:3.0.1.RELEASE]

at org.springframework.cloud.stream.binding.BindingService.bindProducer(BindingService.java:257) ~[spring-cloud-stream-3.0.1.RELEASE.jar:3.0.1.RELEASE]

at org.springframework.cloud.stream.binding.AbstractBindableProxyFactory.createAndBindOutputs(AbstractBindableProxyFactory.java:136) ~[spring-cloud-stream-3.0.1.RELEASE.jar:3.0.1.RELEASE]

at org.springframework.cloud.stream.binding.OutputBindingLifecycle.doStartWithBindable(OutputBindingLifecycle.java:58) ~[spring-cloud-stream-3.0.1.RELEASE.jar:3.0.1.RELEASE]

at java.util.LinkedHashMap$LinkedValues.forEach(Unknown Source) ~[na:1.8.0_201]

at org.springframework.cloud.stream.binding.AbstractBindingLifecycle.start(AbstractBindingLifecycle.java:57) ~[spring-cloud-stream-3.0.1.RELEASE.jar:3.0.1.RELEASE]

at org.springframework.cloud.stream.binding.OutputBindingLifecycle.start(OutputBindingLifecycle.java:34) ~[spring-cloud-stream-3.0.1.RELEASE.jar:3.0.1.RELEASE]

at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]

... 14 common frames omitted


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

网上的解决办法是:

原因是使用了SpringBoot Bus kafka等组件在搭建消息服务总线的时候出现的问题,只是引入了相关包但是没有进行相关配置.而BUS服务是贯穿所有服务的,所以导致问题出现.
解决办法:
暂时注释了BUS Kafka相关包.启动完成以后在进行配置,或者排除包;


这是对应链接提供的解决方法:https://blog.csdn.net/lcx578176119/article/details/89385822


1条回答
  • 2020-11-14 09:28

    请问解决了吗,我也出现了这个问题

    0 讨论(1)
提交回复