-
Notifications
You must be signed in to change notification settings - Fork 407
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
Native Image Support #842
Comments
Hi Luis, Your are not the first to report issues using the project with GraalVM. Unfortunately I have no experience at all with GraalVM and I'm a bit puzzled about where to start looking at... I found a quick "howto" on the net and used it to build a sample application hoping I could reproduce your problem. Unfortunately I could not reproduce your problem: I could build and execute my sample app without any problem. Here is what I tried:
Your error message refers to the AbstractJsonPatternParser so I configured logback to make use of the "pattern" JsonProvider. Here is the encoder I used:
I compiled the application with Since I could not reproduce the problem myself, it would be nice if you could provide one yourself. Also don't hesitate to give me some more insight if you have some ideas about where the problem is and what could be a solution. Thx. |
I will try that. In the meanwhile to reproduce the issue you can just use this pre-configured Micronaut app and add the Encoder (you must add the dependency) |
Is your feature request related to a problem? Please describe.
Currently we are trying to add this library to a Micronaut GraalVM Application and we're getting errors like:
This happens for all Static Classes
Describe the solution you'd like
Is there any way of adding a
native-image.properties
to make GraalVM Image possible?Describe alternatives you've considered
Creating a custom serializer
Additional context
Micronaut 3.6.0 with AOT + GraalVM
The text was updated successfully, but these errors were encountered: