A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory/issues/2140 below:

GraalVM for JDK 17 is not supported · Issue #2140 · GoogleCloudPlatform/cloud-sql-jdbc-socket-factory · GitHub

Context

While running our GraalVM native tests in our Spring Cloud GCP Cloud SQL MySQL sample, we found the following error due to a flag not supported in GraalVM for JDK 17.

Error: Could not find option 'UnlockExperimentalVMOptions' from 'jar:file:///home/runner/.m2/repository/com/google/cloud/sql/jdbc-socket-factory-core/1.23.1/jdbc-socket-factory-core-1.23.1.jar!/META-INF/native-image/com.google.cloud.sql/cloud-sql-jdbc-socket-factory-parent/native-image.properties'. Use -H:PrintFlags= to list all available options.

The problematic UnlockExperimentalVMOptions flag is used in the native-image.properties file of cloud-sql-jdbc-socket-factory.

The experimental options that are unlocked by the mentioned flag are:

The -H:UnlockExperimentalVMOptions flag was introduced in oracle/graal#7190 and was further modified in oracle/graal#7370.

Possible solution: removing the experimental flag

However, while wondering if removing this flag would have any effect on GraalVM 17, 21, 23, I raised cloud-sql-jdbc-socket-factory#2139 as a tentative solution.

Running the test locally with the following dependency:

Ended up with the following results for MODULE_UNDER_TEST=sql-mysql-sample bash .github/workflows/scripts/native-image-tests.sh:

GraalVM for JDK
Result
17.0.9-graalce Success 21.0.2-graalce Success (with warnings on the experimental flags) 23.0.2-graalce Success (with warnings on the experimental flags) 23.0.2-graalce with NATIVE_IMAGE_EXPERIMENTAL_OPTIONS_ARE_FATAL=true Failure due to flags not being explicitly unlocked See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4