Uploaded image for project: 'Spring AMQP'
  1. Spring AMQP
  2. AMQP-710

Fix MessagingMessageListenerAdapter.returnExceptions When Method Returns void

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Complete
    • None
    • 2.0 M3
    • RabbitMQ

    Description

      If a user sets returnExceptions to true when the handlerMethod returns void, the adapter will attempt to send the exception as the reply. This will likely fail with no replyTo or @SendTo.

      Either ignore returnExceptions for void methods, or propagate the original exception if no replyTo or @SendTo is present.

      Attachments

        Activity

          People

            grussell Gary Russell
            grussell Gary Russell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: