Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11881

Queue/Exchange parameters need to be numeric when declaring in RabbitMQ

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.19.3
    • Fix Version/s: 2.19.4, 2.20.0
    • Component/s: camel-rabbitmq
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      I am having a small issue with camel-rabbitmq component. I am trying to add a ttl to the declaration of my queue by adding the option arg.queue.x-message-ttl=5000 to the URI. That seems fine, however it seems camel parses 5000 as a String instead of an Integer and therefore I am getting an error when doing the declaration:

      reply-code=406, reply-text=PRECONDITION_FAILED - invalid arg 'x-message-ttl' for queue 'XXXX' in vhost '/':

      {unacceptable_type,longstr}

      , class-id=50, method-id=10)

      We should add some special code to turn those values from String to Long before declaring. I will compile the list, add it here and work on a patch.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                hveiga Hector Veiga
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: