java.util.concurrent.CompletionException: java.lang.IllegalStateException: username has not been set

GitHub | micheljung | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Replays don't start

    GitHub | 6 months ago | micheljung
    java.util.concurrent.CompletionException: java.lang.IllegalStateException: username has not been set

    Root Cause Analysis

    1. java.lang.IllegalStateException

      username has not been set

      at com.faforever.client.fa.LaunchCommandBuilder.build()
    2. com.faforever.client
      GameServiceImpl.lambda$runWithReplay$10
      1. com.faforever.client.fa.LaunchCommandBuilder.build(LaunchCommandBuilder.java:141)
      2. com.faforever.client.fa.ForgedAllianceServiceImpl.startReplay(ForgedAllianceServiceImpl.java:76)
      3. com.faforever.client.game.GameServiceImpl.lambda$runWithReplay$10(GameServiceImpl.java:229)
      3 frames
    3. Java RT
      CompletableFuture.complete
      1. java.util.concurrent.CompletableFuture.uniRun(Unknown Source)
      2. java.util.concurrent.CompletableFuture$UniRun.tryFire(Unknown Source)
      3. java.util.concurrent.CompletableFuture.postComplete(Unknown Source)
      4. java.util.concurrent.CompletableFuture.complete(Unknown Source)
      4 frames
    4. com.faforever.client
      CompletableTask.lambda$new$2
      1. com.faforever.client.task.CompletableTask.lambda$new$2(CompletableTask.java:18)
      1 frame
    5. com.sun.javafx
      EventUtil.fireEvent
      1. com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      2. com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      3. com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      4. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      5. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      6. com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      7. com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      7 frames
    6. javafx.event
      Event.fireEvent
      1. javafx.event.Event.fireEvent(Event.java:198)
      1 frame
    7. javafx.concurrent
      Task$TaskCallable.lambda$call$500
      1. javafx.concurrent.EventHelper.fireEvent(EventHelper.java:219)
      2. javafx.concurrent.Task.fireEvent(Task.java:1356)
      3. javafx.concurrent.Task.setState(Task.java:723)
      4. javafx.concurrent.Task$TaskCallable.lambda$call$500(Task.java:1434)
      4 frames
    8. com.sun.javafx
      PlatformImpl.lambda$null$173
      1. com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
      1 frame
    9. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    10. com.sun.javafx
      PlatformImpl.lambda$runLater$174
      1. com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
      1 frame
    11. com.sun.glass
      WinApplication.lambda$null$148
      1. com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
      2. com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      3. com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
      3 frames
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame