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

UndeclaredThrowableException in UserIndexerTest.testLikeCharacter with Solr

Details

    Description

      UserIndexerTest.testLikeCharacter is failing with Solr in 7.3.x with:

      java.lang.Exception: java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.search.solr8.internal.SolrIndexSearcher, message=java.lang.RuntimeException: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: org.apache.solr.search.SyntaxError: Cannot parse '+((+comments:% comments:"%"~50 (comments:"%")^2.0) (+content:% content:"%"~50 (content:"%")^2.0) (+description:% description:"%"~50 (description:"%")^2.0) (+(title:% title:%*) (title:"%")^2.0) (url:"%" (url:*) url:%*) () (+assetCategoryTitles_en_US:% assetCategoryTitles_en_US:"%"~50 (assetCategoryTitles_en_US:"%")^2.0) (+(assetTagNames_en_US:% assetTagNames_en_US:%*) (assetTagNames_en_US:"%")^2.0) (+city:% city:"%"~50 (city:"%")^2.0) (+country:% country:"%"~50 (country:"%")^2.0) (+firstName:% firstName:"%"~50 (firstName:"%")^2.0) (+fullName:% fullName:"%"~50 (fullName:"%")^2.0) (+jobTitle:% jobTitle:"%"~50 (jobTitle:"%")^2.0) (+lastName:% lastName:"%"~50 (lastName:"%")^2.0) (+middleName:% middleName:"%"~50 (middleName:"%")^2.0) (+region:% region:"%"~50 (region:"%")^2.0) (+screenName:% screenName:"%"~50 (screenName:"%")^2.0) (+street:% street:"%"~50 (street:"%")^2.0) (+zip:% zip:"%"~50 (zip:"%")^2.0) emailAddress:%* emailAddressDomain:%* screenName:%*)': Encountered " ")" ") "" at line 1, column 219.
      Was expecting one of:
          <NOT> ...
          "+" ...
          "-" ...
          <BAREOPER> ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          <REGEXPTERM> ...
          "[" ...
          "{" ...
          <LPARAMS> ...
          "filter(" ...
          <NUMBER> ...
          <TERM> ...
          
      	at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:91)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:58)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	at com.liferay.portal.messaging.internal.SynchronousDestination.send(SynchronousDestination.java:46)
      	at com.liferay.portal.messaging.internal.sender.DirectSynchronousMessageSender.send(DirectSynchronousMessageSender.java:59)
      	at com.liferay.portal.kernel.messaging.proxy.BaseMultiDestinationProxyBean.synchronousSend(BaseMultiDestinationProxyBean.java:53)
      	at com.liferay.portal.messaging.proxy.MultiDestinationMessagingProxyInvocationHandler.invoke(MultiDestinationMessagingProxyInvocationHandler.java:58)
      	... 46 more
      Caused by: java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.search.solr8.internal.SolrIndexSearcher, message=java.lang.RuntimeException: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://localhost:8983/solr: org.apache.solr.search.SyntaxError: Cannot parse '+((+comments:% comments:"%"~50 (comments:"%")^2.0) (+content:% content:"%"~50 (content:"%")^2.0) (+description:% description:"%"~50 (description:"%")^2.0) (+(title:% title:%*) (title:"%")^2.0) (url:"%" (url:*) url:%*) () (+assetCategoryTitles_en_US:% assetCategoryTitles_en_US:"%"~50 (assetCategoryTitles_en_US:"%")^2.0) (+(assetTagNames_en_US:% assetTagNames_en_US:%*) (assetTagNames_en_US:"%")^2.0) (+city:% city:"%"~50 (city:"%")^2.0) (+country:% country:"%"~50 (country:"%")^2.0) (+firstName:% firstName:"%"~50 (firstName:"%")^2.0) (+fullName:% fullName:"%"~50 (fullName:"%")^2.0) (+jobTitle:% jobTitle:"%"~50 (jobTitle:"%")^2.0) (+lastName:% lastName:"%"~50 (lastName:"%")^2.0) (+middleName:% middleName:"%"~50 (middleName:"%")^2.0) (+region:% region:"%"~50 (region:"%")^2.0) (+screenName:% screenName:"%"~50 (screenName:"%")^2.0) (+street:% street:"%"~50 (street:"%")^2.0) (+zip:% zip:"%"~50 (zip:"%")^2.0) emailAddress:%* emailAddressDomain:%* screenName:%*)': Encountered " ")" ") "" at line 1, column 219.
      Was expecting one of:
          <NOT> ...
          "+" ...
          "-" ...
          <BAREOPER> ...
          "(" ...
          "*" ...
          <QUOTED> ...
          <TERM> ...
          <PREFIXTERM> ...
          <WILDTERM> ...
          <REGEXPTERM> ...
          "[" ...
          "{" ...
          <LPARAMS> ...
          "filter(" ...
          <NUMBER> ...
          <TERM> ...
          
      	at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:60)
      	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
      	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
      	at org.apache.log4j.Category.callAppenders(Category.java:206)
      	at org.apache.log4j.Category.forcedLog(Category.java:391)
      	at org.apache.log4j.Category.log(Category.java:856)
      	at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
      	at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
      	at com.liferay.portal.search.solr8.internal.SolrIndexSearcher.search(SolrIndexSearcher.java:151)
      	at sun.reflect.GeneratedMethodAccessor367.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:82)
      	... 52 more

      Full console log

      Attachments

        Issue Links

          Activity

            People

              brooke.dalton Brooke Dalton
              brooke.dalton Brooke Dalton
              Marta Elicegui Marta Elicegui
              Christopher Kian Christopher Kian
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                48 weeks, 4 days ago

                Packages

                  Version Package
                  7.3.10.3 DXP SP3
                  7.3.X