-
Notifications
You must be signed in to change notification settings - Fork 259
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
Support native compilation with graalvm #1652
Comments
In my case I was able to solve the problem in a Spring Boot application adding the following content into the file: [
{
"name" : "org.zalando.logbook.json.JsonHttpLogFormatter$JsonBody",
"allPublicMethods" : true
}
] Thanks @itineric for the tip. |
you can do that with only one step: It you are using Spring, you can also use My point here is that this reflection config could be added directly to the logbook lib then no extra (external) configuration is required. |
@itineric, thanks for the tip. I updated the answer. My goal was to help those who are facing same problem, while the solution is not added directly to the logbook. |
Looks like a nice addition to logbook. @itineric would you be interested in contributing to the library to add the necessary changes? |
In order to prioritize the support for Logbook, we would like to check whether the old issues are still relevant.
|
Could be something that we look into in the future. Let's not close the issue yet. |
You could support graalvm native compilation.
Currently it is not working, some exception occur:
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.zalando.logbook.json.JsonHttpLogFormatter$JsonBody and no properties discovered to create BeanSerializer
Detailed Description
Define reflect-config.json files as explained in graalvm documentation.
Context
Can use logbook when going native
The text was updated successfully, but these errors were encountered: