-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Could not pass event PlayerGameModeChangeEvent to Plan v2.5.1 #8
Comments
Bug caused because gmTimes HashMap is set to null/not set, or a GameMode is not defined in the HashMap, I will be investigating the cause further. Are there any exceptions thrown elsewhere? This is extremely odd error, because this HashMap should never be null, as it is defined in the constructor.
Spectator has the highest likelihood of being the cause, because a bug in 1.7.X was fixed by changing how it is added & something might have gone wrong. Thanks,
|
Bug could not be reproduced on Spigot-1.11.2-R0.1-SNAPSHOT Database file required for further testing. |
Hey! I will get you the required info shortly (on a train atm so kind of in an awkard spot, please bear with me). |
Going to ahead and guess it's my corrupted playerfile causing the problems (as I'm running a test server with only two accs so far. Either way, here's the DB. |
Alright I'll try to figure it out :) |
Ah yes the gamemode data is missing. This will uncorrupt the data, but it does not explain why it got corrupted in the first place. |
I'm fairly sure this was caused by me repeatedly force-closing the development server (as I'm not concerned with the world data being corrupted), but I will let you know if it rears its head again! (Will play nice with the dev server for now ;) ) Thanks for the help! |
Something funky happening here as I switch my gamemode!
[10:46:32] [Server thread/ERROR]: Could not pass event PlayerGameModeChangeEvent to Plan v2.5.1
org.bukkit.event.EventException
at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:46) ~[patched_1.11.2.jar:git-Paper-1055]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.11.2.jar:git-Paper-1055]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.11.2.jar:git-Paper-1055]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) [patched_1.11.2.jar:git-Paper-1055]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) [patched_1.11.2.jar:git-Paper-1055]
at org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer.setGameMode(CraftPlayer.java:890) [patched_1.11.2.jar:git-Paper-1055]
at com.onarandombox.MultiverseCore.listeners.MVPlayerListener$2.run(MVPlayerListener.java:353) [Multiverse-Core-2.5.0-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:58) [patched_1.11.2.jar:git-Paper-1055]
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:356) [patched_1.11.2.jar:git-Paper-1055]
at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:820) [patched_1.11.2.jar:git-Paper-1055]
at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:403) [patched_1.11.2.jar:git-Paper-1055]
at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:754) [patched_1.11.2.jar:git-Paper-1055]
at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:652) [patched_1.11.2.jar:git-Paper-1055]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
Caused by: java.lang.NullPointerException
at com.djrapitops.plan.data.handlers.GamemodeTimesHandler.handleChangeEvent(GamemodeTimesHandler.java:58) ~[?:?]
at com.djrapitops.plan.data.listeners.PlanGamemodeChangeListener.onGamemodeChange(PlanGamemodeChangeListener.java:46) ~[?:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor242.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:44) ~[patched_1.11.2.jar:git-Paper-1055]
... 13 more
[10:46:47] [Craft Scheduler Thread - 42/WARN]: java.lang.NullPointerException
[10:46:47] [Craft Scheduler Thread - 42/WARN]: at com.djrapitops.plan.database.databases.SQLDB.saveGMTimes(SQLDB.java:927)
[10:46:47] [Craft Scheduler Thread - 42/WARN]: at com.djrapitops.plan.database.databases.SQLDB.saveUserData(SQLDB.java:802)
[10:46:47] [Craft Scheduler Thread - 42/WARN]: at com.djrapitops.plan.data.cache.DataCacheHandler$2.run(DataCacheHandler.java:203)
[10:46:47] [Craft Scheduler Thread - 42/WARN]: at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:58)
[10:46:47] [Craft Scheduler Thread - 42/WARN]: at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52)
[10:46:47] [Craft Scheduler Thread - 42/WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[10:46:47] [Craft Scheduler Thread - 42/WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[10:46:47] [Craft Scheduler Thread - 42/WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[10:46:47] [Craft Scheduler Thread - 42/WARN]: at java.lang.Thread.run(Unknown Source)
[10:47:02] [Craft Scheduler Thread - 42/WARN]: [Plan] Plugin Plan v2.5.1 generated an exception while executing task 29
java.lang.NullPointerException
at com.djrapitops.plan.data.handlers.GamemodeTimesHandler.saveToCache(GamemodeTimesHandler.java:79) ~[?:?]
at com.djrapitops.plan.data.cache.DataCacheHandler.saveHandlerDataToCache(DataCacheHandler.java:249) ~[?:?]
at com.djrapitops.plan.data.cache.DataCacheHandler.lambda$saveHandlerDataToCache$0(DataCacheHandler.java:227) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) ~[?:1.8.0_121]
at java.util.Iterator.forEachRemaining(Unknown Source) ~[?:1.8.0_121]
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_121]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_121]
at java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source) ~[?:1.8.0_121]
at java.util.concurrent.CountedCompleter.exec(Unknown Source) ~[?:1.8.0_121]
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source) ~[?:1.8.0_121]
at java.util.concurrent.ForkJoinTask.doInvoke(Unknown Source) ~[?:1.8.0_121]
at java.util.concurrent.ForkJoinTask.invoke(Unknown Source) ~[?:1.8.0_121]
at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(Unknown Source) ~[?:1.8.0_121]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(Unknown Source) ~[?:1.8.0_121]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_121]
at java.util.stream.ReferencePipeline.forEach(Unknown Source) ~[?:1.8.0_121]
at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) ~[?:1.8.0_121]
at com.djrapitops.plan.data.cache.DataCacheHandler.saveHandlerDataToCache(DataCacheHandler.java:226) ~[?:?]
at com.djrapitops.plan.data.cache.DataCacheHandler.access$000(DataCacheHandler.java:27) ~[?:?]
at com.djrapitops.plan.data.cache.DataCacheHandler$1.run(DataCacheHandler.java:95) ~[?:?]
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:58) ~[patched_1.11.2.jar:git-Paper-1055]
at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:52) [patched_1.11.2.jar:git-Paper-1055]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [patched_1.11.2.jar:git-Paper-1055]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_121]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_121]
The text was updated successfully, but these errors were encountered: