dennishendriksen commented on issue #2635: URL: https://github.com/apache/fory/issues/2635#issuecomment-3318952495
Hi @chaokunyang, Thank you for your quick reply! The issue persists even after registering `BigInteger[]`. I've tried to narrow down the issue as much as possible and it appears to be unrelated to `BigInteger[]` but related to using a class or record: https://github.com/molgenis/vip-annotate/tree/fix/annotate_fory_native_image. App.main execution via IDE: ``` serialize/deserialize int wrapper class toString():IntWrapperClass[integer=1] success serialize/deserialize int wrapper record toString():IntWrapperRecord[integer=1] success ``` native image (created via mvn package): ``` $ ./vip-annotate serialize/deserialize int wrapper class toString():IntWrapperClass[integer=1] success serialize/deserialize int wrapper record Exception in thread "main" org.apache.fory.exception.SerializationException: java.lang.RuntimeException: java.lang.NoSuchMethodException: org.molgenis.vipannotate.ForyFactory$IntWrapperRecord.<init>(int) at org.apache.fory.Fory.processSerializationError(Fory.java:369) at org.apache.fory.Fory.serializeJavaObject(Fory.java:1179) at org.apache.fory.Fory.serializeJavaObject(Fory.java:1146) at org.molgenis.vipannotate.App.main(App.java:22) ``` I can reproduce the issue on windows and linux. Can you reproduce it on macos as well? Any idea what is going on? -- 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]
