Unknown error.

Discussion in 'Plugin Development' started by robotballs, May 25, 2020.

  1. Offline

    robotballs

    I am getting an error when my plugin disables and I am unsure of what the cause is. There is nothing in my onDisable so I am assuming its because of a lack of something? Anyways, here is the error.

    Code:
    [20:01:39] [Server thread/INFO]: [PrisonAddons] Disabling PrisonAddons v2.1
    [20:01:39] [Server thread/ERROR]: Error occurred (in the plugin loader) while unregistering services for PrisonAddons v2.1 (Is it up to date?)
    java.lang.NullPointerException: null
            at org.bukkit.plugin.SimpleServicesManager.unregisterAll(SimpleServicesManager.java:84) ~[spigot.jar:git-Spigot-800b93f-8160e29]
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:450) [spigot.jar:git-Spigot-800b93f-8160e29]
            at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:430) [spigot.jar:git-Spigot-800b93f-8160e29]
            at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManager.java:481) [spigot.jar:git-Spigot-800b93f-8160e29]
            at org.bukkit.craftbukkit.v1_15_R1.CraftServer.reload(CraftServer.java:777) [spigot.jar:git-Spigot-800b93f-8160e29]
            at org.bukkit.Bukkit.reload(Bukkit.java:576) [spigot.jar:git-Spigot-800b93f-8160e29]
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27) [spigot.jar:git-Spigot-800b93f-8160e29]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) [spigot.jar:git-Spigot-800b93f-8160e29]
            at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:711) [spigot.jar:git-Spigot-800b93f-8160e29]
            at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchServerCommand(CraftServer.java:696) [spigot.jar:git-Spigot-800b93f-8160e29]
            at net.minecraft.server.v1_15_R1.DedicatedServer.handleCommandQueue(DedicatedServer.java:436) [spigot.jar:git-Spigot-800b93f-8160e29]
            at net.minecraft.server.v1_15_R1.DedicatedServer.b(DedicatedServer.java:400) [spigot.jar:git-Spigot-800b93f-8160e29]
            at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java:984) [spigot.jar:git-Spigot-800b93f-8160e29]
            at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:824) [spigot.jar:git-Spigot-800b93f-8160e29]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]
     
  2. Offline

    timtower Moderator Moderator

  3. Offline

    robotballs

    Code:
        public void onEnable(){
    
            pl = this;
    
            if(!configFile.exists()){
                 pl.saveDefaultConfig();
             }
            if(!RankupData.customYml.exists()){
                RankupData.saveDefaults();
            }
            if(!setupEconomy()){
            }
            LangData.loadLang();
            log = getLogger();
            regListeners();
            regCommands();
            UpdateChecker.checkForUpdates();
            MineData.saveMineData();
            PlotMineData.savePlotMineData();
            setupPermissions();
            MineHandlerClass.startupTimers();
        }
     
  4. Offline

    robotballs

    Can someone give me advice on how to find the error? I'm not sure how to solve this error because the method does not lie within my plugin.
     
  5. Offline

    caderapee

    @robotballs Does the error happen while u start or close ur server ? cuz the error u show, it's when it's disabled
     
  6. Offline

    EpicGodMC

    if you are using vault to create your own economy using the services manager, did you unregister the service in your ondisable?
     

Share This Page