Open philwebb opened 1 month ago
In the meantime adding a src/main/resources/META-INF/native-image/com.mysql/mysql-connector-j/reflect-config.json
file with the following will work around the issue:
[
{
"name" : "com.mysql.cj.PerConnectionLRUFactory",
"allPublicConstructors" : true
}
]
@philwebb thanks for reporting! Could you open a PR with these changes so we can merge them? Ideally, we would also have a test that covers the code path that is failing.
@vjovanov, The issue was actually originally raised by @jbiancot. I just did some analysis. Perhaps they might be able to raise a PR.
Describe the bug This issue is described in https://stackoverflow.com/questions/79092147/springboot-3-3-4-app-hikari-mysql-and-gradlew-nativecompile.
The exception raised is:
To Reproduce
Run the sample attached to the stackoverflow.com question or any MySQL example where the
cachePrepStmts
data source property is set totrue
.Expected behavior The metadata should provide reflection hints for
com.mysql.cj.PerConnectionLRUFactory
.Logs See stackoverflow.com quesstion
System Info (please complete the following information):
Liberica-NIK-23.0.0-1
]20
]native-gradle-plugin:0.10.3
]Additional context Add any other context about the problem here.