Development Assistance WorldGuard NoClassDefFoundError

Discussion in 'Plugin Help/Development/Requests' started by Hex_27, Apr 30, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Hex_27

    Code:
    [21:17:03] [Server thread/ERROR]: Could not pass event PlayerInteractEvent to Kingdoms v2
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at org.bukkit.craftbukkit.v1_8_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:227) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at net.minecraft.server.v1_8_R2.PlayerInteractManager.interact(PlayerInteractManager.java:463) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at net.minecraft.server.v1_8_R2.PlayerConnection.a(PlayerConnection.java:740) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at net.minecraft.server.v1_8_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at net.minecraft.server.v1_8_R2.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at net.minecraft.server.v1_8_R2.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_45]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_45]
    at net.minecraft.server.v1_8_R2.SystemUtils.a(SourceFile:60) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at net.minecraft.server.v1_8_R2.MinecraftServer.A(MinecraftServer.java:712) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at net.minecraft.server.v1_8_R2.DedicatedServer.A(DedicatedServer.java:368) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at net.minecraft.server.v1_8_R2.MinecraftServer.z(MinecraftServer.java:651) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:554) [spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    Caused by: java.lang.IncompatibleClassChangeError: Found interface com.sk89q.worldguard.protection.ApplicableRegionSet, but class was expected
    at me.leothepro555.kingdoms.main.WorldEditTools.isInRegion(WorldEditTools.java:25) ~[?:?]
    at me.leothepro555.kingdoms.main.Kingdoms.onPlayerRightclick(Kingdoms.java:1093) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot-1.8.3.jar:git-Spigot-2ec6f06-7722428]
    ... 17 more
    It was working fine with Worldguard 6, but the moment I changed it to worldguard 6 beta, the plugin failed to work due to a NoClassDefError.
     
  2. Offline

    mine-care

    Can we see the code where you call this class? Also is the version used for your plugin the same as the one installed in the server?
     
  3. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives
     
  4. Offline

    Hex_27

    Yes, its the same version. Imported with the same directory. Here's the code
    Code:
    public boolean isInRegion(Location loc)
        {
           
            WorldGuardPlugin guard = (WorldGuardPlugin) plugin.getWorldGuard();
            com.sk89q.worldedit.Vector v = BukkitUtil.toVector(loc);
            RegionManager manager = guard.getRegionManager(loc.getWorld());
            ApplicableRegionSet set = manager.getApplicableRegions(v);
            return set.size() > 0;
        }
    Basically I need to find if a player is in a region, so if there is another way that works, I'll be glad to know it.
     
  5. Offline

    Hex_27

    Bump
     
Thread Status:
Not open for further replies.

Share This Page