I'm building a native executable (Spring Boot 3.1.5) with bouncycastle as JCA provider using Spring Boot Gradle Plugin bootBuildImage task. Native build options: -H:-EnableSecurityServicesFeature -H:AdditionalSecurityProviders=sun.security.provider.Sun,sun.security.rsa.SunRsaSign,org.bouncycastle.jce.provider.BouncyCastleProvider
The native build failed with error "Detected an instance of Random/SplittableRandom class in the image heap", more details in attachment random-seed-in-image-heap-error.txt .
I attempted to resolve it by adding --initialize-at-run-time=sun.security.ssl.SSLContextImpl$AbstractTLSContext but results with more traces, more culprit classes have been added to the list but I'm still unable to resolve it.
Comment From: philwebb
Looking at the stack trace in the error.txt file, it doesn't appear that any Spring Boot code is involved. I'm afraid you'll probably need to get advice or help from the GraalVM team.