-
Notifications
You must be signed in to change notification settings - Fork 686
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
Can't load implementation for DatabaseConnectionAutoRegistration #748
Comments
System Info: Java 11 (Dynamic Code Evolution 64-Bit Server VM 11.0.5+5-201912121506) Host: Windows 10 10.0 (amd64) |
kotlin-stdlib-1.3.61 |
Encountered the same issue. The problem is that exposed classes here are loaded by other ClassLoader instance, but line 64 of org.jetbrains.exposed.sql.Database uses contextClassLoader under the hood: |
You have to add |
@Tapac its already added. but ServiceLoader didn't load DatabaseConnectionAutoRegistration as service, because Bukkit classloader. Check @StepByStepler comment |
So if i use @StepByStepler suggestion its loads exposed-jdbc connection impl. but exposed still use context service loader.
|
Fixed in master. Will be released soon. |
It's still in version 0.28.1 |
This issue also seems to occur with relocating via shadow jars... 👀 Any idea what can be done to solve this? |
I'm on 0.28.1, and the advice to include exposed-jdbc worked for me. |
I'm getting this issue after relocating this dependency via shadow jar too, and I have no idea how to fix that. |
Still having this issue? |
@WillFP , did you add |
in my case changing |
I spent some time on this issue because it was happening to me as well: |
Thanks! |
CreativePlus.connectDatabase:
The text was updated successfully, but these errors were encountered: