dennishendriksen opened a new issue, #2647: URL: https://github.com/apache/fory/issues/2647
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/fory/issues) and found no similar issues. ### Version Fory v0.12.2 with GraalVm v25.0.0 ### Component(s) Java ### Minimal reproduce step 1. Checkout https://github.com/molgenis/vip-annotate/tree/fix/annotate_fory_native_image2 2. Execute App.main in IDE to confirm that this works without issues 3. Run `mvn clean package` 4. Execute ./target/vip-annotate ### What did you expect to see? Something like: ``` serialize/deserialize toString():org.molgenis.vipannotate.SequenceVariantAnnotationIndex@264c5d07 success ``` ### What did you see instead? ``` serialize/deserialize Exception in thread "main" org.apache.fory.exception.DeserializationException: Failed to deserialize input at org.apache.fory.util.ExceptionUtils.handleReadFailed(ExceptionUtils.java:66) at org.apache.fory.Fory.deserializeJavaObject(Fory.java:1226) at org.apache.fory.Fory.deserializeJavaObject(Fory.java:1197) at org.molgenis.vipannotate.App.main(App.java:62) at java.base@25/java.lang.invoke.LambdaForm$DMH/s4b9cede1.invokeStaticInit(LambdaForm$DMH) Caused by: java.lang.IllegalArgumentException: Type org.molgenis.vipannotate.SequenceVariantAnnotationIndex is instantiated reflectively but was never registered. Register the type by adding "unsafeAllocated" for the type in reflect-config.json. at org.graalvm.nativeimage.builder/com.oracle.svm.core.graal.snippets.SubstrateAllocationSnippets.slowPathHubOrUnsafeInstantiationError(SubstrateAllocationSnippets.java:388) at org.molgenis.vipannotate.SequenceVariantAnnotationIndexForyCodec_0.read(SequenceVariantAnnotationIndexForyCodec_0.java:134) at org.apache.fory.Fory.readDataInternal(Fory.java:1052) at org.apache.fory.Fory.deserializeJavaObject(Fory.java:1220) ... 3 more ``` ### Anything Else? While isolating the issue I ran into the BigInteger[] issue mentioned in https://github.com/apache/fory/issues/2635, but I am not able to reproduce it unfortunately. ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
