Error messages on console. Please help!!

Discussion in 'Plugin Development' started by Cystalize, Aug 6, 2012.

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

    Cystalize

    I am test running a plugin that I am developing and when loading it up, it gives me this message:

    Code:
    22:29:09 [SEVERE] Error occurred while enabling Spamicide v0.1 (Is it up to date?)
    java.lang.NullPointerException
        at me.arsinia.spamicide.Spamicide.parseArray(Spamicide.java:51)
        at me.arsinia.spamicide.Spamicide.load(Spamicide.java:85)
        at me.arsinia.spamicide.Spamicide.onEnable(Spamicide.java:39)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:357)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:263)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:245)
        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:380)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)


    Also, the plugin crashes when I try to use the reload command for it. The thing is, everything is up to date! The Java Build Path is the exact same as the craftbukkit version that I am using to run the test server. I am using CraftBukkit Build #2312, which is the latest build as of posting this.

    I tried other versions to but the same thing keeps happening. I also have no errors in Eclipse, and no error messages when exporting the plugin. Please help :3
     
  2. Offline

    ZeusAllMighty11

    There's a problem onLoad with parsing your arrylist.
     
  3. Offline

    Cystalize

    How could I fix that? Currently, it's written like this : ArrayList<String>() I've tried writing it ArrayList() But that didn't work.

    Actually here, tell me what's wrong with this :3
    Code:
    public ArrayList<String> parseArray(String in, char delimiter)


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
Thread Status:
Not open for further replies.

Share This Page