-
Notifications
You must be signed in to change notification settings - Fork 353
Add PerConnectionLRUFactory for MySQL JDBC driver #1684
Comments
Hi! Could you please try copying these files into your |
Hi, I did, and still getting the errors, please check the output. I have attached a file with the same content.
|
Ah, there's a hint missing for the MySQL driver. You can fix this in your code with: @NativeHint(types = {
@TypeHint(types = {
PerConnectionLRUFactory.class
})
}) I've added the hint for the next version of Spring native. |
Hi there, This is still NOT functional. @mhalbritter This runs fine if I use the JVM, java -jar ... I have added as you mentioned:
I have attached a log file "build and run native.txt" |
Interesting, there are more problems lurking below. I've just added another hint to spring-native. Can you give this a try and let me know if it works? @NativeHint(trigger = ProxyAsyncConfiguration.class, types = {
@TypeHint(typeNames = "org.springframework.core.annotation.TypeMappedAnnotation[]")
}) |
Hi @mhalbritter it worked !!! I will add more code to the project, and let you know how it goes. Thanks, |
Hi, I switched-gears, and I added the changes you mentioned on another project, which is more realistic, it has more classes, and some features, again, I can build and run without problems if I use a JVM, java -jar ... But when using Native, I am getting some errors, I don't know if it is because common names on some Beans? or else? Again, I have attach the entire project on a ZIP file I'll appreciate any help, this is a game changer for me. |
Hey, this seems like a different problem, please open another issue. Thanks! |
Hi folks,
I am having some issues when my Spring Boot app when it starts, and it tries to use the Hikari connection pool. If I run the app using java -jar ... it works fine, but running the nativeBuild it throws a nasty error, I have no idea what to do with it.
I am building the project using my Mac Intel "macOS Monterey v12.5", using:
I have attached a file, which is the project on ZIP
NativoProject.zip
format.
I have attached a file, which is the build and run of the project using JVM.
I have attached a file, which is the build of native code
I have attached a file, which is the run of the native code and the error.
Beware, I am using a basic MySQL 5.7.x server to connect, there is no need for tables.
You can create a basic MySQL database, be sure you change the application.properties file to have the correct, host "IP", the database name, and the credentials.
The error happens before it establishes a connection to the database server, meaning, if the credentials are valid or invalid, etc, it won't reach that stage, yet. it will throw the error first.
Here the files:
Build_and_run_for_JVM.txt
Error_when_running_native.txt
Build_for_native.txt
The text was updated successfully, but these errors were encountered: