java.util.NoSuchElementException: No value present

GitHub | Geotan00 | 2 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 1206#279907201

    GitHub | 2 months ago | Geotan00
    java.util.NoSuchElementException: No value present
  2. 0

    GitHub comment 281#263036359

    GitHub | 5 months ago | doncullen
    java.lang.NoSuchMethodError: org.spongepowered.api.entity.living.player.Player.getItemInHand()Ljava/util/Optional;
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.NoSuchElementException

    No value present

    at java.util.Optional.get()
  2. Java RT
    Optional.get
    1. java.util.Optional.get(Optional.java:135)[?:1.8.0_111]
    1 frame
  3. io.github.geotan00
    PlayerInteractListener.onPlayerInteract
    1. io.github.geotan00.bowta.PlayerInteractListener.onPlayerInteract(PlayerInteractListener.java:38)[PlayerInteractListener.class:?]
    1 frame
  4. org.spongepowered.common
    PacketUtil.onProcessPacket
    1. org.spongepowered.common.event.listener.SecondaryListener_PlayerInteractListener_onPlayerInteract96.handle(Unknown Source)[?:?]
    2. org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)[RegisteredListener.class:1.11.2-6.0.0-BETA-198]
    3. org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:305)[SpongeEventManager.class:1.11.2-6.0.0-BETA-198]
    4. org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:320)[SpongeEventManager.class:1.11.2-6.0.0-BETA-198]
    5. org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:144)[SpongeImpl.class:1.11.2-6.0.0-BETA-198]
    6. org.spongepowered.common.event.SpongeCommonEventFactory.callInteractItemEventSecondary(SpongeCommonEventFactory.java:423)[SpongeCommonEventFactory.class:1.11.2-6.0.0-BETA-198]
    7. org.spongepowered.common.network.PacketUtil.firePreEvents(PacketUtil.java:250)[PacketUtil.class:1.11.2-6.0.0-BETA-198]
    8. org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:89)[PacketUtil.class:1.11.2-6.0.0-BETA-198]
    8 frames
  5. Minecraft
    PacketThreadUtil$1.run
    1. net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjd000(SourceFile:539)[fo$1.class:?]
    2. net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13)[fo$1.class:?]
    2 frames
  6. Java RT
    FutureTask.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[?:1.8.0_111]
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_111]
    2 frames
  7. net.minecraft.util
    Util.func_181617_a
    1. net.minecraft.util.Util.func_181617_a(SourceFile:46)[h.class:?]
    1 frame
  8. MC Server
    MinecraftServer.run
    1. net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:1526)[MinecraftServer.class:?]
    2. net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFile:335)[lh.class:?]
    3. net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:562)[MinecraftServer.class:?]
    4. net.minecraft.server.MinecraftServer.run(SourceFile:466)[MinecraftServer.class:?]
    4 frames
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[?:1.8.0_111]
    1 frame