LWC having issues?

Discussion in 'Spigot Plugin Help' started by ceruleanReverie, May 27, 2015.

  1. I use LWC on my server for locking chests/containers, and up until about a week or so ago it's been working perfectly fine without error.

    Then, all of a sudden, everyone begins getting "[LWC] Internal error. Notify an admin immediately. :pLAYER_INTERACT" whenever they place a chest (I have it set up so chests are locked automatically). There's pretty much no good reason why this should be happening, because we hadn't recently updated any plugins at all and to my knowledge nothing changed with our SQL database (we use a shared host, no hate pls :( ).

    I tried updating the plugin to the latest dev version cause the version we used was a bit behind, and it worked for a solid 15 minutes before errors starting coming up again. I figured out that the plugin seems to let you create protections for a short amount of time after the server restarts but it quickly goes back to not working again. I can't figure out why, nothing changed in the config settings, everything was exactly the same, but LWC just won't work.

    Also, we use the MySQL database for two other plugins- mcMMO and logblock, and both of those are functioning perfectly fine. Only LWC is having issues. Can someone help me figure out why? LWC is very important to our server and we've been without it for like a week...

    We're using the latest of 1.8.3 spigot as well as the latest dev release of LWC.
     
  2. Please post stack-traces, otherwise we cannot help.
     
  3. MikeA

    MikeA Retired Moderator
    Retired Benefactor

    What LWC version/snapshot are you using? I haven't had any issues with LWC for a very long time, not in the 1.8 updates.
     
  4. I too have not, but saying I haven't used it for about 9 months.
     
  5. this happens whenever someone places a chest (or tries to create a protection in general)

    We're using the latest snapshot, 4.4.0 is the version I believe, doing /LWC admin version shows "4.5.0-snapshot / 4.4.0"

    EDIT: i was kinda vague so I edited this to be more specific :p
     
    #5 ceruleanReverie, May 28, 2015
    Last edited: May 28, 2015
  6. Bump?

    I'm still having this problem... :[
     
  7. You updated it?
     
  8. Yeah, it's updated. The problem is still happening, though. The version doesn't seem to matter in regards to this problem I'm having.

    If it's worth mentioning, I've also been having a weird issue with Logblock where trying to do lookups fails silently. It gets fixed after a restart though. I think it may have to do with the recent maintenance OVH was having, though...

    If I can't get this fixed I may have to just look for another block protection plugin, but I don't know of any besides lockette which I always hated... Or maybe just ditch the idea entirely, I guess (stealing is against our rules anyways it would just mean having to reprimand people more for that)
     
  9. Anyone? :/

    I provided the stacktrace..... Does anyone know what's going on?

    Here, I'll paste more:

    Error I get when placing a chest. After placing the chest, LWC tries to auto-lock it, then fails. This stacktrace shows up in the log:

    Code (Text):
    [21:03:08] [Server thread/WARN]: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.5.0
    [21:03:08] [Server thread/WARN]:     at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:358)
    [21:03:08] [Server thread/WARN]:     at com.griefcraft.listeners.LWCBlockListener.onBlockPlaceMonitor(LWCBlockListener.java:456)
    [21:03:08] [Server thread/WARN]:     at sun.reflect.GeneratedMethodAccessor211.invoke(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at java.lang.reflect.Method.invoke(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    [21:03:08] [Server thread/WARN]:     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [21:03:08] [Server thread/WARN]:     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    [21:03:08] [Server thread/WARN]:     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    [21:03:08] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R2.event.CraftEventFactory.callBlockPlaceEvent(CraftEventFactory.java:126)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.ItemStack.placeItem(ItemStack.java:157)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PlayerInteractManager.interact(PlayerInteractManager.java:503)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:740)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13)
    [21:03:08] [Server thread/WARN]:     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at java.util.concurrent.FutureTask.run(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:712)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:368)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:651)
    [21:03:08] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:554)
    [21:03:08] [Server thread/WARN]:     at java.lang.Thread.run(Unknown Source)
    [21:03:08] [Server thread/WARN]: Caused by: com.griefcraft.scripting.ModuleException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 43,264,876 milliseconds ago.  The last packet sent successfully to the server was 43,099,856 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
    [21:03:08] [Server thread/WARN]:     at com.griefcraft.sql.Database.printException(Database.java:199)
    [21:03:08] [Server thread/WARN]:     at com.griefcraft.sql.PhysDB.getProtectionCount(PhysDB.java:179)
    [21:03:08] [Server thread/WARN]:     at com.griefcraft.modules.limits.LimitsV2$DefaultLimit.getProtectionCount(LimitsV2.java:138)
    [21:03:08] [Server thread/WARN]:     at com.griefcraft.modules.limits.LimitsV2.hasReachedLimit(LimitsV2.java:343)
    [21:03:08] [Server thread/WARN]:     at com.griefcraft.modules.limits.LimitsV2.onRegisterProtection(LimitsV2.java:209)
    [21:03:08] [Server thread/WARN]:     at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:346)
    [21:03:08] [Server thread/WARN]:     ... 23 more
    [21:03:08] [Server thread/WARN]: Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 43,264,876 milliseconds ago.  The last packet sent successfully to the server was 43,099,856 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
    [21:03:08] [Server thread/WARN]:     at sun.reflect.GeneratedConstructorAccessor236.newInstance(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    [21:03:08] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    [21:03:08] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3348)
    [21:03:08] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1967)
    [21:03:08] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    [21:03:08] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    [21:03:08] [Server thread/WARN]:     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    [21:03:08] [Server thread/WARN]:     at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2273)
    [21:03:08] [Server thread/WARN]:     at com.griefcraft.sql.PhysDB.getProtectionCount(PhysDB.java:171)
    [21:03:08] [Server thread/WARN]:     ... 27 more
    [21:03:08] [Server thread/WARN]: Caused by: java.net.SocketException: Broken pipe
    [21:03:08] [Server thread/WARN]:     at java.net.SocketOutputStream.socketWrite0(Native Method)
    [21:03:08] [Server thread/WARN]:     at java.net.SocketOutputStream.socketWrite(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at java.net.SocketOutputStream.write(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at java.io.BufferedOutputStream.flush(Unknown Source)
    [21:03:08] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3329)
    [21:03:08] [Server thread/WARN]:     ... 33 more
    Error I get when trying to use /lock on a chest that isn't protected:

    Code (Text):
    [21:03:37] [Server thread/INFO]: ceruleanReverie issued server command: /lock
    [21:03:38] [Server thread/WARN]: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.5.0
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:358)
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.listeners.LWCPlayerListener.onPlayerInteract(LWCPlayerListener.java:303)
    [21:03:38] [Server thread/WARN]:     at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at java.lang.reflect.Method.invoke(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    [21:03:38] [Server thread/WARN]:     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [21:03:38] [Server thread/WARN]:     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
    [21:03:38] [Server thread/WARN]:     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
    [21:03:38] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:227)
    [21:03:38] [Server thread/WARN]:     at org.bukkit.craftbukkit.v1_8_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:194)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PlayerInteractManager.a(PlayerInteractManager.java:107)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:604)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PacketPlayInBlockDig.a(SourceFile:40)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PacketPlayInBlockDig.a(SourceFile:10)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13)
    [21:03:38] [Server thread/WARN]:     at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at java.util.concurrent.FutureTask.run(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:712)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:368)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:651)
    [21:03:38] [Server thread/WARN]:     at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:554)
    [21:03:38] [Server thread/WARN]:     at java.lang.Thread.run(Unknown Source)
    [21:03:38] [Server thread/WARN]: Caused by: com.griefcraft.scripting.ModuleException: LWC Module threw an uncaught exception! LWC version: 4.5.0
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:358)
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.modules.create.CreateModule.onBlockInteract(CreateModule.java:116)
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:334)
    [21:03:38] [Server thread/WARN]:     ... 23 more
    [21:03:38] [Server thread/WARN]: Caused by: com.griefcraft.scripting.ModuleException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 43,295,024 milliseconds ago.  The last packet sent successfully to the server was 43,130,004 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.sql.Database.printException(Database.java:199)
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.sql.PhysDB.getProtectionCount(PhysDB.java:179)
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.modules.limits.LimitsV2$DefaultLimit.getProtectionCount(LimitsV2.java:138)
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.modules.limits.LimitsV2.hasReachedLimit(LimitsV2.java:343)
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.modules.limits.LimitsV2.onRegisterProtection(LimitsV2.java:209)
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.scripting.ModuleLoader.dispatchEvent(ModuleLoader.java:346)
    [21:03:38] [Server thread/WARN]:     ... 25 more
    [21:03:38] [Server thread/WARN]: Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 43,295,024 milliseconds ago.  The last packet sent successfully to the server was 43,130,004 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
    [21:03:38] [Server thread/WARN]:     at sun.reflect.GeneratedConstructorAccessor236.newInstance(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at java.lang.reflect.Constructor.newInstance(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    [21:03:38] [Server thread/WARN]:     at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
    [21:03:38] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3348)
    [21:03:38] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1967)
    [21:03:38] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    [21:03:38] [Server thread/WARN]:     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    [21:03:38] [Server thread/WARN]:     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    [21:03:38] [Server thread/WARN]:     at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2273)
    [21:03:38] [Server thread/WARN]:     at com.griefcraft.sql.PhysDB.getProtectionCount(PhysDB.java:171)
    [21:03:38] [Server thread/WARN]:     ... 29 more
    [21:03:38] [Server thread/WARN]: Caused by: java.net.SocketException: Broken pipe
    [21:03:38] [Server thread/WARN]:     at java.net.SocketOutputStream.socketWrite0(Native Method)
    [21:03:38] [Server thread/WARN]:     at java.net.SocketOutputStream.socketWrite(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at java.net.SocketOutputStream.write(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at java.io.BufferedOutputStream.flush(Unknown Source)
    [21:03:38] [Server thread/WARN]:     at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3329)
    [21:03:38] [Server thread/WARN]:     ... 35 more
    Any guesses?:(
     
  10. If no one knows what the issue is, I'm just going to have to get rid of LWC and switch to a plugin that actually works for me...

    Does anyone know any LWC alternatives? I know there's lockette, but I've always been so annoyed how you have to have a sign and write [lock] on it just to lock your chests.

    If someone can help me with getting LWC to work that'd be much better though...
     
  11. I'm gonna try bumping this one last time...

    Can *anyone* help me with this? idc if you're rude and call me an idiot for not knowing what's wrong, i mean i probably am... i just need this fixed :(