[英]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.