Error loading stopping the plugin from working #41


  • New
  • Defect
Open
Assigned to _ForgeUser8345480
  • _ForgeUser7856318 created this issue Aug 12, 2012

    **What steps will reproduce the problem?
    1. Start server with epicglass w/o Guns+

    What is the expected output? What do you see instead?
    I expected to see no errors.

    What versions EpicGlass and Craftbukkit are you using?
    Crafbukkit 1.31-R1.0

    Do you have an error log of what happened?
    2012-08-12 14:14:02 [SEVERE] Error occurred while enabling EpicGlass v1.14 by Malikk (Is it up to date?)
    java.lang.NoClassDefFoundError: team/GunsPlus/GunsPlus
        at me.jordan.epicGlass.gunsPlus.EGGuns.hookGuns(EGGuns.java:21)
        at me.jordan.epicGlass.EpicGlass.onEnable(EpicGlass.java:40)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
        at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
        at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)

    If you think it could be a config related issue, please post a pastebin link to your config file.

    Please provide any additional information below.**

    Check if guns+ is loaded using Bukkit.getServer().getPluginManager().getPlugin("Guns+") != null

  • _ForgeUser7856318 added the tags New Defect Aug 12, 2012
  • _ForgeUser8345480 posted a comment Aug 12, 2012

    What version of Guns+ are you using? Because it's not causing any problems for me and the line number of that error doesn't make sense unless they changed the name of their main class.

  • _ForgeUser8345480 posted a comment Aug 12, 2012

    This doesn't make any sense. With CB #2317 (1.3.1-R1.0 Recommended build) and EpicGlass v1.14, I'm not having any issues. Works with and without Guns+ just fine.

    In order for that error to be thrown, you'd have to have found Guns, but the main class is wrong, right?

    	public void hookGuns(){
    		Plugin x = plugin.getServer().getPluginManager().getPlugin("GunsPlus");
    		if (x != null & x instanceof GunsPlus){
    			guns = (GunsPlus) x;
    			plugin.log(String.format("Hooked %s %s", guns.getDescription().getName(), guns.getDescription().getVersion()));
    			instantiateListener();
    			registerEvents();
    		}else{
    			plugin.log("Guns+ was not found.");
    		}
    	}
    

    The errors on this line,

    if (x != null & x instanceof GunsPlus){
    

    I've checked and double checked that that is still the correct package location.

    Not sure what's going on here for you.


    Edited Aug 12, 2012
  • _ForgeUser7856318 posted a comment Aug 12, 2012

    @Malikk65: Go

    Hmm okay, I will see if I can get this issue resolved.


    Edited Aug 12, 2012
  • _ForgeUser7856318 posted a comment Aug 13, 2012

    Were also getting this type of error with pstones, it seems that the call

     Plugin x = plugin.getServer().getPluginManager().getPlugin("GunsPlus");
    

    is returing not null when infact it should be returning null, I will talk with some bukkit devs and get back to you on this.


    Edited Aug 13, 2012
  • _ForgeUser7856318 posted a comment Aug 13, 2012

    Hey, I have located the problem. It appears that you are building with Java7. Could you please build with java 6? That should fix the problem for anyone getting this issue.

  • _ForgeUser8345480 posted a comment Aug 13, 2012

    @fletch_to_99: Go

    No, I compile with 6

  • _ForgeUser7856318 posted a comment Aug 13, 2012

    @Malikk65: Go

    Hm, The issue is definitally the fact that it is being compiled with java 7. I ran this with no other plugins on my unix test server using Java 6 u 26 and it errored out with the error listed above. I then ran it with java 7 and it loaded fine saying guns+ not found, shields not found.

  • _ForgeUser8345480 posted a comment Aug 13, 2012

    @fletch_to_99: Go

    I can switch it and switch it back just to see if eclipse is doing something retarded.

    I'll post a link here in a few minutes

  • _ForgeUser8345480 posted a comment Aug 13, 2012

    Okay, I was definitely using Java 6, switched to 7

    https://dl.dropbox.com/u/59837317/EpicGlass/EpicGlass%20Java%207.jar

    Then switched back,

    https://dl.dropbox.com/u/59837317/EpicGlass/EpicGlass%20Java%206.jar

    Try both of those out, just for kicks

  • _ForgeUser7856318 posted a comment Aug 14, 2012

    @Malikk65: Go

    Hmm, yeah when I threw the java 7 version on it gave me the unsupported class version error. When I threw the Java 6 version on it gave me the error listed above. However when I ran the server on Java 7 both versions are able to load fine. Were using Java 6 Update 26 (Jrockit). If you could pass me the src and the libs perhaps I can try compiling it and see if it works? I have a plugin (MonsterIRC) that has the exact same checks as yours and it loads up just fine. This issue is honestly really odd.

    Thanks again,

    Fletch

  • _ForgeUser8345480 posted a comment Aug 15, 2012

    Try this out. This version makes no attempt to hook either Guns or Shield, so, if those were the only issues you should be good to go.

    https://dl.dropbox.com/u/59837317/EpicGlass/EpicGlass-fletch.jar

  • _ForgeUser7856318 posted a comment Aug 17, 2012

    @Malikk65: Go

    We just upgraded our server to Java 7 as a few otehr plugins were giving this and nobody could figure it out.


To post a comment, please login or register a new account.