java.lang.IllegalArgumentException: Replacing FreeColGameObject: class net.sf.freecol.common.model.UnitContainer with class net.sf.freecol.common.model.UnitContainer

freecol | ludvik_tesar | 9 years 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

    Cherokee AI gets stuck in infinite loop

    freecol | 9 years ago | ludvik_tesar
    java.lang.IllegalArgumentException: Replacing FreeColGameObject: class net.sf.freecol.common.model.UnitContainer with class net.sf.freecol.common.model.UnitContainer

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Replacing FreeColGameObject: class net.sf.freecol.common.model.UnitContainer with class net.sf.freecol.common.model.UnitContainer

      at net.sf.freecol.common.model.Game.setFreeColGameObject()
    2. net.sf.freecol
      AIInGameInputHandler$1.run
      1. net.sf.freecol.common.model.Game.setFreeColGameObject(Game.java:366)
      2. net.sf.freecol.common.model.FreeColGameObject.setId(FreeColGameObject.java:508)
      3. net.sf.freecol.common.model.FreeColGameObject.<init>(FreeColGameObject.java:80)
      4. net.sf.freecol.common.model.UnitContainer.<init>(UnitContainer.java:61)
      5. net.sf.freecol.common.model.Tile.toXMLImpl(Tile.java:1690)
      6. net.sf.freecol.common.model.FreeColGameObject.toXML(FreeColGameObject.java:438)
      7. net.sf.freecol.common.model.FreeColGameObject.toXMLElement(FreeColGameObject.java:309)
      8. net.sf.freecol.common.model.FreeColGameObject.toXMLElement(FreeColGameObject.java:280)
      9. net.sf.freecol.server.control.InGameInputHandler.move(InGameInputHandler.java:937)
      10. net.sf.freecol.server.control.InGameInputHandler.access$400(InGameInputHandler.java:70)
      11. net.sf.freecol.server.control.InGameInputHandler$5.handle(InGameInputHandler.java:108)
      12. net.sf.freecol.server.control.InputHandler$CurrentPlayerNetworkRequestHandler.handle(InputHandler.java:191)
      13. net.sf.freecol.server.control.InputHandler.handle(InputHandler.java:101)
      14. net.sf.freecol.server.networking.DummyConnection.ask(DummyConnection.java:100)
      15. net.sf.freecol.server.ai.mission.UnitWanderHostileMission.doMission(UnitWanderHostileMission.java:149)
      16. net.sf.freecol.server.ai.AIUnit.doMission(AIUnit.java:320)
      17. net.sf.freecol.server.ai.AIPlayer.doMissions(AIPlayer.java:1271)
      18. net.sf.freecol.server.ai.AIPlayer.startWorking(AIPlayer.java:211)
      19. net.sf.freecol.server.ai.AIInGameInputHandler$1.run(AIInGameInputHandler.java:201)
      19 frames