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

Solutions on the web

java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135)
at com.gmail.trentech.pjp.commands.CMDPjp.execute(CMDPjp.java:60)
at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:351)
at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:333)
at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:291)
at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:83)
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:913)
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:892)
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37)
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:136)
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zjd000(SourceFile:39)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.util.Util.func_181617_a(SourceFile:45)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:387)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

3 times, 1 day ago
Once, 2 weeks ago
8 times, 2 months ago
4 times, 2 months ago
Once, 4 months ago
16 more bugmates

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