-
Notifications
You must be signed in to change notification settings - Fork 695
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 #971
Comments
I believe this is caused by a Forge class loading issue and not Exposed. I will reopen if it is not. |
Hey @twixthehero , how did you fix this issue exactly? I'm currently experiencing the same issue but cannot seem to fix it, I'm not using Forge but PlaceholderExpansion, but I think that requires the same fix. Thanks in advance |
Hi @RemyyB , I ended up forking Exposed and making changes at https://github.com/JetBrains/Exposed/blob/master/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt#L61.
Then during Forge initialization, I manually set the implementation:
While this is not ideal, it was definitely faster in my case to just fork Exposed rather than waiting for Forge to support Jar unpacking. |
Hi @twixthehero , thank you! Unfortunately now something else is going wrong, I keep getting the following error, but I have stdlib installed:
I just can't seem to fix this issue, it keeps coming back and Google has no fix for me :/ Edit: I seem to have narrowed it down, when I implement the original Exposed the database works, only the Table class is not working and giving the error NoClassDefFoundError, do you have any experience with this? Nevermind the issue has been fixed, thank you very much :) If anyone every has this problem, follow the steps from @twixthehero above, but fork version 0.26.1 as 0.28.1 has a lot of issues with classes that cannot be found. |
I saw #748 is fixed in 0.20.3. I'm using 0.25.1 and encountering it.
Dependencies
Stacktrace
DatabaseConnectionManager$Companion.loadDb
Info
OS: Windows 10 Pro v2004
Forge: 31.2.9
Debugging
I slightly modified #748 (comment) and noticed that the forge class loader cannot retrieve the implementation class.
The text was updated successfully, but these errors were encountered: