Hidendra/LWC — Issue #255: Error when anyone tries to place or remove a protection
Author: efengya
Created: 2012-02-15 00:14:51+00:00
State: open

Whenever anyone in the game (including myself who is the admin and has all permissions) tries to protect anything it will say Internal error please contact admin immediately :PLAYER_INTERACT. The same thing happens when they try to remove a protected block/item except it says :BREAK_BLOCK at the end. The following also comes up in the server while this is going on in the game.

[SEVERE] java.sql.SQLException: NYI
19:04:58 [SEVERE]	at org.sqlite.Conn.prepareStatement(Conn.java:217)
19:04:58 [SEVERE]	at com.griefcraft.sql.Database.prepare(Database.java:329)
19:04:58 [SEVERE]	at com.griefcraft.sql.PhysDB.saveHistory(PhysDB.java:1135)
19:04:58 [SEVERE]	at com.griefcraft.model.History.saveNow(History.java:367)
19:04:58 [SEVERE]	at com.griefcraft.sql.PhysDB.registerProtection(PhysDB.java:1111)
19:04:58 [SEVERE]	at com.griefcraft.modules.create.CreateModule.onBlockInteract(CreateModule.java:140)
19:04:58 [SEVERE]	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:193)
19:04:58 [SEVERE]	at com.griefcraft.listeners.LWCPlayerListener.onPlayerInteract(LWCPlayerListener.java:191)
19:04:58 [SEVERE]	at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
19:04:58 [SEVERE]	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
19:04:58 [SEVERE]	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
19:04:58 [SEVERE]	at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
19:04:58 [SEVERE]	at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
19:04:58 [SEVERE]	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:514)
19:04:58 [SEVERE]	at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
19:04:58 [SEVERE]	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
19:04:58 [SEVERE]	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
19:04:58 [SEVERE]	at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
19:04:58 [SEVERE]	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
19:04:58 [SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
19:04:58 [SEVERE]	at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
19:04:58 [SEVERE] com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.0.7 (b613)
19:04:58 [SEVERE]	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:218)
19:04:58 [SEVERE]	at com.griefcraft.listeners.LWCPlayerListener.onPlayerInteract(LWCPlayerListener.java:191)
19:04:58 [SEVERE]	at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:340)
19:04:58 [SEVERE]	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:61)
19:04:58 [SEVERE]	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:460)
19:04:58 [SEVERE]	at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:187)
19:04:58 [SEVERE]	at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:92)
19:04:58 [SEVERE]	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:514)
19:04:58 [SEVERE]	at net.minecraft.server.Packet14BlockDig.handle(SourceFile:43)
19:04:58 [SEVERE]	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
19:04:58 [SEVERE]	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
19:04:58 [SEVERE]	at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
19:04:58 [SEVERE]	at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
19:04:58 [SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
19:04:58 [SEVERE]	at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
19:04:58 [SEVERE] Caused by: java.lang.NullPointerException
19:04:58 [SEVERE]	at com.griefcraft.sql.PhysDB.saveHistory(PhysDB.java:1139)
19:04:58 [SEVERE]	at com.griefcraft.model.History.saveNow(History.java:367)
19:04:58 [SEVERE]	at com.griefcraft.sql.PhysDB.registerProtection(PhysDB.java:1111)
19:04:58 [SEVERE]	at com.griefcraft.modules.create.CreateModule.onBlockInteract(CreateModule.java:140)
19:04:58 [SEVERE]	at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:193)
19:04:58 [SEVERE]	... 14 more
19:05:08 [SEVERE] java.sql.SQLException: NYI
19:05:08 [SEVERE]	at org.sqlite.Conn.prepareStatement(Conn.java:217)
19:05:08 [SEVERE]	at com.griefcraft.sql.Database.prepare(Database.java:329)
19:05:08 [SEVERE]	at com.griefcraft.sql.PhysDB.saveHistory(PhysDB.java:1135)
19:05:08 [SEVERE]	at com.griefcraft.model.History.saveNow(History.java:367)
19:05:08 [SEVERE]	at com.griefcraft.model.Protection.checkAndSaveHistory(Protection.java:790)
19:05:08 [SEVERE]	at com.griefcraft.model.Protection.saveNow(Protection.java:776)
19:05:08 [SEVERE]	at com.griefcraft.util.DatabaseThread.flushDatabase(DatabaseThread.java:135)
19:05:08 [SEVERE]	at com.griefcraft.util.DatabaseThread.run(DatabaseThread.java:157)
19:05:08 [SEVERE]	at java.lang.Thread.run(Thread.java:680)
19:05:08 [SEVERE] Exception in thread "Thread-19"
19:05:08 [SEVERE] java.lang.NullPointerException
19:05:08 [SEVERE]	at com.griefcraft.sql.PhysDB.saveHistory(PhysDB.java:1139)
19:05:08 [SEVERE]	at com.griefcraft.model.History.saveNow(History.java:367)
19:05:08 [SEVERE]	at com.griefcraft.model.Protection.checkAndSaveHistory(Protection.java:790)
19:05:08 [SEVERE]	at com.griefcraft.model.Protection.saveNow(Protection.java:776)
19:05:08 [SEVERE]	at com.griefcraft.util.DatabaseThread.flushDatabase(DatabaseThread.java:135)
19:05:08 [SEVERE]	at com.griefcraft.util.DatabaseThread.run(DatabaseThread.java:157)
19:05:08 [SEVERE]	at java.lang.Thread.run(Thread.java:680)

I have never had this problem before but all of a sudden this started happening and I do not think it is a result of my own work as I have completely re-downloaded and re-setup the plugin several times trying to fix it.