Hidendra/LWC — Issue #247: [SEVERE] Could not pass event
Author: Kovna
Created: 2012-02-03 19:59:57+00:00
State: open

Hi LWC,

I get the following under certain conditions. First the error from server.log

2012-02-03 20:54:35 [SEVERE] Could not pass event org.bukkit.event.block.BlockRedstoneEvent to LWC
com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.0.7 (b613)
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:218)
at com.griefcraft.listeners.LWCBlockListener.onBlockRedstoneChange(LWCBlockListener.java:88)
at org.bukkit.plugin.java.JavaPluginLoader$40.execute(JavaPluginLoader.java:544)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:57)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:453)
at net.minecraft.server.BlockRedstoneWire.a(BlockRedstoneWire.java:114)
at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:45)
at net.minecraft.server.BlockRedstoneWire.remove(BlockRedstoneWire.java:244)
at net.minecraft.server.Chunk.a(Chunk.java:386)
at net.minecraft.server.World.setRawTypeId(World.java:371)
at net.minecraft.server.World.setTypeId(World.java:438)
at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:88)
at org.bukkit.craftbukkit.block.CraftBlockState.update(CraftBlockState.java:115)
at net.minecraft.server.ItemRedstone.a(ItemRedstone.java:59)
at net.minecraft.server.ItemStack.placeItem(ItemStack.java:83)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:299)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
at net.minecraft.server.Packet15Place.handle(SourceFile:39)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:537)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
Caused by: java.lang.NullPointerException
at com.griefcraft.modules.redstone.RedstoneModule.onRedstone(RedstoneModule.java:52)
at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:211)
... 23 more

Now the background, I have redstone as an auto-registered protection (we do a lot of redstone-ing) with credstone flag set to allow redstone (obvs ;P ). We also have redstone torches set as available protected items. We dont have any problems with lag (we use MySQL) but still, well over 20k protections says something! Great mod - all I can say.

Not sure when the above errors started happening however when they do happen depending on how many of them there are they not only spam the log but also lag the server for a very small amount of time.

I can't really unprotect redstone as its central to anti-grief some of the stuff people have done.

It's a farily basic server in terms of mods (nothing major installed, certainly nothing game changing).

If you want I dont mind pasting config files - Just ask :)

Many Thanks for reading all this, I know what its like when you get an error report which just says "x isnt working when i do y, halp!" ;)