Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6614

"Comparison method violates its general contract" in DestinationRegistryImpl.getSortedDestinations

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 2.7.18, 3.0.7, 3.1.4
    • Component/s: Transports
    • Labels:
      None
    • Environment:
    • Estimated Complexity:
      Unknown

      Description

      The error occurs when trying to view the generated overview page with all Services (going to servlet root without any subpath).

      java.lang.IllegalArgumentException: Comparison method violates its general contract!
      java.util.TimSort.mergeHi(TimSort.java:899)
      java.util.TimSort.mergeAt(TimSort.java:516)
      java.util.TimSort.mergeForceCollapse(TimSort.java:457)
      java.util.TimSort.sort(TimSort.java:254)
      java.util.Arrays.sort(Arrays.java:1438)
      java.util.List.sort(List.java:478)
      java.util.Collections.sort(Collections.java:175)
      org.apache.cxf.transport.http.DestinationRegistryImpl.getSortedDestinations(DestinationRegistryImpl.java:123)
      org.apache.cxf.transport.servlet.servicelist.ServiceListGeneratorServlet.service(ServiceListGeneratorServlet.java:85)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:177)
      org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
      org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
      org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)
      org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:217)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268)

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              ender74 Heiko Hüter
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: