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 Stack Overflow by Ansharja
, 1 year ago
Comparison method violates its general contract!
via GitHub by andrewminer
, 10 months ago
Comparison method violates its general contract!
via GitHub by landonreed
, 1 year ago
Comparison method violates its general contract!
via GitHub by Acinav
, 1 year ago
Comparison method violates its general contract!
java.lang.IllegalArgumentException: Comparison method violates its general contract!	at java.util.TimSort.mergeLo(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 java.util.ArrayList.sort(Unknown Source)	at java.util.Collections.sort(Unknown Source)	at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Unknown Source)	at javax.swing.SortingFocusTraversalPolicy.getFocusTraversalCycle(Unknown Source)	at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(Unknown Source)	at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(Unknown Source)	at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(Unknown Source)	at java.awt.FocusTraversalPolicy.getInitialComponent(Unknown Source)	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)	at java.awt.Component.dispatchEventImpl(Unknown Source)	at java.awt.Container.dispatchEventImpl(Unknown Source)	at java.awt.Window.dispatchEventImpl(Unknown Source)	at java.awt.Component.dispatchEvent(Unknown Source)	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)	at java.awt.EventQueue.access$500(Unknown Source)	at java.awt.EventQueue$3.run(Unknown Source)	at java.awt.EventQueue$3.run(Unknown Source)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)	at java.awt.EventQueue$4.run(Unknown Source)	at java.awt.EventQueue$4.run(Unknown Source)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)	at java.awt.EventQueue.dispatchEvent(Unknown Source)	at java.awt.SequencedEvent.dispatch(Unknown Source)	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)	at java.awt.EventQueue.access$500(Unknown Source)	at java.awt.EventQueue$3.run(Unknown Source)	at java.awt.EventQueue$3.run(Unknown Source)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)	at java.awt.EventQueue$4.run(Unknown Source)	at java.awt.EventQueue$4.run(Unknown Source)	at java.security.AccessController.doPrivileged(Native Method)	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)	at java.awt.EventQueue.dispatchEvent(Unknown Source)	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)	at java.awt.EventDispatchThread.run(Unknown Source)