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

Spring JIRA | Artem Bilan | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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