Native Quarkus appears to be ignoring lines of code that contain objects from classes configured for reflection #36763
Unanswered
marcos-lessa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my quarkus project, I depend on a third-party project. When I run the application in dev mode or generate a jar file, everything goes fine. However, when I generate the native, this error happens:
java.lang.RuntimeException: java.lang.RuntimeException: Unable to create instance of class com.x.x.x.x.Issue. Registering an InstanceCreator or a TypeAdapter for this type, or adding a no-args constructor may fix this problem.
I created the following file for reflection configuration and the error during compilation was resolved:
But when I run the application natively, it doesn't seem to be performing any action on the Issue class objects. Only Log.info("STARTED ACCEPT") and Log.info("STARTED ACCEPT") are written to the log file, other lines seem to be ignored, nothing happens, not even an error.
When I run it in development mode or run the jar, all logs are written or printed correctly.
Does anyone have any idea what could be happening?
Beta Was this translation helpful? Give feedback.
All reactions