You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2024/09/13 09:54:00 UTC

[jira] [Commented] (CAMEL-21215) camel-jbang: unreliable export to Quarkus without lazy binding

    [ https://issues.apache.org/jira/browse/CAMEL-21215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17881504#comment-17881504 ] 

Otavio Rodolfo Piske commented on CAMEL-21215:
----------------------------------------------

This issue is *NOT* caused by CAMEL-21208, but the messy exporter code certainly makes fixing this more complicated that it should.

> camel-jbang: unreliable export to Quarkus without lazy binding
> --------------------------------------------------------------
>
>                 Key: CAMEL-21215
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21215
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang
>    Affects Versions: 4.8.0
>            Reporter: Otavio Rodolfo Piske
>            Priority: Major
>             Fix For: 4.x
>
>         Attachments: model.java, route-main.yaml
>
>
> Trying to export a java file with beans annotated with {{@BindToRegistry}} to a CEQ project, causes it to fail with: 
> ```Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: createChatMessage of type: org.apache.camel.Processor```
> This error is sporadic and doesn't happen 100% of the time (it seems to be more reproducible on shared cloud environments). 
> To reproduce: save the model.java and the route-main.yaml files and run: 
> {{camel export * --runtime=quarkus --gav=org.demo:agent:1.0.0 --dep=io.quarkiverse.langchain4j:quarkus-langchain4j-core:0.17.2,io.quarkiverse.langchain4j:quarkus-langchain4j-openai:0.17.2 --ignore-loading-error}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)