-
Notifications
You must be signed in to change notification settings - Fork 114
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
[GraalVM] java.lang.ClassNotFoundException: org.newsclub.net.mysql.AFUNIXDatabaseSocketFactoryCJ #156
Comments
@czp3009 Thanks for bringing this up! I have fixed the cause and improved the tooling to prevent mysql-specific bugs with GraalVM. |
If I'm not mistaken, the latest code should be on the master branch. But after looking at the source code, I'm confused reflect-config.json in junixsocket-mysql only add reflection hints for class in mysql package, not include Another point of confusion is that, AFUNIXDatabaseSocketFactoryTest only test legacy SocketFactory, not CJ style SocketFactory. A typical JDBC Url Usage: "jdbc:mysql://localhost/db?socketFactory=org.newsclub.net.mysql.AFUNIXDatabaseSocketFactoryCJ&junixsocket.file=/tmp/mysql.sock" In summary, i think should add reflective hints for |
Test resolving the junixsocket-specific MySQL connectors via DriverManager, and try to connect to a non-existing socket. Also update reflect-config.json for these connectors. #156
Ah, good point, you're right, @czp3009 I've updated the config file. Please re-test. Thanks! |
i read the new https://github.com/kohlschutter/junixsocket/blob/main/junixsocket-mysql/src/main/resources/META-INF/native-image/com.kohlschutter.junixsocket/junixsocket-mysql/reflect-config.json, it looks very well, thanks your work! |
junixsocket 2.10.0 has been released. Please verify and re-open if necessary. Thanks again for reporting , @czp3009 ! |
As per @czp3009 in #152
The text was updated successfully, but these errors were encountered: