2017-05-09 11 views
0

IDOCを投稿しようとすると、以下のエラーが発生します。Spring統合のDataHubに関する問題

Dispatcherは、チャネル 'DataHubWebApplicationContext.DEBMAS-DEBI' のサブスクライバーを持っていません;ネストされた例外は です。org.springframework.integration.MessageDispatchingException: ディスパッチャにサブスクライバがありません。私は適切な入力チャンネルと出力チャンネルを設定しているのに、私は唯一のチャネルDEBMAS-DEBIのためのメッセージ配信の例外を取得しています

<int-xml:xpath-router id="splitKTOKD" input-channel="DEBMAS" evaluate-as-string="true" resolution-required="false"default-output-channel="DEBMAS-NOTSUPPORTED-KTOKD"> 
    <int-xml:xpath-expression id="splitKTOKDExpression" expression="//KTOKD" /> 
    <int-xml:mapping value="DEBI" channel="DEBMAS-DEBI" /> 
    <int-xml:mapping value="0170" channel="DEBMAS-0170" /> 
    <int-xml:mapping value="Z001" channel="DEBMAS-Z001" /> 
</int-xml:xpath-router> 

<int:service-activator id="sapcustomerDEBMASCustomerServiceActivator" input-channel="DEBMAS-DEBI"   output-channel="rawFragmentDataInputChannel" ref="sapcustomerDEBMASCustomerMappingService" method="map" /> 
<int:service-activator id="sapcustomerDEBMASCustomerServiceActivator" input-channel="DEBMAS-Z001"   output-channel="rawFragmentDataInputChannel" ref="sapcustomerDEBMASCustomerMappingService" method="map" /> 

XMLマッピングは次のようになります。 DEBMAS-Z001、DEBMAS-0170は正常に動作します。

これは、春のフレームワークの問題に関連するものです。

この春の問題を解決するにはどうすればよいですか?

答えて

0

同じsapcustomerDEBMASCustomerServiceActivatorで宣言された2つのBeanがあります。デフォルトでは2番目が勝ちます。アプリケーションコンテキストには最初のBeanはありません。だからあなたはその問題を観察しています。

異なるIDを使用するか、問題を解決するために使用しないでください。

+0

サービスアシスタントIDなしで、私にとってうまく動作します。ありがとうございました – Shweta

関連する問題