Discussion in 'Plugin Development' started by Jazed, Mar 13, 2013.

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



    I am getting these errors, any idea? They render the plugin dead.

    2013-03-13 23:00:58 [SEVERE] Could not pass event PlayerInteractEvent to SuperCraftBros v1.0
            at org.bukkit.plugin.RegisteredListener.callEvent(
            at org.bukkit.plugin.TimedRegisteredListener.callEvent(
            at org.bukkit.plugin.SimplePluginManager.fireEvent(
            at org.bukkit.plugin.SimplePluginManager.callEvent(
            at org.bukkit.craftbukkit.v1_4_R1.event.CraftEventFactory.callPlayerInteractEvent(
            at net.minecraft.server.v1_4_R1.PlayerInteractManager.dig(
            at net.minecraft.server.v1_4_R1.PlayerConnection.a(
            at net.minecraft.server.v1_4_R1.Packet14BlockDig.handle(SourceFile:46)
            at net.minecraft.server.v1_4_R1.NetworkManager.b(
            at net.minecraft.server.v1_4_R1.PlayerConnection.d(
            at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
            at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
            at net.minecraft.server.v1_4_R1.MinecraftServer.r(
            at net.minecraft.server.v1_4_R1.DedicatedServer.r(
            at net.minecraft.server.v1_4_R1.MinecraftServer.q(
    Caused by: java.lang.NoClassDefFoundError: com/jazed/supercraftbros/classes/ClassHandler
            at com.jazed.supercraftbros.Game.giveItems(
            at com.jazed.supercraftbros.Game.addPlayerToClass(
            at com.jazed.supercraftbros.Events.SignClickEvent.clickHandler(
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(
            at java.lang.reflect.Method.invoke(
            ... 17 more
  2. Offline


    Need the code of class's

    com.jazed.supercraftbros.Game.giveItems LINE:749
    com.jazed.supercraftbros.Game.addPlayerToClass LINE:771
  3. Offline


    "Caused by: java.lang.NoClassDefFoundError: com/jazed/supercraftbros/classes/ClassHandler"
    "at com.jazed.supercraftbros.Game.giveItems("
    Googling the error "NoClassDefFoundError" gives this result

    "This runtime error is thrown by the JVM when there is an attempt by a ClassLoader to load the definition of a Class (Class referenced in your application code etc.) and when such Class definition could not be found within the current ClassLoader tree."

    So now we know what the issue means, it means the java file is there when you're programming but when you compile it into a jar it's not there. The error is being caused by whatever is on line 749 of because that's what the stacktrace said.

    Now looking at it ClassHandler is a strange file to be missing so perhaps something went wrong when you compiled the program?

    Now while I can't solve this issue myself as I don't really know what's wrong what I've shown is it's important to learn as much as you can about an error as learning to troubleshoot your town problems is important. Looks like you might be missing a jar file in your build path that allows "giveItems" to work. You didn't supply any code in your main post so we've no way of helping directly.
    Jazed and Burnett1 like this.
  4. Offline


    I think it's a few settings going wrong with the compiling then as I have never had this issue before with this plugin, thanks.
Thread Status:
Not open for further replies.

Share This Page