java.io.IOException: Failed to save

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

java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(Unknown Source)
at java.util.TimSort.mergeAt(Unknown Source)
at java.util.TimSort.mergeForceCollapse(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.stream.SortedOps$SizedRefSortingSink.end(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at net.sf.freecol.common.util.CollectionUtils.sort_internal(CollectionUtils.java:1986)
at net.sf.freecol.common.util.CollectionUtils.sort(CollectionUtils.java:1933)
at net.sf.freecol.server.ai.AIMain.writeChildren(AIMain.java:491)
at net.sf.freecol.common.model.FreeColObject.toXML(FreeColObject.java:1015)
at net.sf.freecol.common.model.FreeColObject.toXML(FreeColObject.java:991)
at net.sf.freecol.server.FreeColServer.saveGame(FreeColServer.java:863)
at net.sf.freecol.server.FreeColServer.saveGame(FreeColServer.java:767)
at net.sf.freecol.client.control.InGameController.saveGame(InGameController.java:589)
at net.sf.freecol.client.control.InGameController.autoSaveGame(InGameController.java:573)
at net.sf.freecol.client.control.InGameController.setCurrentPlayer(InGameController.java:4691)
at net.sf.freecol.client.control.InGameInputHandler.setCurrentPlayer(InGameInputHandler.java:1039)
at net.sf.freecol.client.control.InGameInputHandler.lambda$new$34(InGameInputHandler.java:190)
at net.sf.freecol.client.control.ClientInputHandler.handle(ClientInputHandler.java:129)
at net.sf.freecol.client.control.InGameInputHandler.handle(InGameInputHandler.java:289)
at net.sf.freecol.common.networking.DOMMessage.handleList(DOMMessage.java:401)
at net.sf.freecol.common.networking.MultipleMessage.applyHandler(MultipleMessage.java:107)
at net.sf.freecol.client.control.InGameInputHandler.multiple(InGameInputHandler.java:875)
at net.sf.freecol.client.control.InGameInputHandler.lambda$new$23(InGameInputHandler.java:168)
at net.sf.freecol.client.control.ClientInputHandler.handle(ClientInputHandler.java:129)
at net.sf.freecol.client.control.InGameInputHandler.handle(InGameInputHandler.java:289)
at net.sf.freecol.common.networking.Connection.handle(Connection.java:541)
at net.sf.freecol.common.networking.Connection.handleQuery(Connection.java:512)
at net.sf.freecol.common.networking.ReceivingThread$1.run(ReceivingThread.java:331)

Users with the same issue

Once, 1 year ago
3 times, 1 year ago
6 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago

Write tip

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