Skip to content
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

MySQL doesn't work with Static Families #36

Closed
expxx opened this issue Oct 3, 2023 · 7 comments
Closed

MySQL doesn't work with Static Families #36

expxx opened this issue Oct 3, 2023 · 7 comments
Labels
bug Something isn't working patched The issue has been patched and should be fixed

Comments

@expxx
Copy link

expxx commented Oct 3, 2023

There was an issue with MySQL! Cannot invoke "group.aelysium.rustyconnector.plugin.velocity.central.Processor.services()" because "this.processor" is null

The MySQL details are accurate, but not connecting properly. Doesn't even tell me what the issue with MySQL is.

Trace:

[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.central.VelocityAPI.services(VelocityAPI.java:188)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.lib.database.HomeServerMappingsDatabase.updateValidExpirations(HomeServerMappingsDatabase.java:179)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.lib.family.StaticServerFamily.updateMappingExpirations(StaticServerFamily.java:81)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.lib.family.StaticServerFamily.init(StaticServerFamily.java:190)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.central.Processor.init(Processor.java:135)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.central.VelocityAPI.configureProcessor(VelocityAPI.java:107)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.central.VelocityLifecycle.loadConfigs(VelocityLifecycle.java:90)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.central.VelocityLifecycle.start(VelocityLifecycle.java:29)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.VelocityRustyConnector.onLoad(VelocityRustyConnector.java:40)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.Lmbda$48.execute(Unknown Source)
[12:55:19 ERROR]:       at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56)
[12:55:19 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:597)
[12:55:19 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:478)
[12:55:19 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[12:55:19 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[12:55:19 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:833)
[12:55:19 ERROR]: java.lang.RuntimeException: There was an issue with MySQL! Cannot invoke "group.aelysium.rustyconnector.plugin.velocity.central.Processor.services()" because "this.processor" is null
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.lib.family.StaticServerFamily.init(StaticServerFamily.java:193)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.central.Processor.init(Processor.java:135)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.central.VelocityAPI.configureProcessor(VelocityAPI.java:107)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.central.VelocityLifecycle.loadConfigs(VelocityLifecycle.java:90)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.central.VelocityLifecycle.start(VelocityLifecycle.java:29)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.VelocityRustyConnector.onLoad(VelocityRustyConnector.java:40)
[12:55:19 ERROR]:       at group.aelysium.rustyconnector.plugin.velocity.Lmbda$48.execute(Unknown Source)
[12:55:19 ERROR]:       at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56)
[12:55:19 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:597)
[12:55:19 ERROR]:       at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:478)
[12:55:19 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[12:55:19 ERROR]:       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[12:55:19 ERROR]:       at java.base/java.lang.Thread.run(Thread.java:833)```
@nathan-i-martin
Copy link
Contributor

Can you send a full server log? Use something like pastebin

@expxx
Copy link
Author

expxx commented Oct 3, 2023

Sure. https://pastebin.com/KGWPFzx0

@nathan-i-martin
Copy link
Contributor

I've identified the issue. I'm currently OOO until next week but I'll work on it if I can

@expxx
Copy link
Author

expxx commented Oct 3, 2023

Is there anything I can do to fix it now or do I have to wait for you?

@nathan-i-martin
Copy link
Contributor

If you'd like you could certainly submit a PR with the fix.
Basically there's a resource (called Processor) which is attempting to be accessed during plugin boot which doesn't actually exist yet.
So if we use dependency injection to import the MySQL provider instead of accessing it via the API, that should fix the issue!

@nathan-i-martin
Copy link
Contributor

Thanks for your patience on this!
I'm planning on pushing the fix for this out with v0.7.0 since it's right around the corner!
Be sure to join our discord to get notified once it drops!

@nathan-i-martin
Copy link
Contributor

Fixed as of 1270923
Fix will be released alongside v0.7

@nathan-i-martin nathan-i-martin changed the title MySQL Error MySQL doesn't work with Static Families Oct 21, 2023
@nathan-i-martin nathan-i-martin added bug Something isn't working patched The issue has been patched and should be fixed labels Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patched The issue has been patched and should be fixed
Projects
None yet
Development

No branches or pull requests

2 participants