question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 10 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kohlschuettercommented, Dec 4, 2022

(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

1reaction
kohlschuettercommented, Dec 4, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix GraalVM Native Image Build Issues - Simply-How.com
Understand and troubleshoot your GraalVM native image compilation and runtime errors and solve them with custom or agent-generated ...
Read more >
Getting Started - GraalVM
Native Image is a technology to compile Java code ahead-of-time to a binary – a ... Second, it compiles classes, methods, and resources...
Read more >
GraalVM native-image failing to compile a simple JavaFX app ...
Summary: GraalVM native-image reports the following error when compiling a simple JavaFX application: Error occurred during initialization ...
Read more >
Building a Native Executable - Quarkus
Compiling the application to a native executable ... (Only for Oracle GraalVM CE/EE) Install the native-image tool using gu install :.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found