Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9861

[Search service v2] In ContentSearchable, the Comparator for content types is not correct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.2.0
    • None
    • None
    • 4.2 RC3

      Caused by: 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.mergeForceCollapse(TimSort.java:457)
      	at java.util.TimSort.sort(TimSort.java:254)
      	at java.util.Arrays.sort(Arrays.java:1512)
      	at java.util.ArrayList.sort(ArrayList.java:1462)
      	at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable._createIndexingFieldSearchCriterionDefs(AbstractContentBasedSearchable.java:387)
      	at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable._getIndexingFieldSearchCriterionDefs(AbstractContentBasedSearchable.java:314)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      	at java.util.Collections$2.tryAdvance(Collections.java:4717)
      	at java.util.Collections$2.forEachRemaining(Collections.java:4725)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
      	at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable._getIndexingFieldSearchCriterionDefs(AbstractContentBasedSearchable.java:298)
      	at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable.getCriteria(AbstractContentBasedSearchable.java:267)
      	at org.ametys.web.frontoffice.search.metamodel.SearchServiceCreationHelper.lambda$4(SearchServiceCreationHelper.java:221)
      	at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
      	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
      	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
      	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      	at org.ametys.web.frontoffice.search.metamodel.SearchServiceCreationHelper.getCriterionDefinitions(SearchServiceCreationHelper.java:224)
      	at org.ametys.web.frontoffice.search.instance.SearchServiceInstanceFactory.createSearchServiceInstance(SearchServiceInstanceFactory.java:117)
      	at org.ametys.web.frontoffice.search.instance.SearchServiceInstanceManager.get(SearchServiceInstanceManager.java:97)
      	at org.ametys.web.frontoffice.search.SearchService.isCacheable(SearchService.java:167)
      	at org.ametys.web.repository.PageGenerator._saxZoneItem(PageGenerator.java:450)
      	... 57 more 

      It causes ODF-2107

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: