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 ChristianGruen
, 1 year ago
Comparison method violates its general contract!
via GitHub by winters1224
, 3 months ago
Comparison method violates its general contract!
via netbeans.org by Unknown author, 2 years ago
via GitHub by rhwood
, 1 year ago
Comparison method violates its general contract!
via Stack Overflow by happy
, 2 years ago
Comparison method violates its general contract!
via Stack Overflow by math_law
, 2 years ago
Comparison method violates its general contract!
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 org.basex.query.func.fn.FnSort.sort(FnSort.java:69)
at org.basex.query.func.fn.FnSort.iter(FnSort.java:34)
at org.basex.query.MainModule.iter(MainModule.java:118)

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.