java.util.NoSuchElementException: No value present

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Unknown Source)
at io.github.azatik.grave.events.EventDropItem.onDropItem(EventDropItem.java:24)
at org.spongepowered.common.event.listener.DestructListener_EventDropItem_onDropItem6.handle(Unknown Source)
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:303)
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:316)
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:138)
at org.spongepowered.common.event.tracking.phase.EntityPhase$State$1.lambda$unwind$264(EntityPhase.java:182)
at org.spongepowered.common.event.tracking.CapturedMultiMapSupplier.ifPresentAndNotEmpty(CapturedMultiMapSupplier.java:60)
at org.spongepowered.common.event.tracking.phase.EntityPhase$State$1.unwind(EntityPhase.java:164)
at org.spongepowered.common.event.tracking.phase.EntityPhase.unwind(EntityPhase.java:462)
at org.spongepowered.common.event.tracking.CauseTracker.completePhase(CauseTracker.java:165)
at net.minecraft.entity.EntityLivingBase.func_70097_a(SourceFile:457)
at net.minecraft.entity.player.EntityPlayer.func_70097_a(SourceFile:887)
at net.minecraft.entity.player.EntityPlayerMP.func_70097_a(SourceFile:456)
at net.minecraft.command.CommandKill.func_184881_a(SourceFile:35)
at net.minecraft.command.CommandHandler.func_175786_a(SourceFile:82)
at org.spongepowered.common.command.MinecraftCommandWrapper.tryExecute(MinecraftCommandWrapper.java:150)
at org.spongepowered.common.command.MinecraftCommandWrapper.process(MinecraftCommandWrapper.java:136)
at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:333)
at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:274)
at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:82)
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(SourceFile:825)
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(SourceFile:812)
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37)
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:118)
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(SourceFile:39)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at net.minecraft.util.Util.func_181617_a(SourceFile:45)
at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:134)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFile:338)
at net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:554)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Once, 1 day ago
Once, 3 weeks ago
8 times, 2 months ago
4 times, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.