Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-6949

"Comparison method violates its general contract!" Error is thrown when attempting to load a review

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 3.1.0
    • 2.10.4
    • None
    • None

    Description

      Original issue

      The following error is thrown when we attempt to load a particular review (the entire stack trace is attached as well)...

      Your request was unable to be processed
      javax.servlet.ServletException - javax.el.ELException: java.lang.IllegalArgumentException: Comparison method violates its general contract!

      javax.el.ELException: java.lang.IllegalArgumentException: Comparison method violates its general contract!
      java.lang.IllegalArgumentException: Comparison method violates its general contract!
      Comparison method violates its general contract!

      You are running release CR2.10.4 FE2.10.4 (20130403093648 2013-04-03), please report your release number when reporting bugs.
      Got a problem or a suggestion?

      Visit the support website for your support options.

      We saw this KB article that states it's a bug in the JDK, BUT we think it's actually a bug in Fisheye/Crucible (See this specific comment in JRA-36857).

      Please investigate this and let us know what we can do to resolve this. If you have any questions or need any further information, don't hesitate to ask. Thanks in advance!

      Developer explanation

      The bug was in an asymmetric comparator and was fixed in FeCru 3.1. (1bc8903).

      Fix

      Upgrade to FishEye/Crucible 3.1+.

      Workaround

      Add the following to your JVM parameters:

      -Djava.util.Arrays.useLegacyMergeSort=true
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              2528af6bdebe Guy Anela
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: