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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via freecol by ludvik_tesar
, 1 year ago
Replacing FreeColGameObject: class net.sf.freecol.common.model.UnitContainer with class net.sf.freecol.common.model.UnitContainer
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(Game.java:366)
at net.sf.freecol.common.model.FreeColGameObject.setId(FreeColGameObject.java:508)
at net.sf.freecol.common.model.FreeColGameObject.(FreeColGameObject.java:80)
at net.sf.freecol.common.model.UnitContainer.(UnitContainer.java:61)
at net.sf.freecol.common.model.Tile.toXMLImpl(Tile.java:1690)
at net.sf.freecol.common.model.FreeColGameObject.toXML(FreeColGameObject.java:438)
at net.sf.freecol.common.model.FreeColGameObject.toXMLElement(FreeColGameObject.java:309)
at net.sf.freecol.common.model.FreeColGameObject.toXMLElement(FreeColGameObject.java:280)
at net.sf.freecol.server.control.InGameInputHandler.move(InGameInputHandler.java:937)
at net.sf.freecol.server.control.InGameInputHandler.access$400(InGameInputHandler.java:70)
at net.sf.freecol.server.control.InGameInputHandler$5.handle(InGameInputHandler.java:108)
at net.sf.freecol.server.control.InputHandler$CurrentPlayerNetworkRequestHandler.handle(InputHandler.java:191)
at net.sf.freecol.server.control.InputHandler.handle(InputHandler.java:101)
at net.sf.freecol.server.networking.DummyConnection.ask(DummyConnection.java:100)
at net.sf.freecol.server.ai.mission.UnitWanderHostileMission.doMission(UnitWanderHostileMission.java:149)
at net.sf.freecol.server.ai.AIUnit.doMission(AIUnit.java:320)
at net.sf.freecol.server.ai.AIPlayer.doMissions(AIPlayer.java:1271)
at net.sf.freecol.server.ai.AIPlayer.startWorking(AIPlayer.java:211)
at net.sf.freecol.server.ai.AIInGameInputHandler$1.run(AIInGameInputHandler.java:201)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.