-
Notifications
You must be signed in to change notification settings - Fork 2
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
java.lang.IllegalStateException: NDatabase has not loaded yet #11
Comments
Hello, do you have any exception ? The NDatabaseAPI instance is indeed set using reflection to avoid exposing a set method, if something wrong happened with reflection, you should see a 'Failed to load NDatabase...' exception. You can try to do that:
Here is where you can add logging Let me know what is your Java/Spigot version so if your issue is not solved I can try to reproduce when I'm free. |
I'm having the same issue on 1.20.4. I did everything correct, there's no errors at all |
Hello, If you could test with only NDatabase and your plugin and telling me what java version and what spigot fork you use, it would help me. I'm trying to reproduce the issue with paperSpigot 1.20.4 with java 17 and I don't have the issue |
I can't really only test with it because my plugin requires a few other plugins. Here's my code, lmk if I'm doing something wrong. It's 1.20.4 Paper Spigot Java 17 It's been a few years since I coded java so I'm not sure if I'm doing anything correctly lol |
You are using the API correctly, therefore I'm not able to reproduce the issue with Java 1.20.4 and java 17 |
I came across NDatabase and it looked like it had everything that I needed.
Decided to test it out but whenever I try to call the API of NDatabase, it always says it wasn't loaded.
I looked at logs and it seems like it had successfully connected to mongo, but no matter how long I wait to use the API, it says it hasn't been loaded.
I even compiled my own version of NDatabase that logs the exact moment of when the api had successfully been loaded via reflection, but to my own avail, it still isn't working.
The text was updated successfully, but these errors were encountered: