Skip to content
Advertisement

Tag: timsort

Java Rest Template throws java.lang.IllegalArgumentException: Comparison method violates its general contract

I am not using any Comparators/Sorting in my Java code, still it is throwing ” java.lang.IllegalArgumentException: Comparison method violates its general contract!” Exception. Below is the piece of code that throws exception on the restTemplate.exchange line on debugging. Started getting this exception when I changed the version of spring-boot-starter-parent from 2.3.9 to 2.5.3 How should I resolve this? Stack Trace:

Advertisement