-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[native-image] Error with Micronaut Data and SQL Server #1913
Comments
The last error can be fixed adding If you want to reproduce the issue, please use the branch
|
I get the exact same error as above. Using: Adding '-H:AddAllCharsets' unfortunately does not seem to work. Only adding '--report-unsupported-elements-at-runtime', ' --allow-incomplete-classpath' as arguments work for me which I'd like to avoid if possible |
@peterscardera You don't need to add Regarding |
I have addressed this in #6089 and |
I've tried to build a Micronaut Data native-image application with SQL Server support but it fails during the native image creation unless I add the flag
--report-unsupported-elements-at-runtime
(which is discouraged).Then, it fails during execution.
Steps to reproduce the issue:
git clone https://github.com/micronaut-graal-tests/micronaut-data-jdbc-graal
cd micronaut-data-jdbc-graal
git checkout sqlserver
./build-native-image.sh
The error is:
I've tried initializing a few classes at run-time/build-time but it's not working. I'm not really sure if this is a bug on GraalVM side or something with the SQL Server JDBC driver.
As mentioned before if I add
--report-unsupported-elements-at-runtime
I can build the native-image.For everything to work you need to start SQL Server with:
And then:
One final thing I've tried is using the native-image Java Agent to generate all the config files but the result is the same in both cases: unable to build the native-image without
--report-unsupported-elements-at-runtime
and same error at runtime with it.The text was updated successfully, but these errors were encountered: