簡體   English   中英

Spring 雲 stream binder - 無效的 bean 定義

[英]Spring cloud stream binder - Invalid bean definition

我在我的應用程序的服務激活器中使用: some-eventhub.some-service-1.errors來監聽錯誤通道。

Stream binder 1.2.8 和 Spring boot 2.2.2

我的應用程序中經常收到以下異常消息:-

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.

這是因為它一直在嘗試注冊一個已經注冊的錯誤通道恢復器。 同一個消費者組(“some-service-1”)可能有多個綁定到同一個錯誤主題(“some-eventhub”)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM