java.lang.NoSuchMethodError: org.spongepowered.api.entity.living.player.User.getOption(Ljava/util/Set;Ljava/lang/String;)Ljava/util/Optional;

GitHub | 5igm | 6 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

    Error feedback

    GitHub | 6 months ago | 5igm
    java.lang.NoSuchMethodError: org.spongepowered.api.entity.living.player.User.getOption(Ljava/util/Set;Ljava/lang/String;)Ljava/util/Optional;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.spongepowered.api.entity.living.player.User.getOption(Ljava/util/Set;Ljava/lang/String;)Ljava/util/Optional;

      at io.github.nucleuspowered.nucleus.Util.getOptionFromSubject()
    2. io.github.nucleuspowered
      AFKHandler.lambda$updateUserActivity$0
      1. io.github.nucleuspowered.nucleus.Util.getOptionFromSubject(Util.java:192)[Util.class:0.7.2-5.0]
      2. io.github.nucleuspowered.nucleus.NameUtil.getNameColour(NameUtil.java:137)[NameUtil.class:0.7.2-5.0]
      3. io.github.nucleuspowered.nucleus.NameUtil.getName(NameUtil.java:81)[NameUtil.class:0.7.2-5.0]
      4. io.github.nucleuspowered.nucleus.ChatUtil.getName(ChatUtil.java:375)[ChatUtil.class:0.7.2-5.0]
      5. io.github.nucleuspowered.nucleus.ChatUtil.addCommandToDisplayName(ChatUtil.java:331)[ChatUtil.class:0.7.2-5.0]
      6. io.github.nucleuspowered.nucleus.ChatUtil.getMessageFromTemplate(ChatUtil.java:133)[ChatUtil.class:0.7.2-5.0]
      7. io.github.nucleuspowered.nucleus.ChatUtil.getPlayerMessageFromTemplate(ChatUtil.java:111)[ChatUtil.class:0.7.2-5.0]
      8. io.github.nucleuspowered.nucleus.modules.afk.handlers.AFKHandler.sendAFKMessage(AFKHandler.java:181)[AFKHandler.class:0.7.2-5.0]
      9. io.github.nucleuspowered.nucleus.modules.afk.handlers.AFKHandler.updateUserActivity(AFKHandler.java:170)[AFKHandler.class:0.7.2-5.0]
      10. io.github.nucleuspowered.nucleus.modules.afk.handlers.AFKHandler.lambda$updateUserActivity$0(AFKHandler.java:59)[AFKHandler.class:0.7.2-5.0]
      10 frames
    3. Java RT
      ReferencePipeline.forEach
      1. java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)[?:1.8.0_101]
      2. java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)[?:1.8.0_101]
      3. java.util.HashMap$KeySpliterator.forEachRemaining(Unknown Source)[?:1.8.0_101]
      4. java.util.stream.AbstractPipeline.copyInto(Unknown Source)[?:1.8.0_101]
      5. java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)[?:1.8.0_101]
      6. java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)[?:1.8.0_101]
      7. java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)[?:1.8.0_101]
      8. java.util.stream.AbstractPipeline.evaluate(Unknown Source)[?:1.8.0_101]
      9. java.util.stream.ReferencePipeline.forEach(Unknown Source)[?:1.8.0_101]
      9 frames
    4. io.github.nucleuspowered
      UpdateAFKTask.accept
      1. io.github.nucleuspowered.nucleus.modules.afk.handlers.AFKHandler.updateUserActivity(AFKHandler.java:59)[AFKHandler.class:0.7.2-5.0]
      2. io.github.nucleuspowered.nucleus.modules.afk.runnables.UpdateAFKTask.accept(UpdateAFKTask.java:30)[UpdateAFKTask.class:0.7.2-5.0]
      3. io.github.nucleuspowered.nucleus.modules.afk.runnables.UpdateAFKTask.accept(UpdateAFKTask.java:14)[UpdateAFKTask.class:0.7.2-5.0]
      3 frames
    5. org.spongepowered.common
      SchedulerBase.lambda$startTask$0
      1. org.spongepowered.common.scheduler.SchedulerBase.lambda$startTask$0(SchedulerBase.java:177)[SchedulerBase.class:1.9.4-1968-5.0.0-BETA-1503]
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[?:1.8.0_101]
      2. java.util.concurrent.FutureTask.run(Unknown Source)[?:1.8.0_101]
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[?:1.8.0_101]
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[?:1.8.0_101]
      5. java.lang.Thread.run(Unknown Source)[?:1.8.0_101]
      5 frames