directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Black, Douglas" <Doug.Bl...@osumc.edu>
Subject Re: LDIF Export fails with "Comparison method violates its general contract!"
Date Fri, 09 Nov 2018 00:03:09 GMT
I have filed the bug report.  Please let me know if you need any information about my environment.


Thanks
Doug

________________________________________
From: Stefan Seelmann <mail@stefan-seelmann.de>
Sent: Thursday, November 8, 2018 4:47 PM
To: users@directory.apache.org
Subject: Re: LDIF Export fails with "Comparison method violates its general contract!"

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 org.apache.directory.studio.ldapbrowser.core.jobs.ExportLdifRunnable.export(https://urldefense.proofpoint.com/v2/url?u=http-3A__ExportLdifRunnable.java&d=DwIDaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=9lyckcM6ZhJLsBO8S-PrSIMUchQ_vFPG0h87-ifHH1k&m=JgmgAeyDkIx7WxLqzVCpQOm6lbwj08yM8r5umx2lbyw&s=rYuqOHlWSBH6Wm9O3M5GsiMVJf3KWomwxHEGTr0aohc&e=:205)
>       at org.apache.directory.studio.ldapbrowser.core.jobs.ExportLdifRunnable.run(https://urldefense.proofpoint.com/v2/url?u=http-3A__ExportLdifRunnable.java&d=DwIDaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=9lyckcM6ZhJLsBO8S-PrSIMUchQ_vFPG0h87-ifHH1k&m=JgmgAeyDkIx7WxLqzVCpQOm6lbwj08yM8r5umx2lbyw&s=rYuqOHlWSBH6Wm9O3M5GsiMVJf3KWomwxHEGTr0aohc&e=:156)
>       at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(https://urldefense.proofpoint.com/v2/url?u=http-3A__StudioConnectionJob.java&d=DwIDaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=9lyckcM6ZhJLsBO8S-PrSIMUchQ_vFPG0h87-ifHH1k&m=JgmgAeyDkIx7WxLqzVCpQOm6lbwj08yM8r5umx2lbyw&s=nDAeT-69RWJRooKBVD54L1v9VphxNj91vZJjfFyhiO0&e=:119)
>       at org.eclipse.core.internal.jobs.Worker.run(https://urldefense.proofpoint.com/v2/url?u=http-3A__Worker.java&d=DwIDaQ&c=k9MF1d71ITtkuJx-PdWme51dKbmfPEvxwt8SFEkBfs4&r=9lyckcM6ZhJLsBO8S-PrSIMUchQ_vFPG0h87-ifHH1k&m=JgmgAeyDkIx7WxLqzVCpQOm6lbwj08yM8r5umx2lbyw&s=tcHoNZQdhA3l9xk6yQcxRMXUqWZopZipfIpiFW9a43c&e=:60)
>
> 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,
Stefan

Mime
View raw message