You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jiri Ondrusek (Jira)" <ji...@apache.org> on 2022/01/05 12:06:00 UTC

[jira] [Updated] (CAMEL-17437) Camel-aws2-sqs: Deadletter fails with sqs client from registry (could impact more components)

     [ https://issues.apache.org/jira/browse/CAMEL-17437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiri Ondrusek updated CAMEL-17437:
----------------------------------
    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|[https://github.com/apache/camel/blob/main/core/camel-core-model/src/main/java/org/apache/camel/builder/BuilderSupport.java#L434]]
 * Creation of component fails, because there is no client which could be autowired (see [code|https://github.com/apache/camel/blob/main/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Component.java#L73])

 

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

 

 

  was:
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|[https://github.com/apache/camel/blob/main/core/camel-core-model/src/main/java/org/apache/camel/builder/BuilderSupport.java#L434]]
 * Creation of component fails, because there is no client which could be autowired (see [code|https://github.com/apache/camel/blob/main/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Component.java#L73)

 

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

 

 


> Camel-aws2-sqs: Deadletter fails with sqs client from registry (could impact more components)
> ---------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-17437
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17437
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.15.0
>            Reporter: Jiri Ondrusek
>            Assignee: Jiri Ondrusek
>            Priority: Major
>
> 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|[https://github.com/apache/camel/blob/main/core/camel-core-model/src/main/java/org/apache/camel/builder/BuilderSupport.java#L434]]
>  * Creation of component fails, because there is no client which could be autowired (see [code|https://github.com/apache/camel/blob/main/components/camel-aws/camel-aws2-sqs/src/main/java/org/apache/camel/component/aws2/sqs/Sqs2Component.java#L73])
>  
> I created junit reproducer in my fork - [https://github.com/JiriOndrusek/camel/commit/f8d294afae9c6919b19cb6ca6f7cec50570d6208]
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)