Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring integration 如何向解组转换器添加错误通道_Spring Integration - Fatal编程技术网

Spring integration 如何向解组转换器添加错误通道

Spring integration 如何向解组转换器添加错误通道,spring-integration,Spring Integration,这是我的问题。 我在频道上收到xml消息 <int:channel id="inbound.jms.channel" /> 然后,我充实消息并添加错误通道 <int:header-enricher input-channel="inbound.jms.channel" output- channel="inbound.jms.enriched.channel" > <int:error-channel ref="janus.tradeloader.exc

这是我的问题。 我在频道上收到xml消息

<int:channel id="inbound.jms.channel" />

然后,我充实消息并添加错误通道

<int:header-enricher input-channel="inbound.jms.channel" output-    channel="inbound.jms.enriched.channel" >
<int:error-channel ref="janus.tradeloader.exception.channel"/>
</int:header-enricher>
<int:channel id="inbound.jms.enriched.channel"/>

现在,解组者听下面这个丰富的频道

<int-xml:unmarshalling-transformer unmarshaller="uc.jaxb.transformer" input-channel="inbound.jms.enriched.channel" output-channel="uc.calypso.trade.transformer.channel"/>

我已经为channel inbound.jms.enriched.channel编写了一个服务激活器

<int:service-activator input-channel="janus.tradeloader.exception.channel" method="handleGlobalException" ref="defaultExeptionHandler" >


我仔细地传递了格式错误的xml,在解组时会抛出MessageFormattingException(我可以看到),但是这个异常并没有进入我的错误通道。你能告诉我吗?

我在下面写了嗨,我在下面重新写了,我在上面写了。此外,我还有如下的服务激活器,我得到了消息转换异常,我希望它被路由到错误通道,但这并没有发生。有人能提供建议吗?请不要重复问题。你可以简单地编辑一个现有的来添加更多的信息。或者就我的答案发表评论。我一定会帮你的。但我想知道你在哪里。因此,在一个地方收集挑战就足够了。再见!