org.springframework.messaging.MessagingException: unsupported return type for router [class java.lang.Class]

Spring JIRA | Artem Bilan | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. org.springframework.messaging.MessagingException

      unsupported return type for router [class java.lang.Class]

      at org.springframework.integration.router.AbstractMappingMessageRouter.addToCollection()
    2. Spring Integration Core
      AbstractMessageHandler.handleMessage
      1. org.springframework.integration.router.AbstractMappingMessageRouter.addToCollection(AbstractMappingMessageRouter.java:296)
      2. org.springframework.integration.router.AbstractMappingMessageRouter.determineTargetChannels(AbstractMappingMessageRouter.java:186)
      3. org.springframework.integration.router.AbstractMessageRouter.handleMessageInternal(AbstractMessageRouter.java:182)
      4. org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:127)
      4 frames