java.lang.IllegalStateException: Not all units present in:Posen. Trying to remove:[infantry owned by Germany, infantry owned by Germany, infantry owned by Germany, field_gun owned by Germany, infantry owned by Germany, field_gun owned by Germany] present:[]

GitHub | Grill-Meister | 8 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

    java.lang.IllegalStateException when attempting to show game history

    GitHub | 8 months ago | Grill-Meister
    java.lang.IllegalStateException: Not all units present in:Posen. Trying to remove:[infantry owned by Germany, infantry owned by Germany, infantry owned by Germany, field_gun owned by Germany, infantry owned by Germany, field_gun owned by Germany] present:[]

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Not all units present in:Posen. Trying to remove:[infantry owned by Germany, infantry owned by Germany, infantry owned by Germany, field_gun owned by Germany, infantry owned by Germany, field_gun owned by Germany] present:[]

      at games.strategy.engine.data.changefactory.RemoveUnits.perform()
    2. games.strategy.engine
      History.gotoNode
      1. games.strategy.engine.data.changefactory.RemoveUnits.perform(RemoveUnits.java:38)
      2. games.strategy.engine.data.CompositeChange.perform(CompositeChange.java:49)
      3. games.strategy.engine.data.CompositeChange.perform(CompositeChange.java:49)
      4. games.strategy.engine.data.GameData.performChange(GameData.java:493)
      5. games.strategy.engine.history.History.gotoNode(History.java:123)
      5 frames
    3. games.strategy.triplea
      HistoryPanel.lambda$new$44
      1. games.strategy.triplea.ui.history.HistoryPanel.gotoNode(HistoryPanel.java:262)
      2. games.strategy.triplea.ui.history.HistoryPanel.treeSelectionChanged(HistoryPanel.java:252)
      3. games.strategy.triplea.ui.history.HistoryPanel.lambda$new$44(HistoryPanel.java:173)
      3 frames
    4. Java RT
      EventQueue.dispatchEvent
      1. javax.swing.JTree.fireValueChanged(Unknown Source)
      2. javax.swing.JTree$TreeSelectionRedirector.valueChanged(Unknown Source)
      3. javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
      4. javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
      5. javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)
      6. javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source)
      7. javax.swing.JTree.setSelectionPath(Unknown Source)
      8. javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source)
      9. javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source)
      10. javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source)
      11. java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
      12. java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
      13. java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
      14. java.awt.Component.processMouseEvent(Unknown Source)
      15. javax.swing.JComponent.processMouseEvent(Unknown Source)
      16. java.awt.Component.processEvent(Unknown Source)
      17. java.awt.Container.processEvent(Unknown Source)
      18. java.awt.Component.dispatchEventImpl(Unknown Source)
      19. java.awt.Container.dispatchEventImpl(Unknown Source)
      20. java.awt.Component.dispatchEvent(Unknown Source)
      21. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      22. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      23. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      24. java.awt.Container.dispatchEventImpl(Unknown Source)
      25. java.awt.Window.dispatchEventImpl(Unknown Source)
      26. java.awt.Component.dispatchEvent(Unknown Source)
      27. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      28. java.awt.EventQueue.access$500(Unknown Source)
      29. java.awt.EventQueue$3.run(Unknown Source)
      30. java.awt.EventQueue$3.run(Unknown Source)
      31. java.security.AccessController.doPrivileged(Native Method)
      32. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      33. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      34. java.awt.EventQueue$4.run(Unknown Source)
      35. java.awt.EventQueue$4.run(Unknown Source)
      36. java.security.AccessController.doPrivileged(Native Method)
      37. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      38. java.awt.EventQueue.dispatchEvent(Unknown Source)
      38 frames
    5. games.strategy.engine
      GameRunner$1.dispatchEvent
      1. games.strategy.engine.framework.GameRunner$1.dispatchEvent(GameRunner.java:156)
      1 frame
    6. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      4. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      5. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      6. java.awt.EventDispatchThread.run(Unknown Source)
      6 frames