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(Unknown Source)
at com.gmail.trentech.pjw.io.SpongeData.(SpongeData.java:27)
at com.gmail.trentech.pjw.io.SpongeData.init(SpongeData.java:78)
at com.gmail.trentech.pjw.Main.onAboutToStartServer(Main.java:59)
at org.spongepowered.common.event.listener.GameAboutToStartServerEventListener_Main_onAboutToStartServer6.handle(Unknown Source)
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:210)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:251)
at org.spongepowered.mod.SpongeMod.onStateEvent(SpongeMod.java:185)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at net.minecraftforge.fml.common.LoadController.redirect$onPost$0(LoadController.java:53)
at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at net.minecraftforge.fml.common.Loader.serverAboutToStart(Loader.java:857)
at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:122)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 10 months ago
3 times, 2 days ago
Once, 3 weeks ago
8 times, 2 months ago
4 times, 2 months ago
16 more bugmates

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