java.lang.IllegalStateException: No method called:setAttemptsLeftThisTurn on:PoliticalActionAttachment attached to:PlayerID named:Germans with name:politicalActionAttachment_Axis_To_War_With_Russians

GitHub | DanVanAtta | 6 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

    `setAttemptsLeftThisTurn(..)` needs to be added back in, it is called..

    GitHub | 6 months ago | DanVanAtta
    java.lang.IllegalStateException: No method called:setAttemptsLeftThisTurn on:PoliticalActionAttachment attached to:PlayerID named:Germans with name:politicalActionAttachment_Axis_To_War_With_Russians

    Root Cause Analysis

    1. java.lang.IllegalStateException

      No method called:setAttemptsLeftThisTurn on:PoliticalActionAttachment attached to:PlayerID named:Germans with name:politicalActionAttachment_Axis_To_War_With_Russians

      at games.strategy.util.PropertyUtil.getSetter()
    2. games.strategy.util
      PropertyUtil.set
      1. games.strategy.util.PropertyUtil.getSetter(PropertyUtil.java:117)
      2. games.strategy.util.PropertyUtil.set(PropertyUtil.java:12)
      3. games.strategy.util.PropertyUtil.set(PropertyUtil.java:32)
      3 frames
    3. games.strategy.engine
      GameData.performChange
      1. games.strategy.engine.data.ChangeAttachmentChange.perform(ChangeAttachmentChange.java:75)
      2. games.strategy.engine.data.GameData.performChange(GameData.java:493)
      2 frames
    4. games.strategy.triplea
      AbstractAI.start
      1. games.strategy.triplea.ai.proAI.simulate.ProDummyDelegateBridge.addChange(ProDummyDelegateBridge.java:105)
      2. games.strategy.triplea.attachments.AbstractUserActionAttachment.useAttempt(AbstractUserActionAttachment.java:144)
      3. games.strategy.triplea.delegate.PoliticsDelegate.attemptAction(PoliticsDelegate.java:144)
      4. games.strategy.triplea.ai.proAI.ProPoliticsAI.doActions(ProPoliticsAI.java:176)
      5. games.strategy.triplea.ai.proAI.ProPoliticsAI.politicalActions(ProPoliticsAI.java:167)
      6. games.strategy.triplea.ai.proAI.ProAI.purchase(ProAI.java:248)
      7. games.strategy.triplea.ai.AbstractAI.start(AbstractAI.java:425)
      7 frames
    5. games.strategy.engine
      AbstractLauncher.lambda$launch$98
      1. games.strategy.engine.framework.ServerGame.waitForPlayerToFinishStep(ServerGame.java:531)
      2. games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:424)
      3. games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:272)
      4. games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(LocalLauncher.java:61)
      5. games.strategy.engine.framework.startup.launcher.AbstractLauncher.lambda$launch$98(AbstractLauncher.java:43)
      5 frames
    6. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame