A customer stumbled over duplicate errors caused by duplicate ObjectIds which were generated on different Servers, while using GraalVM.
It looked like the SecureRandom implementation did generate deterministic values rather than non deterministic ones.
Add a native-image.properties to bson and include Args = --initialize-at-run-time=org.bson.types.ObjectId
Refs: https://www.graalvm.org/latest/reference-manual/native-image/dynamic-features/JCASecurityServices/#securerandom