Solved InvalidPluginException

Discussion in 'Spigot Plugin Development' started by Swedz, Jun 29, 2016.

  1. I am creating a private UHC plugin, and when the server attempts to load the UHC plugin, I get this error:
    Code (Text):
    [18:07:32] [Server thread/ERROR]: Could not load 'plugins/UHC.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:291) [spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198) [spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:524) [spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_91]
    Caused by: java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_91]
        at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_91]
        at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        ... 6 more
    Very odd IMO, I've double checked my plugin.yml and everything, but just in case.. here's my plugin.yml:
    Code (Text):
    name: UHC
    version: 1.0
    description: UltraHardcore plugin
    main: me.Swedz.uhc.Main
    depend: [Core, ProtocolLib]
    commands:
      uhc:
        description: UHC setup command.
      host:
        description: UHC Host claim command.
      spec:
        aliases: [tp]
        description: Teleport to a player.
      team:
        description: Team command for UHC
    If you need anything else, please let me know!
    Thanks in advance.
     
  2. NVM! I found the issue.. It was in my code somehow. :p Sorry