Closed dimasukr closed 4 years ago
Any ideas on workaround?
Same issue in 20.1.0
add --enable-all-security-services can fix this bug in 20.1.0.
Yes this helps but it doubles size of the image which is not ideal
Yes, the security services API brings in quite a bit of code. You may be able to reduce that if you know exact security services that your app needs: https://github.com/oracle/graal/blob/master/substratevm/JCA-SECURITY-SERVICES.md#alternative-to---enable-all-security-services. We are also working on a solution to automate the discovery of needed security services based on code reachability.
I'm actually not using any security services and don't want to enable them at all. It is possible that vertx is using those somehow
Describe issue Error during native image build. Very simple vertx-pg-client project - https://github.com/dimasukr/graalvm-vertx-repro/blob/master/src/main/java/App.java
Steps to reproduce the issue Please include both build steps as well as run steps
git clone --depth 1 https://github.com/dimasukr/graalvm-vertx-repro.git
sh docker_build.sh
Or if no docker then:Describe GraalVM and your environment:
More details