[SOLVED] What is this Error and how do I fix it.

Discussion in 'Spigot Plugin Help' started by MasterReturnz, May 26, 2015.

  1. So basically I've recently started building on my server after a long time and started using Spiggot. I've been using it for a while now and today randomly, I don't know what caused it, I started getting this error in the console. After a read through it myself and some testing on the server, it appears that this error comes up everytime I right-click with the WorldEdit wand. Thats the secondary position selection with the wand. Left click (Or first position) is completely fine, but everytime I right click, I get this error. Its really irritating because it spams the console. Sometimes it comes up randomly aswell I believe, I really don't know how to fix this one.

    Any help is appreciated.
    If you need any extra information, I can give it to you no problem.

    ________________________________________________

    - SpiggotGUI version 2.0.0.245
    - Spiggot Version 1.8-R0.1-SNAPSHOT

    Server startup
    http://pastebin.com/XEuAVEAH

    The error.
    10:30:17 PM [ERROR] Could not pass event PlayerInteractEvent to Essentials vTeamCity
    10:30:17 PM org.bukkit.event.EventException
    10:30:17 PM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:226) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:193) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:189) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:661) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at net.minecraft.server.v1_8_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:50) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at net.minecraft.server.v1_8_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:80) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_45]
    10:30:17 PM at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_45]
    10:30:17 PM at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    10:30:17 PM Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.getTargetBlock(Ljava/util/Set;I)Lorg/bukkit/block/Block;
    10:30:17 PM at com.earth2me.essentials.signs.SignPlayerListener.onSignPlayerInteract(SignPlayerListener.java:47) ~[?:?]
    10:30:17 PM at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) ~[?:?]
    10:30:17 PM at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    10:30:17 PM at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    10:30:17 PM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:30:17 PM ... 17 more

    Another error that came up when I did nothing really.
    10:52:40 PM [ERROR] Could not pass event PlayerInteractEvent to Essentials vTeamCity
    10:52:40 PM org.bukkit.event.EventException
    10:52:40 PM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:226) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:193) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:189) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:661) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at net.minecraft.server.v1_8_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:50) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at net.minecraft.server.v1_8_R1.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:80) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_45]
    10:52:40 PM at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_45]
    10:52:40 PM at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    10:52:40 PM Caused by: java.lang.NoSuchMethodError: org.bukkit.entity.Player.getTargetBlock(Ljava/util/Set;I)Lorg/bukkit/block/Block;
    10:52:40 PM at com.earth2me.essentials.signs.SignPlayerListener.onSignPlayerInteract(SignPlayerListener.java:47) ~[?:?]
    10:52:40 PM at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source) ~[?:?]
    10:52:40 PM at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    10:52:40 PM at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    10:52:40 PM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-Spigot-8dc4297-a7287cb]
    10:52:40 PM ... 17 more
     
    #1 MasterReturnz, May 26, 2015
    Last edited: May 26, 2015
  2. That error is the result of... and I hate being so straight forward... the server software (spigot) is unable to pass the event PlayerInteractEvent to the plugin. So basically what is happening. When A (you) clicks a button, moves, looks, or interacts with the game in anyway. The server software (spigot) handles the event and then any plugin requesting spigot to pass the event to them so they can use it will be granted access.

    Essentials vTeamCity (unofficial build of essentials) must not have the proper updated API for Spigot.

    Get the most updated version of that Essentials vTeamCity build. That may fix the issue.
     
  3. Installed the latest Essentials version after removing the old one and I get this.
    07:15:58 PM [INFO] [Essentials] Enabling Essentials v2.13.1
    07:15:58 PM [INFO] Bukkit version format changed. Version not checked.
    07:15:58 PM [INFO] git-Spigot-8dc4297-a7287cb (MC: 1.8)
    07:15:58 PM [INFO] 1.8-R0.1-SNAPSHOT
    07:15:58 PM [INFO] Creating config from template: C:\Users\-\Desktop\Minecraft Server 2\plugins\Essentials\config.yml
    07:15:58 PM [ERROR] java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.maximumSize(I)Lcom/google/common/cache/CacheBuilder;
    07:15:58 PM [INFO] Creating empty config: C:\Users\-\Desktop\Minecraft Server 2\plugins\Essentials\upgrades-done.yml
    07:15:58 PM [ERROR] Error occurred while enabling Essentials v2.13.1 (Is it up to date?)
    07:15:58 PM java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.maximumSize(I)Lcom/google/common/cache/CacheBuilder;
    07:15:58 PM at com.earth2me.essentials.UserMap.<init>(UserMap.java:27) ~[?:?]
    07:15:59 PM at com.earth2me.essentials.Essentials.onEnable(Essentials.java:195) ~[?:?]
    07:15:59 PM at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:352) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:313) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:494) [spigot.jar:git-Spigot-8dc4297-a7287cb]
    07:15:59 PM at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
     
  4. Solved!

    So what I did was, I installed the same Essentials version again and moved the other one and its Essentials folder away and with the new one, I copied the files in 1 by 1 to see which one was causing it. After a long while, I changed the things in the config.yml as they were before and this time turned some things off and some on. In the end, it was the Essentials Sign Control that I had recently turned on. For some reason, it caused these errors. After turning all the EnabledSigns off, it fixed.

    Fixed. Please lock this.
     
  5. You actually needed to disabled all the signs 0_0?
     
  6. Signs in general still work, only now I can't use the [Heal], [Free], [Disposal] and stuff on the sign.
     
  7. You can use serversigns to "cheat" in still running these commands.