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

Search service error on pages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 4.6.0
    • 4.6.0
    • Plugin : Search
    • None
    • 4.6 M8

      How to reproduce (Ametys Demo 4.6.0-20221115-0032-SNAPSHOT) and (Version: 4.6.0M7)

      • insert the search service with these parameters:




      The following error is displayed

       Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Collection.stream()" because "contentTypeIds" is null at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable._getIndexingFieldSearchCriterionDefs(AbstractContentBasedSearchable.java:365) at org.ametys.web.frontoffice.search.metamodel.impl.AbstractContentBasedSearchable.getCriteria(AbstractContentBasedSearchable.java:337) at org.ametys.web.frontoffice.search.metamodel.SearchServiceCreationHelper.lambda$getCriterionDefinitions$0(SearchServiceCreationHelper.java:261) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at org.ametys.web.frontoffice.search.metamodel.SearchServiceCreationHelper.getCriterionDefinitions(SearchServiceCreationHelper.java:264) at org.ametys.web.frontoffice.search.instance.SearchServiceInstanceFactory.createSearchServiceInstance(SearchServiceInstanceFactory.java:118) at org.ametys.web.frontoffice.search.instance.SearchServiceInstanceManager.get(SearchServiceInstanceManager.java:97) at org.ametys.web.frontoffice.search.SearchService.isCacheable(SearchService.java:172) at org.ametys.web.repository.PageGenerator._saxZoneItem(PageGenerator.java:442) ... 58 more

        1. screenshot-6.png
          screenshot-6.png
          63 kB
        2. screenshot-5.png
          screenshot-5.png
          23 kB
        3. screenshot-4.png
          screenshot-4.png
          44 kB
        4. screenshot-3.png
          screenshot-3.png
          87 kB
        5. screenshot-2.png
          screenshot-2.png
          53 kB
        6. screenshot-1.png
          screenshot-1.png
          26 kB

            Unassigned Unassigned
            afrancois Anastasia François
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: