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 ~[spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at org.bukkit.plugin.SimplePluginManager.loadPlugin( ~[spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins( [spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins( [spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at net.minecraft.server.v1_8_R3.DedicatedServer.init( [spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at [spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at [?: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( ~[?:1.8.0_91]
        at<init>( ~[spigot-1.8.8.jar:git-Spigot-6abac0c-9935adc]
        at ~[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]
        description: UHC setup command.
        description: UHC Host claim command.
        aliases: [tp]
        description: Teleport to a player.
        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