directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <>
Subject Re: LDIF Export fails with "Comparison method violates its general contract!"
Date Thu, 08 Nov 2018 21:47:48 GMT
On 11/8/18 8:19 PM, Black, Douglas wrote:
> I am trying to do an LDIF export of an eDirectory tree.  Search returns about 105,000
objects.  When I try to export it to LDIF, I get the above error. Error details are:
> -----------------------------------------------------
> Error while exporting LDIF
>  - 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.mergeCollapse(Unknown Source)
> 	at java.util.TimSort.sort(Unknown Source)
> 	at java.util.Arrays.sort(Unknown Source)
> 	at
> 	at
> 	at
> 	at
> Comparison method violates its general contract!
> -----------------------------------------------------
> Has anyone else seen this?  Is it a really cryptic way of saying "I need more RAM"? 
(The workstation is a Windows 10 VM with 8GB). 

It doesn't mean that it needs more RAM. At this place in the code the
attributes of a single entry are sorted, and the comparator seems to not
guarantee a stable sorting, so it's clearly a bug. I'll have do dig
deeper into the code. If possible please create a Jira ticket.

Kind Regards,

View raw message