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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via jabref by ingebert
, 1 year ago
Comparison method violates its general contract!
via Stack Overflow by Unknown author, 2 years ago
Comparison method violates its general contract!
via 2baxb.me by Unknown author, 1 year ago
via tuicool.com by Unknown author, 11 months ago
via Stack Overflow by Sarajog
, 2 years ago
Comparison method violates its general contract!
via Stack Overflow by Chann
, 1 year ago
Comparison method violates its general contract!
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(TimSort.java:868)
at java.util.TimSort.mergeAt(TimSort.java:485)
at java.util.TimSort.mergeCollapse(TimSort.java:408)
at java.util.TimSort.sort(TimSort.java:214)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:659)
at java.util.Collections.sort(Collections.java:217)
at org.apache.pdfbox.util.PDFTextStripper.writePage(PDFTextStripper.java:565)
at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:457)
at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:381)
at net.sf.jabref.imports.PdfContentImporter.importEntries(PdfContentImporter.java:238)
at net.sf.jabref.imports.EntryFromPDFCreator.createBibtexEntry(EntryFromPDFCreator.java:74)
at net.sf.jabref.imports.EntryFromFileCreator.createEntry(EntryFromFileCreator.java:84)
at net.sf.jabref.imports.EntryFromFileCreatorManager.addEntrysFromFiles(EntryFromFileCreatorManager.java:125)
at net.sf.jabref.FindUnlinkedFilesDialog$8.run(FindUnlinkedFilesDialog.java:545)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 years ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.