Skip to content

1.21.11: VelocityControl: Stopping servers causes error delaying stop by X minutes #3396

@bobhenl

Description

@bobhenl

Are you using MySQL?

Yes

Are you using a proxy?

Yes - Velocity

"/version ChatControlRed" - plugin version

4.2.4 VelocityControl

Optional: Error log

No response

ZIP of "/chc debug"

No response

Steps to reproduce

Hello, on server stop there are errors like this:

[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: java.lang.NullPointerException: Cannot read field "proxy" because the return value of "org.mineacademy.chatcontrol.velocity.lib.fo.platform.VelocityPlugin.getInstance()" is null
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.platform.VelocityPlugin.getServer(VelocityPlugin.java:69)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.platform.VelocityPlatform.getPlayers(VelocityPlatform.java:234)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.platform.Platform.getOnlinePlayers(Platform.java:111)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.proxy.ChatControlProxyListenerProxy.lambda$scheduleSyncTask$0(ChatControlProxyListenerProxy.java:95)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.CommonCore.lambda$wrapRunnableInExceptionCatcher$6(CommonCore.java:1742)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at com.velocitypowered.proxy.scheduler.VelocityScheduler$VelocityTask.lambda$run$0(VelocityScheduler.java:376)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.CommonCore.wrapRunnableInExceptionCatcher(CommonCore.java:1738)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.remain.Remain.runTaskTimerAsync(Remain.java:142)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.platform.VelocityPlatform.runTaskTimerAsync(VelocityPlatform.java:205)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.platform.FoundationPlatform.runTaskTimerAsync(FoundationPlatform.java:192)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.platform.Platform.runTaskTimerAsync(Platform.java:386)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.proxy.ChatControlProxyListenerProxy.scheduleSyncTask(ChatControlProxyListenerProxy.java:75)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.VelocityControl.onPluginStart(VelocityControl.java:77)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.platform.VelocityPlugin.onProxyInitialization(VelocityPlugin.java:230)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at org.mineacademy.chatcontrol.velocity.lib.fo.platform.Lmbda$61.execute(Unknown Source)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:76)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:721)
[06:40:24] [VelocityControl - Task Executor #285/INFO] [com.velocitypowered.proxy.console.VelocityConsole]: 	at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:710)
[06:40:24] [VelocityControl - Task Executor #285/ERROR] [com.velocitypowered.proxy.scheduler.VelocityScheduler.VelocityTask]: Exception in task org.mineacademy.chatcontrol.velocity.lib.fo.CommonCore$$Lambda/0x00007f42c163b3f0@b2eb87a by plugin VelocityControl
java.lang.NullPointerException: Cannot invoke "org.mineacademy.chatcontrol.velocity.lib.fo.platform.FoundationPlugin.getSentryDsn()" because "plugin" is null
	at org.mineacademy.chatcontrol.velocity.lib.fo.debug.Debugger.saveError(Debugger.java:159)
	at org.mineacademy.chatcontrol.velocity.lib.fo.debug.Debugger.saveError(Debugger.java:108)
	at org.mineacademy.chatcontrol.velocity.lib.fo.CommonCore.logCombinedError(CommonCore.java:1780)
	at org.mineacademy.chatcontrol.velocity.lib.fo.CommonCore.lambda$wrapRunnableInExceptionCatcher$6(CommonCore.java:1745)
	at com.velocitypowered.proxy.scheduler.VelocityScheduler$VelocityTask.lambda$run$0(VelocityScheduler.java:376)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
	at java.base/java.lang.Thread.run(Thread.java:1583)

and it's spamming console for like 5 mins until it's get off

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions