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:53:00 UTC
[jira] [Created] (CAMEL-21215) camel-jbang: unreliable export to Quarkus without lazy binding
Otavio Rodolfo Piske created CAMEL-21215:
--------------------------------------------
Summary: 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
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)