Announcement Announcement Module
Collapse
No announcement yet.
Why does my exception gets wrapped within a AggregateMessageDeliveryException? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Why does my exception gets wrapped within a AggregateMessageDeliveryException?

    Hello,

    I have a @ServiceActivator which throws an exception, e.g. throw new FooException( "Invalid foo", e );

    I have following configuration:
    Code:
      <integration:exception-type-router input-channel="errorChannel" default-output-channel="globalExceptionChannel">
        <integration:mapping exception-type="org.acme.exception.FooException"
                             channel="fooExceptionChannel"/>
      </integration:exception-type-router>
    However, my message is always routed to the globalExceptionChannel and my FooException is wrapped within an AggregateMessageDeliveryException. Where does this happen? Why does this happen? And how can I route my exception to the fooExceptionChannel?

    Any help appreciated!
Working...
X