简体   繁体   English

Spring 云 stream binder - 无效的 bean 定义

[英]Spring cloud stream binder - Invalid bean definition

I am using: some-eventhub.some-service-1.errors in my application's Service Activator to listen to the error channel.我在我的应用程序的服务激活器中使用: some-eventhub.some-service-1.errors来监听错误通道。

Stream binder 1.2.8 and Spring boot 2.2.2 Stream binder 1.2.8 和 Spring boot 2.2.2

I get the below exception messages frequently in my app:-我的应用程序中经常收到以下异常消息:-

Invalid bean definition with name 'some-eventhub.some-service-1.errors.recoverer' defined in null: Cannot register bean definition 
[Root bean: class [org.springframework.integration.handler.advice.ErrorMessageSendingRecoverer]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] for bean 'some-eventhub.some-service-1.errors.recoverer': There is already [Root bean: class [org.springframework.integration.handler.advice.ErrorMessageSendingRecoverer]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] bound.

It is because it keeps trying to register an error channel recoverer which has already been registered.这是因为它一直在尝试注册一个已经注册的错误通道恢复器。 You probably have more than one binding to the same error topic ("some-eventhub") by the same consumer group ("some-service-1").同一个消费者组(“some-service-1”)可能有多个绑定到同一个错误主题(“some-eventhub”)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Spring Cloud 流多绑定器 - 错误 KStreamBinderConfiguration 需要单个 bean,但找到了 2 个 - Spring cloud stream multi binder - Error KStreamBinderConfiguration required a single bean, but 2 were found Spring Spring 云 stream 的安全性与 Z7EAA993723E57B3BFC99923C196E2E7 - Spring Security for Spring cloud stream with RabbitMQ as binder 春天云流 - gcp pubsub binder maxFetchSize? - spring cloud stream - gcp pubsub binder maxFetchSize? spring cloud stream ibm qm binder实现 - spring cloud stream ibm qm binder implementation 空指针:带有活页夹 kafka 的 Spring Cloud 流 - Null pointer: Spring cloud stream with binder kafka Spring Cloud Stream rabbitmq binder - Spring Cloud 函数错误处理 - Spring cloud stream rabbitmq binder - spring cloud function error handling Spring Cloud Stream RabbitMQ Binder Consumer Properties republishToDlq 对我不起作用 - Spring Cloud Stream RabbitMQ Binder Consumer Properties republishToDlq not working for me Spring 云 Stream 与 RabbitMQ 绑定器和事务性消费者/生产者与 DB 操作 - Spring Cloud Stream with RabbitMQ binder and Transactional consumer/producer with DB operations 无法配置 spring 云 stream Kafka Binder 连接到代理 - unable to configure spring cloud stream Kafka Binder to connect to broker Spring Cloud Stream-初始化Kafka活页夹时的通知 - Spring cloud stream - notification when Kafka binder is initialized
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM