Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build time Kamelet processing may result in StackOverflowError #6831

Open
jamesnetherton opened this issue Nov 29, 2024 · 0 comments
Open

Build time Kamelet processing may result in StackOverflowError #6831

jamesnetherton opened this issue Nov 29, 2024 · 0 comments
Assignees
Labels
area/kamelet bug Something isn't working

Comments

@jamesnetherton
Copy link
Contributor

Bug description

To reproduce, include camel-kamelets and the following configuration:

quarkus.camel.kamelet.identifiers = aws-s3-sink

Seems there are other Kamelets in the catalog that also lead to the same issue.

Build step io.quarkus.deployment.steps.MainClassBuildStep#build threw an exception: java.lang.StackOverflowError
    at io.quarkus.deployment.recording.BytecodeRecorderImpl.loadComplexObject(BytecodeRecorderImpl.java:1064)
    at io.quarkus.deployment.recording.BytecodeRecorderImpl.loadObjectInstanceImpl(BytecodeRecorderImpl.java:914)
    at io.quarkus.deployment.recording.BytecodeRecorderImpl.loadObjectInstance(BytecodeRecorderImpl.java:586)
    at io.quarkus.deployment.recording.BytecodeRecorderImpl.loadComplexObject(BytecodeRecorderImpl.java:1361)
    at io.quarkus.deployment.recording.BytecodeRecorderImpl.loadObjectInstanceImpl(BytecodeRecorderImpl.java:914)
    at io.quarkus.deployment.recording.BytecodeRecorderImpl.loadObjectInstance(BytecodeRecorderImpl.java:586)
    at io.quarkus.deployment.recording.BytecodeRecorderImpl.loadComplexObject(BytecodeRecorderImpl.java:1361)

Unless we can fix this issue in a reliable way, such that we don't need to keep patching the build time code, then I propose to deprecate quarkus.camel.kamelet.identifiers and its associated build items etc. Runtime loading of Kamelets already works fine and is what JBang will push folks towards if they export an app to CQ.

@jamesnetherton jamesnetherton added the bug Something isn't working label Nov 29, 2024
@jamesnetherton jamesnetherton self-assigned this Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kamelet bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant