java.lang.NoSuchMethodError: org.spongepowered.api.GameRegistry.register(Ljava/lang/Class;Lorg/spongepowered/api/CatalogType;)Lorg/spongepowered/api/CatalogType;

GitHub | linyuzhe210 | 7 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

    my sponge server just cant use this plugin and make issue :(

    GitHub | 7 months ago | linyuzhe210
    java.lang.NoSuchMethodError: org.spongepowered.api.GameRegistry.register(Ljava/lang/Class;Lorg/spongepowered/api/CatalogType;)Lorg/spongepowered/api/CatalogType;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.spongepowered.api.GameRegistry.register(Ljava/lang/Class;Lorg/spongepowered/api/CatalogType;)Lorg/spongepowered/api/CatalogType;

      at com.plotsquared.sponge.SpongeMain.onServerAboutToStart()
    2. com.plotsquared.sponge
      SpongeMain.onServerAboutToStart
      1. com.plotsquared.sponge.SpongeMain.onServerAboutToStart(SpongeMain.java:139)[SpongeMain.class:?]
      1 frame
    3. org.spongepowered.common
      RegisteredListener.handle
      1. org.spongepowered.common.event.listener.GameAboutToStartServerEventListener_SpongeMain_onServerAboutToStart47.handle(Unknown Source)[?:?]
      2. org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)[RegisteredListener.class:1.8.9-1890-4.2.0-BETA-1620]
      2 frames
    4. org.spongepowered.mod
      SpongeMod.onStateEvent
      1. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:201)[SpongeModEventManager.class:1.8.9-1890-4.2.0-BETA-1620]
      2. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:242)[SpongeModEventManager.class:1.8.9-1890-4.2.0-BETA-1620]
      3. org.spongepowered.mod.SpongeMod.onStateEvent(SpongeMod.java:185)[SpongeMod.class:1.8.9-1890-4.2.0-BETA-1620]
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_101]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_101]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_101]
      4. java.lang.reflect.Method.invoke(Unknown Source)[?:1.8.0_101]
      4 frames
    6. Guava
      EventBus.post
      1. com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)[minecraft_server.1.8.9.jar:?]
      2. com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)[minecraft_server.1.8.9.jar:?]
      3. com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)[minecraft_server.1.8.9.jar:?]
      4. com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)[minecraft_server.1.8.9.jar:?]
      5. com.google.common.eventbus.EventBus.post(EventBus.java:275)[minecraft_server.1.8.9.jar:?]
      5 frames
    7. MC Forge
      LoadController.propogateStateMessage
      1. net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)[LoadController.class:?]
      2. net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)[LoadController.class:?]
      2 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_101]
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_101]
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_101]
      4. java.lang.reflect.Method.invoke(Unknown Source)[?:1.8.0_101]
      4 frames
    9. Guava
      EventBus.post
      1. com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)[minecraft_server.1.8.9.jar:?]
      2. com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)[minecraft_server.1.8.9.jar:?]
      3. com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)[minecraft_server.1.8.9.jar:?]
      4. com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)[minecraft_server.1.8.9.jar:?]
      5. com.google.common.eventbus.EventBus.post(EventBus.java:275)[minecraft_server.1.8.9.jar:?]
      5 frames
    10. MC Forge
      FMLCommonHandler.handleServerAboutToStart
      1. net.minecraftforge.fml.common.LoadController.redirect$onPost$0(LoadController.java:53)[LoadController.class:?]
      2. net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)[LoadController.class:?]
      3. net.minecraftforge.fml.common.Loader.serverAboutToStart(Loader.java:857)[Loader.class:?]
      4. net.minecraftforge.fml.common.FMLCommonHandler.handleServerAboutToStart(FMLCommonHandler.java:279)[FMLCommonHandler.class:?]
      4 frames
    11. MC Server
      MinecraftServer.run
      1. net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:252)[ko.class:?]
      2. net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)[MinecraftServer.class:?]
      2 frames
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame