Plugin attempts to retrieve player on server startup and spits out a NullPointerException
bigbeno37 opened this issue ยท 9 comments
So I startup my server (which I have been on previously) and after loading for a little bit it tries to load info about saved players, as evidenced in the server log:
[15:15:53] [Server thread/INFO]: Starting minecraft server version 1.8
[15:15:53] [Server thread/INFO]: Loading properties
[15:15:53] [Server thread/INFO]: Default game type: SURVIVAL
[15:15:53] [Server thread/INFO]: Generating keypair
[15:15:53] [Server thread/INFO]: Starting Minecraft server on *:25565
[15:15:54] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-96d09e3 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
[15:15:55] [Server thread/INFO]: [Vault] Loading Vault v1.5.0-b28
[15:15:55] [Server thread/INFO]: [Citizens] Loading Citizens v2.0.14-SNAPSHOT (build 1195)
[15:15:55] [Server thread/INFO]: [Heroes] Loading Heroes v1.5.5.4-SNAPSHOT-b66
[15:15:55] [Server thread/INFO]: [EpicQuest] Loading EpicQuest v3.4.3
[15:15:55] [Server thread/INFO]: [Vault] Enabling Vault v1.5.0-b28
[15:15:55] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[15:15:55] [Server thread/INFO]: [Vault] Enabled Version 1.5.0-b28
[15:15:55] [Server thread/INFO]: Preparing level "world"
[15:15:55] [Server thread/INFO]: Preparing start region for level 0 (Seed: 1530998597710896643)
[15:15:56] [Server thread/INFO]: Preparing spawn area: 26%
[15:15:57] [Server thread/INFO]: Preparing spawn area: 87%
[15:15:58] [Server thread/INFO]: Preparing start region for level 1 (Seed: 1530998597710896643)
[15:15:59] [Server thread/INFO]: Preparing spawn area: 79%
[15:15:59] [Server thread/INFO]: Preparing start region for level 2 (Seed: 1530998597710896643)
[15:16:00] [Server thread/INFO]: [Citizens] Enabling Citizens v2.0.14-SNAPSHOT (build 1195)
[15:16:00] [Server thread/ERROR]: [Citizens] Unable to find Rhino classes - javascript scripts won't see non-CraftBukkit classes
[15:16:00] [Server thread/INFO]: [Heroes] Enabling Heroes v1.5.5.4-SNAPSHOT-b66
[15:16:00] [Server thread/INFO]: [Heroes] You are running Heroes on git-Bukkit-96d09e3 (MC: 1.8)
[15:16:00] [Server thread/INFO]: [Heroes] The detected server mod is BUKKIT. Heroes will use BUKKIT compatibility!
[15:16:00] [Server thread/ERROR]: [Heroes] You are attempting to load Heroes on version v1_8_R1 which is not supported!
[15:16:00] [Server thread/INFO]: [Heroes] Disabling Heroes v1.5.5.4-SNAPSHOT-b66
[15:16:00] [Server thread/INFO]: [Heroes] version 1.5.5.4-SNAPSHOT-b66 is disabled!
[15:16:00] [Server thread/INFO]: [EpicQuest] Enabling EpicQuest v3.4.3
[15:16:00] [Server thread/INFO]: EpicQuest is done loading 20 quests.
[15:16:00] [Server thread/INFO]: [EpicQuest]: Succesfully loaded 46 blocks in the block list.
[15:16:00] [Server thread/INFO]: EpicQuest version 3.4.3 enabled.
[15:16:00] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[15:16:01] [Server thread/INFO]: Done (5.378s)! For help, type "help" or "?"
[15:16:01] [Server thread/INFO]: [Citizens] Loaded 0 NPCs.
[15:16:02] [pool-3-thread-2/INFO]: [Vault] Checking for Updates ...
[15:16:02] [Timer-0/INFO]: Saving...
[15:16:03] [Timer-0/INFO]: There are no players to save
[15:16:04] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2422ms behind, skipping 48 tick(s)
[15:16:05] [Server thread/WARN]: [EpicQuest] Task #5 for EpicQuest v3.4.3 generated an exception
java.lang.NullPointerException
at randy.epicquest.EpicPlayer.giveQuestBook(EpicPlayer.java:109) ~[?:?]
at randy.filehandlers.SaveLoader.loadPlayer(SaveLoader.java:457) ~[?:?]
at randy.epicquest.EpicSystem.getEpicPlayer(EpicSystem.java:73) ~[?:?]
at randy.filehandlers.SaveLoader.loadQuestEntities(SaveLoader.java:370) ~[?:?]
at randy.filehandlers.SaveLoader$1.run(SaveLoader.java:325) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
[15:16:08] [pool-3-thread-2/INFO]: [Vault] No new version available
Still producing same error. As well as this, it is now producing an error whenever the user selects the Quest Book:
[15:23:13] [Server thread/INFO]: Starting minecraft server version 1.8
[15:23:13] [Server thread/INFO]: Loading properties
[15:23:13] [Server thread/INFO]: Default game type: SURVIVAL
[15:23:13] [Server thread/INFO]: Generating keypair
[15:23:14] [Server thread/INFO]: Starting Minecraft server on *:25565
[15:23:15] [Server thread/INFO]: This server is running CraftBukkit version git-Bukkit-96d09e3 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
[15:23:16] [Server thread/INFO]: [Vault] Loading Vault v1.5.0-b28
[15:23:16] [Server thread/INFO]: [Citizens] Loading Citizens v2.0.14-SNAPSHOT (build 1195)
[15:23:16] [Server thread/INFO]: [Heroes] Loading Heroes v1.5.5.4-SNAPSHOT-b66
[15:23:16] [Server thread/INFO]: [EpicQuest] Loading EpicQuest v3.4.3
[15:23:16] [Server thread/INFO]: [Vault] Enabling Vault v1.5.0-b28
[15:23:16] [Server thread/INFO]: [Vault] [Permission] SuperPermissions loaded as backup permission system.
[15:23:16] [Server thread/INFO]: [Vault] Enabled Version 1.5.0-b28
[15:23:16] [Server thread/INFO]: Preparing level "world"
[15:23:16] [Server thread/INFO]: Preparing start region for level 0 (Seed: 1530998597710896643)
[15:23:18] [Server thread/INFO]: Preparing spawn area: 28%
[15:23:19] [Server thread/INFO]: Preparing spawn area: 96%
[15:23:19] [Server thread/INFO]: Preparing start region for level 1 (Seed: 1530998597710896643)
[15:23:20] [Server thread/INFO]: Preparing spawn area: 81%
[15:23:20] [Server thread/INFO]: Preparing start region for level 2 (Seed: 1530998597710896643)
[15:23:21] [Server thread/INFO]: [Citizens] Enabling Citizens v2.0.14-SNAPSHOT (build 1195)
[15:23:21] [Server thread/ERROR]: [Citizens] Unable to find Rhino classes - javascript scripts won't see non-CraftBukkit classes
[15:23:21] [Server thread/INFO]: [Heroes] Enabling Heroes v1.5.5.4-SNAPSHOT-b66
[15:23:21] [Server thread/INFO]: [Heroes] You are running Heroes on git-Bukkit-96d09e3 (MC: 1.8)
[15:23:21] [Server thread/INFO]: [Heroes] The detected server mod is BUKKIT. Heroes will use BUKKIT compatibility!
[15:23:21] [Server thread/ERROR]: [Heroes] You are attempting to load Heroes on version v1_8_R1 which is not supported!
[15:23:21] [Server thread/INFO]: [Heroes] Disabling Heroes v1.5.5.4-SNAPSHOT-b66
[15:23:21] [Server thread/INFO]: [Heroes] version 1.5.5.4-SNAPSHOT-b66 is disabled!
[15:23:21] [Server thread/INFO]: [EpicQuest] Enabling EpicQuest v3.4.3
[15:23:21] [Server thread/INFO]: EpicQuest is done loading 20 quests.
[15:23:21] [Server thread/INFO]: [EpicQuest]: Succesfully loaded 46 blocks in the block list.
[15:23:21] [Server thread/INFO]: EpicQuest version 3.4.3 enabled.
[15:23:21] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[15:23:21] [Server thread/INFO]: Done (5.104s)! For help, type "help" or "?"
[15:23:21] [Server thread/INFO]: [Citizens] Loaded 0 NPCs.
[15:23:21] [pool-3-thread-2/INFO]: [Vault] Checking for Updates ...
[15:23:22] [Timer-0/INFO]: Saving...
[15:23:24] [Timer-0/INFO]: There are no players to save
[15:23:24] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2033ms behind, skipping 40 tick(s)
[15:23:25] [Server thread/WARN]: [EpicQuest] Task #5 for EpicQuest v3.4.3 generated an exception
java.lang.NullPointerException
at randy.epicquest.EpicPlayer.giveQuestBook(EpicPlayer.java:109) ~[?:?]
at randy.filehandlers.SaveLoader.loadPlayer(SaveLoader.java:457) ~[?:?]
at randy.epicquest.EpicSystem.getEpicPlayer(EpicSystem.java:73) ~[?:?]
at randy.filehandlers.SaveLoader.loadQuestEntities(SaveLoader.java:370) ~[?:?]
at randy.filehandlers.SaveLoader$1.run(SaveLoader.java:325) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
[15:23:27] [pool-3-thread-2/INFO]: [Vault] No new version available
[15:23:37] [User Authenticator #1/INFO]: UUID of player bigbeno37 is 81ca4297-9da7-4bdd-ad0a-7947d491e865
[15:23:38] [Server thread/INFO]: bigbeno37[/127.0.0.1:8480] logged in with entity id 304 at ([world] 55.13231458111257, 68.0, 250.9028894802417)
[15:23:40] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 2518ms behind, skipping 50 tick(s)
[15:23:57] [Server thread/ERROR]: Could not pass event PlayerItemHeldEvent to EpicQuest v3.4.3
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:853) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PacketPlayInHeldItemSlot.a(SourceFile:30) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PacketPlayInHeldItemSlot.a(SourceFile:8) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_25]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_25]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:643) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
Caused by: java.lang.NullPointerException
at randy.listeners.OpenBookListener.SetQuestBookPages(OpenBookListener.java:60) ~[?:?]
at randy.listeners.OpenBookListener.onEditBook(OpenBookListener.java:38) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:295) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
... 14 more
[15:24:01] [Server thread/ERROR]: Could not pass event PlayerItemHeldEvent to EpicQuest v3.4.3
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:853) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PacketPlayInHeldItemSlot.a(SourceFile:30) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PacketPlayInHeldItemSlot.a(SourceFile:8) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_25]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_25]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:643) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
Caused by: java.lang.NullPointerException
at randy.listeners.OpenBookListener.SetQuestBookPages(OpenBookListener.java:60) ~[?:?]
at randy.listeners.OpenBookListener.onEditBook(OpenBookListener.java:38) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:295) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
... 14 more
[15:24:24] [Server thread/ERROR]: Could not pass event PlayerItemHeldEvent to EpicQuest v3.4.3
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:853) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PacketPlayInHeldItemSlot.a(SourceFile:30) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PacketPlayInHeldItemSlot.a(SourceFile:8) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_25]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_25]
at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:643) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8.jar:git-Bukkit-96d09e3]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_25]
Caused by: java.lang.NullPointerException
at randy.listeners.OpenBookListener.SetQuestBookPages(OpenBookListener.java:60) ~[?:?]
at randy.listeners.OpenBookListener.onEditBook(OpenBookListener.java:38) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_25]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_25]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_25]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:295) ~[craftbukkit-1.8.jar:git-Bukkit-96d09e3]
... 14 more
[15:24:26] [Server thread/INFO]: bigbeno37 lost connection: Disconnected
[15:24:26] [Server thread/INFO]: bigbeno37 left the game.
Each time I selected the Quest Book it produces a NullPointerException and states that the PlayerItemHeldEvent could not be passed to EpicQuest
Yeah okay. I'll get to work on implementing BarAPI. Only thing is Due to a client side bug with 1.8, the bar is only visible to a player if they are looking at the enderdragon. This means players will be able to see an enderdragon in the distance.
Alright, just add it as a soft depend with config enable and disable :). Also, try and work in a new file so we don't get too much conflicts, something like BarHandler or something :D
Well I've done a few collaborative projects with all the conflict mistakes, so I'd rather avoid that if possible haha :p