two error about GraalVM native-image AOT/ahead-of-time compilation
See original GitHub issue- OS: image: oracle/graalvm-ce:ol8-java11-maven-21.1.0
- Version 2.6.1
first : Could not resolve org.newsclub.net.unix.tipc.AFTIPCDatagramSocket for reflection configuration. Reason: java.lang.ClassNotFoundException: org.newsclub.net.unix.tipc.AFTIPCDatagramSocket.
, This becomes a warning after adding parameters -H:+AllowIncompleteClasspath
second: Error: Error parsing serialization configuration in jar:file:/builds/bp/box/services/eulixspace-gateway/target/eulixspace-gateway-1.0.0-SNAPSHOT-native-image-source-jar/lib/com.kohlschutter.junixsocket.junixsocket-common-2.6.1.jar!/META-INF/native-image/com.kohlschutter.junixsocket/junixsocket-common/serialization-config.json: first level of document must be an array of serialization lists Verify that the configuration matches the schema described in the -H:PrintFlags=+ output for option **SerializationConfigurationResources.
**
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
(when trying 2.7.0-SNAPSHOT, be sure to build with the “use-snapshots” Maven profile (e.g., “mvn clean install -Puse-snapshots” because we depend on another snapshot POM), alternatively cherry-pick https://github.com/kohlschutter/junixsocket/commit/3f1457e6cb8157e95d7d767c9986f9d079181244
Thanks for reporting!
I think the peekData error is related to https://github.com/oracle/graal/issues/2468 Please try with the Java 19 version of GraalVM.
Also see commit 3f1457e6cb8157e95d7d767c9986f9d079181244 where I added some entries missing when TIPC/VSOCK are enabled.
AFSocketCapabilityRequirement: This isn’t required for users of the library, only for the selftest, and it should already work.
Please let me know if you’re still having issues with the Java 19 version of GraalVM.