Cannot invoke "org.bukkit.event.entity.CreatureSpawnEvent$SpawnReason.name()" because the return value of "org.bukkit.entity.Entity.getEntitySpawnReason()" is null
SecretlyJealous opened this issue ยท 0 comments
Server Implementation
Paper
Server Version
1.20.4
Describe the bug
I have this error but am not sure what causes it, I thought maybe it would go away but it seems common so I thought it would be best to report it. There is a lot of spam and the error eventually just becomes "java.lang.NullPointerException" without any other info:
[16:09:57] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "org.bukkit.event.entity.CreatureSpawnEvent$SpawnReason.name()" because the return value of "org.bukkit.entity.Entity.getEntitySpawnReason()" is null
[16:09:57] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.BukkitPlatform.lambda$runEntityTask$5(BukkitPlatform.java:782)
[16:09:57] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.core.plot.world.PlotAreaManager.forEachPlotArea(PlotAreaManager.java:223)
[16:09:57] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.BukkitPlatform.lambda$runEntityTask$6(BukkitPlatform.java:772)
[16:09:57] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.util.task.BukkitPlotSquaredTask.runTask(BukkitPlotSquaredTask.java:39)
[16:09:57] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.core.util.task.PlotSquaredTask.run(PlotSquaredTask.java:44)
[16:09:57] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101)
[16:09:57] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482)
[16:09:57] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1636)
[16:09:57] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)
[16:09:57] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1515)
[16:09:57] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1216)
[16:09:57] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[16:09:57] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:1623)
[16:09:58] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "org.bukkit.event.entity.CreatureSpawnEvent$SpawnReason.name()" because the return value of "org.bukkit.entity.Entity.getEntitySpawnReason()" is null
[16:09:58] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.BukkitPlatform.lambda$runEntityTask$5(BukkitPlatform.java:782)
[16:09:58] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.core.plot.world.PlotAreaManager.forEachPlotArea(PlotAreaManager.java:223)
[16:09:58] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.BukkitPlatform.lambda$runEntityTask$6(BukkitPlatform.java:772)
[16:09:58] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.util.task.BukkitPlotSquaredTask.runTask(BukkitPlotSquaredTask.java:39)
[16:09:58] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.core.util.task.PlotSquaredTask.run(PlotSquaredTask.java:44)
[16:09:58] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101)
[16:09:58] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482)
[16:09:58] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1636)
[16:09:58] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)
[16:09:58] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1515)
[16:09:58] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1216)
[16:09:58] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[16:09:58] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:1623)
[16:09:59] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "org.bukkit.event.entity.CreatureSpawnEvent$SpawnReason.name()" because the return value of "org.bukkit.entity.Entity.getEntitySpawnReason()" is null
[16:09:59] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.BukkitPlatform.lambda$runEntityTask$5(BukkitPlatform.java:782)
[16:09:59] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.core.plot.world.PlotAreaManager.forEachPlotArea(PlotAreaManager.java:223)
[16:09:59] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.BukkitPlatform.lambda$runEntityTask$6(BukkitPlatform.java:772)
[16:09:59] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.util.task.BukkitPlotSquaredTask.runTask(BukkitPlotSquaredTask.java:39)
[16:09:59] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.core.util.task.PlotSquaredTask.run(PlotSquaredTask.java:44)
[16:09:59] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101)
[16:09:59] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482)
[16:09:59] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1636)
[16:09:59] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)
[16:09:59] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1515)
[16:09:59] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1216)
[16:09:59] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[16:09:59] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:1623)
[16:10:00] [Server thread/WARN]: java.lang.NullPointerException: Cannot invoke "org.bukkit.event.entity.CreatureSpawnEvent$SpawnReason.name()" because the return value of "org.bukkit.entity.Entity.getEntitySpawnReason()" is null
[16:10:00] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.BukkitPlatform.lambda$runEntityTask$5(BukkitPlatform.java:782)
[16:10:00] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.core.plot.world.PlotAreaManager.forEachPlotArea(PlotAreaManager.java:223)
[16:10:00] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.BukkitPlatform.lambda$runEntityTask$6(BukkitPlatform.java:772)
[16:10:00] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.bukkit.util.task.BukkitPlotSquaredTask.runTask(BukkitPlotSquaredTask.java:39)
[16:10:00] [Server thread/WARN]: at plotsquared-bukkit-7.3.2-Premium.jar//com.plotsquared.core.util.task.PlotSquaredTask.run(PlotSquaredTask.java:44)
[16:10:00] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101)
[16:10:00] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482)
[16:10:00] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1636)
[16:10:00] [Server thread/WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)
[16:10:00] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1515)
[16:10:00] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1216)
[16:10:00] [Server thread/WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319)
[16:10:00] [Server thread/WARN]: at java.base/java.lang.Thread.run(Thread.java:1623)
[16:10:01] [Server thread/WARN]: java.lang.NullPointerException
[16:10:02] [Server thread/WARN]: java.lang.NullPointerException
[16:10:03] [Server thread/WARN]: java.lang.NullPointerException
[16:10:04] [Server thread/WARN]: java.lang.NullPointerException
[16:10:05] [Server thread/WARN]: java.lang.NullPointerException
[16:10:06] [Server thread/WARN]: java.lang.NullPointerException
[16:10:07] [Server thread/WARN]: java.lang.NullPointerException
[16:10:08] [Server thread/WARN]: java.lang.NullPointerException
[16:10:09] [Server thread/WARN]: java.lang.NullPointerException
[16:10:10] [Server thread/WARN]: java.lang.NullPointerException
[16:10:11] [Server thread/WARN]: java.lang.NullPointerException
[16:10:12] [Server thread/WARN]: java.lang.NullPointerException
[16:10:13] [Server thread/WARN]: java.lang.NullPointerException
[16:10:14] [Server thread/WARN]: java.lang.NullPointerException
[16:10:15] [Server thread/WARN]: java.lang.NullPointerException
[16:10:16] [Server thread/WARN]: java.lang.NullPointerException
[16:10:17] [Server thread/WARN]: java.lang.NullPointerException
[16:10:18] [Server thread/WARN]: java.lang.NullPointerException
[16:10:19] [Server thread/WARN]: java.lang.NullPointerException
[16:10:20] [Server thread/WARN]: java.lang.NullPointerException
[16:10:21] [Server thread/WARN]: java.lang.NullPointerException
To Reproduce
- Not sure
Expected behaviour
No errors in console
Screenshots / Videos
No response
Error log (if applicable)
No response
Fawe Debugpaste
https://athion.net/ISPaster/paste/view/96d6e162d3c44acd8c5cfda73c4861ba
Fawe Version
FastAsyncWorldEdit-648
Checklist
- I have included a Fawe debugpaste.
- I am using the newest build from https://ci.athion.net/job/FastAsyncWorldEdit/ and the issue still persists.
Anything else?
No response