The deserialization works with a JDK ./gradlew run but when I run it with GraalVM ./gradlew nativeRun I get the error :
Caused by: io.micronaut.http.codec.CodecException: Error decoding stream for type [class net.pessu.ifconfig.IfConfig]: Cannot construct instance of `com.example.ifconfig.IfConfig` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
Expected Behavior
The deserialization works with a JDK
./gradlew run
but when I run it with GraalVM./gradlew nativeRun
I get the error :Actual Behaviour
It should deserialize
Steps To Reproduce
I do have a POC in a Github repository
My data class looks like this :
Environment Information
Example Application
https://github.com/adrienpessu/poc-injection-native
Version
3.5.2