CraftBook 3

CraftBook 3

139k Downloads

After editing config.yml /cb reload returns error even after changes are undone.

LadyCailinBot opened this issue ยท 6 comments

commented

CRAFTBOOK-2839 - Reported by KingDingbat

Tonight I was making minor changes to my config.yml file, and I think I made a syntax error.
When I went to the game and typed /craftbook reload, I got the message:
"An error occurred while reloading the Craftbook config"

So I literally hit undo in my code editor to restore the file to the working version, saved and re-uploaded.
I repeated the command and still get the same error.

The error logs report this:

[04:37:54] [Server thread/INFO]: KingDingbat issued server command: /craftbook reload
[04:37:54] [Server thread/ERROR]: [CraftBook] java.lang.NullPointerException
at com.sk89q.craftbook.bukkit.CraftBookPlugin.reloadConfiguration(CraftBookPlugin.java:831)
at com.sk89q.craftbook.bukkit.commands.TopLevelCommands$Commands.reload(TopLevelCommands.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:533)
at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:520)
at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:475)
at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:409)
at com.sk89q.craftbook.bukkit.CraftBookPlugin.onCommand(CraftBookPlugin.java:530)
at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:52)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:196)
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:542)
at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:932)
at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:814)
at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28)
at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:47)
at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146)
at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134)
at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655)
at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250)
at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545)
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457)
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617)

I even copied and pasted the default config.yml code from GitHub, saved and uploaded, repeated the command and the error still happens.

I restarted my server, and the config file loaded fine and I was able to make some minor changes to true/false values. T

I repeated my suspected mistake, to verify the problem, and again the config.yml file became unusable again, and I could not reload it even after restoring it to default.

commented

Comment by me4502

Please test with the latest version, that error is useless due to it being outdated.

commented

Comment by sat


[17:36:21] [Server thread/INFO]: saturnux issued server command: /cb reload
[17:36:21] [Server thread/ERROR]: [CraftBook] java.lang.NullPointerException
	at com.sk89q.craftbook.bukkit.CraftBookPlugin.reloadConfiguration(CraftBookPlugin.java:980)
	at com.sk89q.craftbook.bukkit.commands.TopLevelCommands$Commands.reload(TopLevelCommands.java:54)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:533)
	at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:520)
	at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:475)
	at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:409)
	at com.sk89q.craftbook.bukkit.CraftBookPlugin.onCommand(CraftBookPlugin.java:682)
	at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:52)
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:199)
	at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:548)
	at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:962)
	at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:817)
	at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28)
	at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:65)
	at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147)
	at net.minecraft.server.v1_7_R1.ServerConnection.c(ServerConnection.java:77)
	at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:698)
	at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273)
	at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:560)
	at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:467)
	at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617)

[17:36:33] [Async Chat Thread - #54/INFO]: [ EventOsaure ] .Cyril_o_Cube : re Emi <3
[17:36:35] [Async Chat Thread - #54/INFO]: [ Pionnier ] eldoow : Merci :3
[17:36:38] [Async Chat Thread - #54/INFO]: [ Resident ] Emimilie : <3
[17:36:40] [Async Chat Thread - #54/INFO]: [ AccroCraft ] fifouludo : coole
[17:36:43] [Async Chat Thread - #54/INFO]: [ EventOsaure ] .Cyril_o_Cube : *.*
[17:36:44] [Async Chat Thread - #54/INFO]: [ Pionnier ] MathCRAFT75 : cyril_o_cube tu peut voir mon magnifique futur chateau ??
[17:36:56] [Server thread/INFO]: cyril_o_cube issued server command: /tp MathCRAFT75
[17:37:05] [Server thread/INFO]: saturnux issued server command: /cb reload
[17:37:05] [Server thread/ERROR]: [CraftBook] java.lang.NullPointerException
	at com.sk89q.craftbook.bukkit.CraftBookPlugin.reloadConfiguration(CraftBookPlugin.java:980)
	at com.sk89q.craftbook.bukkit.commands.TopLevelCommands$Commands.reload(TopLevelCommands.java:54)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.sk89q.minecraft.util.commands.CommandsManager.invokeMethod(CommandsManager.java:533)
	at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:520)
	at com.sk89q.minecraft.util.commands.CommandsManager.executeMethod(CommandsManager.java:475)
	at com.sk89q.minecraft.util.commands.CommandsManager.execute(CommandsManager.java:409)
	at com.sk89q.craftbook.bukkit.CraftBookPlugin.onCommand(CraftBookPlugin.java:682)
	at com.sk89q.bukkit.util.DynamicPluginCommand.execute(DynamicPluginCommand.java:52)
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:199)
	at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServer.java:548)
	at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerConnection.java:962)
	at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:817)
	at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java:28)
	at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat.java:65)
	at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147)
	at net.minecraft.server.v1_7_R1.ServerConnection.c(ServerConnection.java:77)
	at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:698)
	at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:273)
	at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:560)
	at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:467)
	at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617)


i use :
Implementation : git-Spigot-1279 (MC: 1.7.2)
CraftBook : 3.8-SNAPSHOT:3579-5267476,master

painting and sponge doesn't work too

thanks

commented

Comment by me4502

Try the latest build.

commented

Comment by sat

this is close for me.

thanks.

commented

Comment by me4502

What version was this on?

commented

Comment by KingDingbat

Oh! Sorry, I'm such a terrible QA tester!
Here's my version stats:

  • Craftbook: v3.8-SNAPSHOT:3520-d265adf,master
  • CraftBukkit: git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks (MC:1.7.2)
  • API v1.7.2-R0.3-SNAPSHOT