ERROR Comparison Method Violates Its General Contract

View some of the Frequently Asked Questions to our support staff. Included are some tips and tricks making this forum ideal for users getting started with GoAnywhere MFT. Note: Users can reply to existing topics but only our support staff can add new topics to this forum.
1 post Page 1 of 1

Support_Philip

User avatar
Site Admin
Posts: 43
Joined: Wed Jun 21, 2017 8:12 am

Post by Support_Philip » Fri Feb 22, 2019 2:59 pm
Question:

I am receiving the error message "comparison method violates its general contract". What can i do to resolve this?

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

at java.util.TimSort.mergeHi(TimSort.java:884)

at java.util.TimSort.mergeAt(TimSort.java:501)

at java.util.TimSort.mergeCollapse(TimSort.java:426)

at java.util.TimSort.sort(TimSort.java:230)

at java.util.TimSort.sort(TimSort.java:189)

at java.util.Arrays.sort(Arrays.java:867)

Answer:

This issue occurs when the JRE sorting algorithm used by .util.Arrays.sort and (indirectly) by .util.Collections.sort has been replaced. You can resolve this by re-adding the task, it will re-compile with the current java and will resolve the issue.
Philip Horn
Senior Support Analyst
e. [email protected]
p. 1-800-949-4696
w. GoAnywhere.com | HelpSystems.com
1 post Page 1 of 1