java.lang.ClassCastException: org.spongepowered.common.plugin.SpongeApiContainer cannot be cast to org.spongepowered.api.plugin.PluginContainer

GitHub | Minecrell | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Referencing sponge/spongeapi as dependencies crashes the server

    GitHub | 5 months ago | Minecrell
    java.lang.ClassCastException: org.spongepowered.common.plugin.SpongeApiContainer cannot be cast to org.spongepowered.api.plugin.PluginContainer

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.spongepowered.common.plugin.SpongeApiContainer cannot be cast to org.spongepowered.api.plugin.PluginContainer

      at org.spongepowered.server.launch.plugin.PluginCandidate.collectDependencies()
    2. org.spongepowered.server
      SpongeVanilla.preInitialize
      1. org.spongepowered.server.launch.plugin.PluginCandidate.collectDependencies(PluginCandidate.java:164)
      2. org.spongepowered.server.plugin.VanillaPluginManager.checkRequirements(VanillaPluginManager.java:80)
      3. org.spongepowered.server.plugin.VanillaPluginManager.loadPlugins(VanillaPluginManager.java:69)
      4. org.spongepowered.server.SpongeVanilla.preInitialize(SpongeVanilla.java:171)
      4 frames
    3. MC Server
      MinecraftServer.run
      1. net.minecraft.server.dedicated.DedicatedServer.handler$onServerLoad$0(SourceFile:61)
      2. net.minecraft.server.dedicated.DedicatedServer.func_71197_b(SourceFile:112)
      3. net.minecraft.server.MinecraftServer.run(SourceFile:428)
      3 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame