Ilya Brin
07/21/2025, 9:06 PMc.s.circe.checksum.Java9IntHash -- Unable to use reflected methods:
java.lang.reflect.InaccessibleObjectException: Unable to make private static int java.util.zip.CRC32C.updateBytes(int,byte[],int,int) accessible: module java.base does not "opens java.util.zip" to unnamed module
what causes it and how do i resolve it? i can provide the full stack trace if it helpsRunLLM
07/21/2025, 9:06 PMIlya Brin
07/21/2025, 9:14 PMRunLLM
07/21/2025, 9:14 PM--add-opens java.base/java.nio=ALL-UNNAMED
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
For high-throughput or checksum optimization, you should also add:
--add-opens java.base/java.util.zip=ALL-UNNAMED
This is not explicitly listed in the official guide, but is required for optimized CRC32C checksum as discussed in Pulsar PR #22910.
Other recommended options for performance tuning (heap, direct memory, GC) are described in StreamNative advanced configuration. Would you like a breakdown of these JVM options or more detail on tuning for your use case?
Sources:
- Pulsar Java client setup guide
- Pulsar PR #22910
- StreamNative advanced configuration 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.