java.util.NoSuchElementException

No value present

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web101

  • via GitHub by 5igm
    ,
  • via GitHub by 5igm
    ,
  • Stack trace

    • java.util.NoSuchElementException: No value present at java.util.Optional.get(Unknown Source)[?:1.8.0_101] at com.arckenver.nations.serializer.NationDeserializer.deserialize(NationDeserializer.java:71)[NationDeserializer.class:0.10] at com.arckenver.nations.serializer.NationDeserializer.deserialize(NationDeserializer.java:20)[NationDeserializer.class:0.10] at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)[TreeTypeAdapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803)[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768)[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717)[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689)[Gson.class:?] at com.arckenver.nations.DataHandler.load(DataHandler.java:68)[DataHandler.class:0.10] at com.arckenver.nations.NationsPlugin.onStart(NationsPlugin.java:135)[NationsPlugin.class:0.10] at org.spongepowered.common.event.listener.GameStartedServerEventListener_NationsPlugin_onStart12.handle(Unknown Source)[?:?] at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)[RegisteredListener.class:1.8.9-1890-4.2.0-BETA-1653] at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:201)[SpongeModEventManager.class:1.8.9-1890-4.2.0-BETA-1653] at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:242)[SpongeModEventManager.class:1.8.9-1890-4.2.0-BETA-1653] at org.spongepowered.mod.SpongeMod.onStateEvent(SpongeMod.java:185)[SpongeMod.class:1.8.9-1890-4.2.0-BETA-1653] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source)[?:1.8.0_101] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)[minecraft_server.1.8.9.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)[minecraft_server.1.8.9.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)[minecraft_server.1.8.9.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)[minecraft_server.1.8.9.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275)[minecraft_server.1.8.9.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)[LoadController.class:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_101] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_101] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_101] at java.lang.reflect.Method.invoke(Unknown Source)[?:1.8.0_101] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)[minecraft_server.1.8.9.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)[minecraft_server.1.8.9.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)[minecraft_server.1.8.9.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)[minecraft_server.1.8.9.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275)[minecraft_server.1.8.9.jar:?] at net.minecraftforge.fml.common.LoadController.redirect$onPost$0(LoadController.java:53)[LoadController.class:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)[LoadController.class:?] at net.minecraftforge.fml.common.Loader.serverStarted(Loader.java:800)[Loader.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.handleServerStarted(FMLCommonHandler.java:289)[FMLCommonHandler.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)[MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source)[?:1.8.0_101]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown UserUnknown User
    Once,
    jf-astjf-ast
    Once,
    batwalrus76batwalrus76
    Once,
    stigkjstigkj
    11 times, last one
    12 more bugmates