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

Solutions on the web

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.mergeCollapse(TimSort.java:441)
at java.util.TimSort.sort(TimSort.java:245)
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:190)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder.processArtifactInternal(ServerTorrentsDirectorySeeder.java:181)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder$4.processBuildArtifact(ServerTorrentsDirectorySeeder.java:169)
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:166)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder.access$300(ServerTorrentsDirectorySeeder.java:35)
at jetbrains.buildServer.torrent.ServerTorrentsDirectorySeeder$1.buildFinished(ServerTorrentsDirectorySeeder.java:73)
at sun.reflect.GeneratedMethodAccessor394.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:121)
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.$Proxy20.buildFinished(Unknown Source)
at jetbrains.buildServer.serverSide.impl.RunningBuildsManagerImpl.finishBuild(RunningBuildsManagerImpl.java:168)
at jetbrains.buildServer.serverSide.impl.RunningBuildsManagerImpl.access$600(RunningBuildsManagerImpl.java:34)
at jetbrains.buildServer.serverSide.impl.RunningBuildsManagerImpl$5.run(RunningBuildsManagerImpl.java:508)
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, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
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, 8 months ago
13 more bugmates

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