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

via GitHub by gavinking
, 1 year ago
Comparison method violates its general contract!
via GitHub by gavinking
, 1 year ago
Comparison method violates its general contract!
via GitHub by nilsschmidt1337
, 1 year ago
Comparison method violates its general contract!
via GitHub by jerrinot
, 2 years ago
via GitHub by alxbrd
, 2 months ago
Comparison method violates its general contract!
java.lang.IllegalArgumentException: Comparison method violates its general contract!	at java.util.TimSort.mergeHi(TimSort.java:899)	at java.util.TimSort.mergeAt(TimSort.java:516)	at java.util.TimSort.mergeCollapse(TimSort.java:439)	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 com.redhat.ceylon.ide.common.completion.getSortedProposedValues_.getSortedProposedValues(completionUtils.ceylon:373)	at com.redhat.ceylon.ide.common.completion.InvocationCompletionProposal.addValueArgumentProposals$priv$(InvocationCompletion.ceylon:775)	at com.redhat.ceylon.ide.common.completion.InvocationCompletionProposal.enterLinkedMode(InvocationCompletion.ceylon:719)	at com.redhat.ceylon.ide.common.completion.InvocationCompletionProposal.activeLinkedMode$canonical$(InvocationCompletion.ceylon:598)	at com.redhat.ceylon.ide.common.completion.InvocationCompletionProposal.activeLinkedMode(InvocationCompletion.ceylon:582)	at org.intellij.plugins.ceylon.ide.ceylonCode.completion.IdeaInvocationCompletionProposal$1anonymous_0_$1.$call$(IdeaInvocationCompletionProposal.ceylon:112)	at org.intellij.plugins.ceylon.ide.ceylonCode.completion.CompletionHandler.handle$priv$(IdeaCompletionProposal.ceylon:104)	at org.intellij.plugins.ceylon.ide.ceylonCode.completion.CompletionHandler.handleInsert(IdeaCompletionProposal.ceylon:107)	at com.intellij.codeInsight.lookup.LookupElementBuilder.handleInsert(LookupElementBuilder.java:389)	at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$insertItem$6(CodeCompletionHandlerBase.java:669)	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:906)	at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.insertItem(CodeCompletionHandlerBase.java:659)	at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.access$200(CodeCompletionHandlerBase.java:69)	at com.intellij.codeInsight.completion.CodeCompletionHandlerBase$2.perform(CodeCompletionHandlerBase.java:595)	at com.intellij.openapi.editor.impl.CaretModelImpl.lambda$runForEachCaret$2(CaretModelImpl.java:348)	at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:437)	at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:340)	at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:331)	at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.insertItemHonorBlockSelection(CodeCompletionHandlerBase.java:583)	at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lookupItemSelected(CodeCompletionHandlerBase.java:552)	at com.intellij.codeInsight.completion.CompletionProgressIndicator.itemSelected(CompletionProgressIndicator.java:174)	at com.intellij.codeInsight.completion.CompletionLookupArranger.itemSelected(CompletionLookupArranger.java:173)	at com.intellij.codeInsight.lookup.impl.LookupImpl.fireItemSelected(LookupImpl.java:821)	at com.intellij.codeInsight.lookup.impl.LookupImpl.finishLookup(LookupImpl.java:510)	at com.intellij.codeInsight.lookup.impl.LookupImpl.finishLookup(LookupImpl.java:455)	at com.intellij.codeInsight.lookup.impl.actions.ChooseItemAction$Handler.execute(ChooseItemAction.java:81)	at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doExecute(EditorActionHandler.java:172)	at com.intellij.openapi.editor.actionSystem.EditorActionHandler$4.perform(EditorActionHandler.java:217)	at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:109)	at com.intellij.openapi.editor.actionSystem.EditorActionHandler.execute(EditorActionHandler.java:214)	at com.intellij.openapi.editor.actionSystem.EditorAction.lambda$actionPerformed$0(EditorAction.java:100)	at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:129)	at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:109)	at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:88)	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:197)	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:213)	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:587)	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$2(IdeKeyEventDispatcher.java:634)	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:199)	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:633)	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:477)	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:211)	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:677)	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)