java.util.NoSuchElementException: No value present

GitHub | dpisarenko | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Possible bug in SpongeData

    GitHub | 11 months ago | dpisarenko
    java.util.NoSuchElementException: No value present
  2. 0

    Follow-up to #1740 - various issues and broken modules

    GitHub | 2 years ago | Cervator
    java.util.NoSuchElementException: No value present
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.NoSuchElementException

    No value present

    at java.util.Optional.get()
  2. Java RT
    Optional.get
    1. java.util.Optional.get(Unknown Source)[?:1.8.0_66]
    1 frame
  3. com.gmail.trentech
    Main.onAboutToStartServer
    1. com.gmail.trentech.pjw.io.SpongeData.<init>(SpongeData.java:27)[SpongeData.class:?]
    2. com.gmail.trentech.pjw.io.SpongeData.init(SpongeData.java:78)[SpongeData.class:?]
    3. com.gmail.trentech.pjw.Main.onAboutToStartServer(Main.java:59)[Main.class:?]
    3 frames
  4. org.spongepowered.common
    RegisteredListener.handle
    1. org.spongepowered.common.event.listener.GameAboutToStartServerEventListener_Main_onAboutToStartServer6.handle(Unknown Source)[?:?]
    2. org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)[RegisteredListener.class:1.8.9-1890-4.1.0-BETA-1366]
    2 frames
  5. org.spongepowered.mod
    SpongeMod.onStateEvent
    1. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:210)[SpongeModEventManager.class:1.8.9-1890-4.1.0-BETA-1366]
    2. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:251)[SpongeModEventManager.class:1.8.9-1890-4.1.0-BETA-1366]
    3. org.spongepowered.mod.SpongeMod.onStateEvent(SpongeMod.java:185)[SpongeMod.class:1.8.9-1890-4.1.0-BETA-1366]
    3 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_66]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_66]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_66]
    4. java.lang.reflect.Method.invoke(Unknown Source)[?:1.8.0_66]
    4 frames
  7. Guava
    EventBus.post
    1. com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)[guava-17.0.jar:?]
    2. com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)[guava-17.0.jar:?]
    3. com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)[guava-17.0.jar:?]
    4. com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)[guava-17.0.jar:?]
    5. com.google.common.eventbus.EventBus.post(EventBus.java:275)[guava-17.0.jar:?]
    5 frames
  8. MC Forge
    LoadController.propogateStateMessage
    1. net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211)[LoadController.class:?]
    2. net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189)[LoadController.class:?]
    2 frames
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_66]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_66]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[?:1.8.0_66]
    4. java.lang.reflect.Method.invoke(Unknown Source)[?:1.8.0_66]
    4 frames
  10. Guava
    EventBus.post
    1. com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)[guava-17.0.jar:?]
    2. com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)[guava-17.0.jar:?]
    3. com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)[guava-17.0.jar:?]
    4. com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)[guava-17.0.jar:?]
    5. com.google.common.eventbus.EventBus.post(EventBus.java:275)[guava-17.0.jar:?]
    5 frames
  11. MC Forge
    FMLCommonHandler.handleServerAboutToStart
    1. net.minecraftforge.fml.common.LoadController.redirect$onPost$0(LoadController.java:53)[LoadController.class:?]
    2. net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118)[LoadController.class:?]
    3. net.minecraftforge.fml.common.Loader.serverAboutToStart(Loader.java:857)[Loader.class:?]
    4. net.minecraftforge.fml.common.FMLCommonHandler.handleServerAboutToStart(FMLCommonHandler.java:279)[FMLCommonHandler.class:?]
    4 frames
  12. MC Server
    MinecraftServer.run
    1. net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:122)[bpo.class:?]
    2. net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)[MinecraftServer.class:?]
    2 frames
  13. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)[?:1.8.0_66]
    1 frame