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

Camel-aws2-sqs: Deadletter fails with sqs client from registry (could impact more components)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.14.0, 3.15.0
    • 3.14.1, 3.15.0
    • camel-core
    • None
    • Unknown

    Description

      I'm investigating an error on camel-quarkus (https://github.com/apache/camel-quarkus/issues/3436) and found that it is happening on camel itself. It affects probably more components, so I set "camel-core" as a component.

       

      Here is a description:

      • aws2-sqs allows to use client from contex, which is autowired into the component
      • if deadletter is used (via RouteBuilder), endpoint is created immediately (even if context is not started yet) - see BuilderSupport l434 (code)
      • Creation of component fails, because there is no client which could be autowired (see code)

       

      I created junit reproducer in my fork - https://github.com/JiriOndrusek/camel/commit/f8d294afae9c6919b19cb6ca6f7cec50570d6208

       

       

      Attachments

        Issue Links

          Activity

            People

              jondruse Jiri Ondrusek
              jondruse Jiri Ondrusek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: