Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-639

<chain/> doesn't work with annotated handlers

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Works as Designed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 2.2 RC1
    • Component/s: None
    • Labels:
      None

      Description

      I've created a little testcase where a chain is wired with an annotated bean (@Aggregator) it fails with the following exception:

      Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.integration.config.chain.AnnotatedAggregator] to required type [org.springframework.integration.message.MessageHandler] for property 'handlers[0]': no matching editors or conversion strategy found
      at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
      at org.springframework.beans.TypeConverterDelegate.convertToTypedCollection(TypeConverterDelegate.java:464)
      at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:190)
      at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
      at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
      ... 50 more

        Attachments

          Activity

            People

            • Assignee:
              abilan Artem Bilan
              Reporter:
              iwein Iwein Fuld
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: