Problem with 1.2.3

Discussion in 'Plugin Development' started by heifinator, Mar 5, 2012.

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


    2012-03-05 20:03:31 [SEVERE] Could not load 'plugins\DeviantSchematics.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(
    at org.bukkit.craftbukkit.CraftServer.<init>(
    at net.minecraft.server.ServerConfigurationManager.<init>(
    at net.minecraft.server.MinecraftServer.init(
    Caused by: java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    ... 8 more
    Caused by: java.lang.NullPointerException
    at net.deviantevil.deviantschematics.DSchematicSignsConfig.<init>(
    at net.deviantevil.deviantschematics.DeviantSchematics.<clinit>(
    ... 11 more

    Anyone have any idea what change in bukkit could cause this? Thanks
  2. Offline


  3. Offline


    I understand that, I am using the new bukkit library and it doesnt have any errors compiling or in the IDE so I was wanting to know if anyone knew what changed that could cause this.

    I do read such things :)
  4. Offline


    Well... have you looked at line 23 of DSchematicSignsConfig to find the problem? Seems you probably have an issue with a static variable being initialized and trying to access a null object.
  5. Offline


    Yea, I looked at it, couldn't find anything.

    Were trying to get this fixed tonight and I am not the primary developer for our dev team, I work mostly with Php. If anyone has a moment and would be willing to look at it, I would greatly apprecaite it! Otherwise I will continue to stumble my way through it!

    Thanks all.
  6. Offline


    Link to code?
  7. Offline


  8. Offline


    The DeviantSchematics class has a static initialiser: private static DSchematicSignsConfig signConfig = new DSchematicSignsConfig() which is called before the onEnable() method, so DeviantSchematics.signsfolder has not yet been initialised by the time the DSchematicSignsConfig constructor is called. Hence the NPE when the constructor attempts to call .mkdirs().

    Should also point out that this has nothing whatsoever to do with upgrading to 1.2. It's just buggy code.
Thread Status:
Not open for further replies.

Share This Page