java.lang.ClassCastException: org.spongepowered.mod.SpongeMod cannot be cast to org.spongepowered.api.plugin.PluginContainer

GitHub | celinor1982 | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 1#253265432

    GitHub | 4 months ago | celinor1982
    java.lang.ClassCastException: org.spongepowered.mod.SpongeMod cannot be cast to org.spongepowered.api.plugin.PluginContainer
  2. 0

    SpongeForge 1890 - v1762

    GitHub | 4 months ago | celinor1982
    java.lang.ClassCastException: org.spongepowered.mod.SpongeMod cannot be cast to org.spongepowered.api.plugin.PluginContainer

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.spongepowered.mod.SpongeMod cannot be cast to org.spongepowered.api.plugin.PluginContainer

      at org.spongepowered.mod.guice.SpongeGuiceModule.configure()
    2. org.spongepowered.mod
      SpongeGuiceModule.configure
      1. org.spongepowered.mod.guice.SpongeGuiceModule.configure(SpongeGuiceModule.java:68)
      1 frame
    3. Google Guice - Core Library
      Guice.createInjector
      1. com.google.inject.AbstractModule.configure(AbstractModule.java:62)
      2. com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
      3. com.google.inject.spi.Elements.getElements(Elements.java:110)
      4. com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
      5. com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
      6. com.google.inject.Guice.createInjector(Guice.java:96)
      7. com.google.inject.Guice.createInjector(Guice.java:73)
      8. com.google.inject.Guice.createInjector(Guice.java:62)
      8 frames
    4. org.spongepowered.mod
      SpongeMod.<init>
      1. org.spongepowered.mod.SpongeMod.<init>(SpongeMod.java:124)
      1 frame
    5. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      5. java.lang.Class.newInstance(Class.java:442)
      5 frames
    6. MC Forge
      FMLCommonHandler.onServerStart
      1. net.minecraftforge.fml.common.Loader.identifyMods(Loader.java:339)
      2. net.minecraftforge.fml.common.Loader.loadMods(Loader.java:488)
      3. net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:87)
      4. net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:320)
      4 frames
    7. MC Server
      MinecraftServer.run
      1. net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:112)
      2. net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[12:27:20]
      1 frame