Problem with 1.2.3

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

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

    heifinator

    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.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:211)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139)
    ... 8 more
    Caused by: java.lang.NullPointerException
    at net.deviantevil.deviantschematics.DSchematicSignsConfig.<init>(DSchematicSignsConfig.java:23)
    at net.deviantevil.deviantschematics.DeviantSchematics.<clinit>(DeviantSchematics.java:28)
    ... 11 more

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

    Usche

     
  3. Offline

    heifinator

    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

    nisovin

    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

    heifinator

    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

    Numenorean95

    Link to code?
     
  7. Offline

    Gordy

  8. Offline

    desht

    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