java.lang.IllegalArgumentException: Comparison method violates its general contract!

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 GitHub by MicheleMUC
, 1 year ago
Comparison method violates its general contract!
via GitHub by ktole1999
, 1 year ago
Comparison method violates its general contract!
via GitHub by pures
, 1 year ago
Comparison method violates its general contract!
via GitHub by be-neth
, 6 months ago
Comparison method violates its general contract!
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.ComparableTimSort.mergeLo(Unknown Source)
at java.util.ComparableTimSort.mergeAt(Unknown Source)
at java.util.ComparableTimSort.mergeForceCollapse(Unknown Source)
at java.util.ComparableTimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at net.bhl.cdt.paxelerate.model.astar.node.SortedNodeList.add(SortedNodeList.java:48)
at net.bhl.cdt.paxelerate.model.astar.Core.calculateShortestPath(Core.java:187)
at net.bhl.cdt.paxelerate.model.astar.Core.(Core.java:62)
at net.bhl.cdt.paxelerate.model.agent.PathFinder.findNewPath(PathFinder.java:92)
at net.bhl.cdt.paxelerate.model.agent.PathFinder.run(PathFinder.java:49)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
13 more bugmates

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