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 Eclipse Bugzilla by joerg.schoenfisch, 11 months ago
via dbvis.com by Unknown author, 2 years ago
Comparison method violates its general contract!
via GitHub by laurentpetit
, 2 years ago
Comparison method violates its general contract!
via netbeans.org by Unknown author, 1 year ago
via Stack Overflow by BasicCoder
, 4 months ago
Comparison method violates its general contract!
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeLo(TimSort.java:777)
at java.util.TimSort.mergeAt(TimSort.java:514)
at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
at java.util.TimSort.sort(TimSort.java:254)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at java.util.Collections.sort(Collections.java:175)
at jetbrains.buildServer.torrent.seeder.TorrentFilesDB.getSortedKeys(TorrentFilesDB.java:166)
at jetbrains.buildServer.torrent.seeder.TorrentFilesDB.flush(TorrentFilesDB.java:139)
at jetbrains.buildServer.torrent.seeder.TorrentsSeeder.flushTorrentsDB(TorrentsSeeder.java:127)
at jetbrains.buildServer.torrent.seeder.TorrentsSeeder.registerSrcAndTorrentFile(TorrentsSeeder.java:87)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder.processArtifactInternal(ServerTorrentsDirectorySeeder.java:189)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder.processArtifactInternal(ServerTorrentsDirectorySeeder.java:180)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder$4.processBuildArtifact(ServerTorrentsDirectorySeeder.java:168)
at jetbrains.buildServer.serverSide.impl.artifacts.BuildArtifactsImpl.iterate(BuildArtifactsImpl.java:61)
at jetbrains.buildServer.serverSide.impl.artifacts.BuildArtifactsImpl.iterateArtifacts(BuildArtifactsImpl.java:52)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder.announceBuildArtifacts(ServerTorrentsDirectorySeeder.java:165)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder.access$300(ServerTorrentsDirectorySeeder.java:34)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder$1.buildFinished(ServerTorrentsDirectorySeeder.java:72)
at sun.reflect.GeneratedMethodAccessor318.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:120)
at jetbrains.buildServer.serverSide.ServerSideEventDispatcher.superDispatch(ServerSideEventDispatcher.java:59)
at jetbrains.buildServer.serverSide.ServerSideEventDispatcher$1.run(ServerSideEventDispatcher.java:49)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAs(SecurityContextImpl.java:118)
at jetbrains.buildServer.serverSide.impl.auth.SecurityContextImpl.runAsSystem(SecurityContextImpl.java:102)
at jetbrains.buildServer.serverSide.ServerSideEventDispatcher.dispatch(ServerSideEventDispatcher.java:47)
at com.sun.proxy.$Proxy25.buildFinished(Unknown Source)
at jetbrains.buildServer.serverSide.impl.RunningBuildsManagerImpl.finishBuild(RunningBuildsManagerImpl.java:253)
at jetbrains.buildServer.serverSide.impl.RunningBuildsManagerImpl$2$1.run(RunningBuildsManagerImpl.java:204)
at jetbrains.buildServer.serverSide.impl.RunningBuildsManagerImpl$2.run(RunningBuildsManagerImpl.java:202)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

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

Write tip

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