Skip to content
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] H2 broken #865

Closed
sdeleuze opened this issue Dec 14, 2018 · 5 comments
Closed

[native-image] H2 broken #865

sdeleuze opened this issue Dec 14, 2018 · 5 comments
Assignees

Comments

@sdeleuze
Copy link
Collaborator

When I compile an application with a dependency on H2 embedded database, I have the following exception:

[com.sample.application:29337]     analysis:  10,418.81 ms
error: Error encountered while parsing com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(java.lang.String, java.util.Properties) 
Parsing context:
	parsing java.sql.DriverManager.getConnection(DriverManager.java:664)
	parsing java.sql.DriverManager.getConnection(DriverManager.java:208)
	parsing org.h2.util.JdbcUtils.getConnection(JdbcUtils.java:315)

Can be reproduced by running .build.sh on https://github.com/spring-projects/spring-fu/tree/master/samples/jafu-reactive-r2dbc.

@cstancu cstancu self-assigned this Dec 14, 2018
@cstancu
Copy link
Member

cstancu commented Mar 7, 2019

@sdeleuze did you forget to push the build.sh?

@sdeleuze
Copy link
Collaborator Author

sdeleuze commented Mar 7, 2019

I removed the GraalVM configuration for this example to maintain only 2 of them, but I will restore it tomorrow in a branch.

@sdeleuze
Copy link
Collaborator Author

sdeleuze commented Mar 8, 2019

I did not manage to reproduce the same error, so I built a focus repro and I ended up to the same error reported in #778, and I did not manage to solve it with command lines arguments as described in the repro. Maybe #778 could be closed in favor of this one more focused with a repro (or the other way around).

@cstancu
Copy link
Member

cstancu commented Mar 8, 2019

Thanks for the focus repo. I wouldn't close #778 yet, they have some other issues too, related to threads started in org.flywaydb.core.Flyway.

@sdeleuze
Copy link
Collaborator Author

We now have a R2DBC + H2 sample which works correctly with GraalVM 20.0.0 so I close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants