Need help with InvalidPluginException (Plugin already initialized)

Discussion in 'Plugin Development' started by vjttq, Jan 25, 2023 at 5:23 AM.

  1. Offline

    vjttq

  2. Offline

    timtower Administrator Administrator Moderator

    @vjttq Can you post the full error?
     
  3. Offline

    vjttq

    Of course, the error is


    >plugman load DecoiledGangsPlus
    [13:17:45 WARN]: org.bukkit.plugin.InvalidPluginException: java.lang.IllegalArgumentException: Plugin already initialized!
    [13:17:45 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135)
    [13:17:45 WARN]: at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329)
    [13:17:45 WARN]: at com.rylinaux.plugman.util.PluginUtil.load(PluginUtil.java:356)
    [13:17:45 WARN]: at com.rylinaux.plugman.command.LoadCommand.execute(LoadCommand.java:114)
    [13:17:45 WARN]: at com.rylinaux.plugman.PlugManCommandHandler.onCommand(PlugManCommandHandler.java:95)
    [13:17:45 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
    [13:17:45 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141)
    [13:17:45 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641)
    [13:17:45 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:627)
    [13:17:45 WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:412)
    [13:17:45 WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:375)
    [13:17:45 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
    [13:17:45 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
    [13:17:45 WARN]: at java.lang.Thread.run(Thread.java:748)
    [13:17:45 WARN]: Caused by: java.lang.IllegalArgumentException: Plugin already initialized!
    [13:17:45 WARN]: at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:122)
    [13:17:45 WARN]: at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:66)
    [13:17:45 WARN]: at eu.decoiled.Main.<init>(Main.java:25)
    [13:17:45 WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [13:17:45 WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    [13:17:45 WARN]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [13:17:45 WARN]: at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    [13:17:45 WARN]: at java.lang.Class.newInstance(Class.java:442)
    [13:17:45 WARN]: at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76)
    [13:17:45 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131)
    [13:17:45 WARN]: ... 13 more
    [13:17:45 WARN]: Caused by: java.lang.IllegalStateException: Initial initialization
    [13:17:45 WARN]: at org.bukkit.plugin.java.PluginClassLoader.initialize(PluginClassLoader.java:125)
    [13:17:45 WARN]: at org.bukkit.plugin.java.JavaPlugin.<init>(JavaPlugin.java:66)
    [13:17:45 WARN]: at eu.decoiled.Main.<init>(Main.java:25)
    [13:17:45 WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [13:17:45 WARN]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    [13:17:45 WARN]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [13:17:45 WARN]: at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    [13:17:45 WARN]: at java.lang.Class.newInstance(Class.java:442)
    [13:17:45 WARN]: at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76)
    [13:17:45 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131)
    [13:17:45 WARN]: at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329)
    [13:17:45 WARN]: at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251)
    [13:17:45 WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugins(CraftServer.java:292)
    [13:17:45 WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:198)
    [13:17:45 WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:525)
    [13:17:45 WARN]: ... 1 more
     
  4. Offline

    timtower Administrator Administrator Moderator

    @vjttq And with a full restart?
     
  5. Offline

    vjttq

    im going to try with a full restart but i don't think is because of this, because i made other plugins and all worked in this way

    didn't work

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jan 25, 2023 at 11:38 AM
  6. Offline

    timtower Administrator Administrator Moderator

    What if it is the only plugin on the server?
     
    mehboss likes this.
  7. Offline

    vjttq

    thanks it worked, it went against another plugin, now I'm trying to understand why, thanks again
     
  8. Offline

    timtower Administrator Administrator Moderator

    Best to find the plugin and check the main class.
     
  9. Offline

    vjttq

    Yeah i checked every plugin and found the problem. Thank you very much
     
  10. Offline

    timtower Administrator Administrator Moderator

    What was the problem? Previously exported version with a different name?
     

Share This Page