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.arckenver.nations.serializer.NationDeserializer.deserialize(NationDeserializer.java:71)
at com.arckenver.nations.serializer.NationDeserializer.deserialize(NationDeserializer.java:20)
at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
at com.google.gson.Gson.fromJson(Gson.java:803)
at com.google.gson.Gson.fromJson(Gson.java:768)
at com.google.gson.Gson.fromJson(Gson.java:717)
at com.arckenver.nations.DataHandler.load(DataHandler.java:68)
at com.arckenver.nations.NationsPlugin.onStart(NationsPlugin.java:135)
at org.spongepowered.common.event.listener.GameStartedServerEventListener_NationsPlugin_onStart19.handle(Unknown Source)
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:201)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:242)
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.serverStarted(Loader.java:800)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)
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.