Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-64274

Reindex on Solr fails with "multiple values encountered for non multiValued field configurationModelAttributeName"

    Details

      Description

      1- Setup Solr 5 with master/7.0: See: https://support-kb.liferay.com/web/knowledge/knowledge-base/-/knowledge_base/article/52685
      2- Execute reindex from the Server Administration

      Result: reindex generates errors like this:

      14:01:00,429 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][SolrUpdateDocumentCommandImpl:111] org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/liferay: ERROR: [doc=com_liferay_configuration_admin_web_portlet_SystemSettingsPortlet_PORTLET_com.liferay.nested.portlets.web.configuration.NestedPortletsPortletInstanceConfiguration] multiple values encountered for non multiValued field configurationModelAttributeName: [Layout template id, Layout templates unsupported]
      org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr/liferay: ERROR: [doc=com_liferay_configuration_admin_web_portlet_SystemSettingsPortlet_PORTLET_com.liferay.nested.portlets.web.configuration.NestedPortletsPortletInstanceConfiguration] multiple values encountered for non multiValued field configurationModelAttributeName: [Layout template id, Layout templates unsupported]
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:560)
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:235)
      	at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:227)
      	at org.apache.solr.client.solrj.impl.LBHttpSolrClient.request(LBHttpSolrClient.java:526)
      	at com.liferay.portal.search.solr.internal.connection.ReadWriteSolrClient.request(ReadWriteSolrClient.java:59)
      	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)
      	at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:107)
      	at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:72)
      	at org.apache.solr.client.solrj.SolrClient.add(SolrClient.java:86)
      	at com.liferay.portal.search.solr.internal.SolrUpdateDocumentCommandImpl.doUpdateDocuments(SolrUpdateDocumentCommandImpl.java:100)
      	at com.liferay.portal.search.solr.internal.SolrUpdateDocumentCommandImpl.updateDocument(SolrUpdateDocumentCommandImpl.java:52)
      	at com.liferay.portal.search.solr.internal.SolrIndexWriter.updateDocument(SolrIndexWriter.java:198)
      	at sun.reflect.GeneratedMethodAccessor249.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:86)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:54)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
      	at java.lang.Thread.run(Thread.java:745)
      

      Note
      As I mentioned in the KB-article, adding attribute multiValued="true" to field configurationModelAttributeName solves the issue:

      schema.xml
      <field indexed="true" name="configurationModelAttributeName" multiValued="true" stored="true" type="string" />

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              tibor.lipusz Tibor Lipusz
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 22 weeks ago

                  Packages

                  Version Package
                  7.0.1 CE GA2