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

Solr properties files are not loaded properly

    Details

      Description

      Steps to reproduce:

      1. Configure the portal to use Solr with default settings.
      2. Reindex.

      Actual results:
      Exceptions appear:

      05:50:13,765 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][SolrIndexWriter:100] java.lang.IllegalArgumentException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      java.lang.IllegalArgumentException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at java.net.URI.create(URI.java:859)
      	at org.apache.http.client.methods.HttpPost.<init>(HttpPost.java:76)
      	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:285)
      	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
      	at com.liferay.portal.search.solr.server.BaseHttpSolrServer.request(BaseHttpSolrServer.java:65)
      	at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
      	at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:239)
      	at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:225)
      	at com.liferay.portal.search.solr.SolrIndexWriter.deleteDocument(SolrIndexWriter.java:93)
      	at com.liferay.portal.search.solr.SolrIndexWriter.updateDocument(SolrIndexWriter.java:176)
      	at sun.reflect.GeneratedMethodAccessor548.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:51)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:728)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:639)
      	at java.lang.Thread.run(Thread.java:724)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at java.net.URI$Parser.fail(URI.java:2829)
      	at java.net.URI$Parser.checkChars(URI.java:3002)
      	at java.net.URI$Parser.parseHierarchical(URI.java:3086)
      	at java.net.URI$Parser.parse(URI.java:3044)
      	at java.net.URI.<init>(URI.java:595)
      	at java.net.URI.create(URI.java:857)
      	... 19 more
      05:50:13,832 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][SolrIndexWriter:100] java.lang.IllegalArgumentException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      java.lang.IllegalArgumentException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at java.net.URI.create(URI.java:859)
      	at org.apache.http.client.methods.HttpPost.<init>(HttpPost.java:76)
      	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:285)
      	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
      	at com.liferay.portal.search.solr.server.BaseHttpSolrServer.request(BaseHttpSolrServer.java:65)
      	at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
      	at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:239)
      	at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:225)
      	at com.liferay.portal.search.solr.SolrIndexWriter.deleteDocument(SolrIndexWriter.java:93)
      	at com.liferay.portal.search.solr.SolrIndexWriter.updateDocument(SolrIndexWriter.java:176)
      	at sun.reflect.GeneratedMethodAccessor548.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:51)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:728)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:639)
      	at java.lang.Thread.run(Thread.java:724)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at java.net.URI$Parser.fail(URI.java:2829)
      	at java.net.URI$Parser.checkChars(URI.java:3002)
      	at java.net.URI$Parser.parseHierarchical(URI.java:3086)
      	at java.net.URI$Parser.parse(URI.java:3044)
      	at java.net.URI.<init>(URI.java:595)
      	at java.net.URI.create(URI.java:857)
      	... 19 more
      05:50:13,832 WARN  [liferay/search_writer/SYSTEM_ENGINE-1][ProxyMessageListener:81] com.liferay.portal.kernel.search.SearchException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      com.liferay.portal.kernel.search.SearchException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at com.liferay.portal.search.solr.SolrIndexWriter.deleteDocument(SolrIndexWriter.java:102)
      	at com.liferay.portal.search.solr.SolrIndexWriter.updateDocument(SolrIndexWriter.java:176)
      	at sun.reflect.GeneratedMethodAccessor548.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:51)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:728)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:639)
      	at java.lang.Thread.run(Thread.java:724)
      05:50:13,958 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][SolrIndexWriter:100] java.lang.IllegalArgumentException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      java.lang.IllegalArgumentException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at java.net.URI.create(URI.java:859)
      	at org.apache.http.client.methods.HttpPost.<init>(HttpPost.java:76)
      	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:285)
      	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
      	at com.liferay.portal.search.solr.server.BaseHttpSolrServer.request(BaseHttpSolrServer.java:65)
      	at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
      	at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:239)
      	at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:225)
      	at com.liferay.portal.search.solr.SolrIndexWriter.deleteDocument(SolrIndexWriter.java:93)
      	at com.liferay.portal.search.solr.SolrIndexWriter.updateDocument(SolrIndexWriter.java:176)
      	at sun.reflect.GeneratedMethodAccessor548.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:51)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:728)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:639)
      	at java.lang.Thread.run(Thread.java:724)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at java.net.URI$Parser.fail(URI.java:2829)
      	at java.net.URI$Parser.checkChars(URI.java:3002)
      	at java.net.URI$Parser.parseHierarchical(URI.java:3086)
      	at java.net.URI$Parser.parse(URI.java:3044)
      	at java.net.URI.<init>(URI.java:595)
      	at java.net.URI.create(URI.java:857)
      	... 19 more
      05:50:14,534 WARN  [liferay/search_writer/SYSTEM_ENGINE-3][ProxyMessageListener:81] com.liferay.portal.kernel.search.SearchException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      com.liferay.portal.kernel.search.SearchException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at com.liferay.portal.search.solr.SolrIndexWriter.deleteDocument(SolrIndexWriter.java:102)
      	at com.liferay.portal.search.solr.SolrIndexWriter.updateDocument(SolrIndexWriter.java:176)
      	at sun.reflect.GeneratedMethodAccessor548.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:51)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:728)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:639)
      	at java.lang.Thread.run(Thread.java:724)
      05:50:13,958 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][SolrIndexWriter:100] java.lang.IllegalArgumentException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      java.lang.IllegalArgumentException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at java.net.URI.create(URI.java:859)
      	at org.apache.http.client.methods.HttpPost.<init>(HttpPost.java:76)
      	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:285)
      	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
      	at com.liferay.portal.search.solr.server.BaseHttpSolrServer.request(BaseHttpSolrServer.java:65)
      	at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
      	at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:239)
      	at org.apache.solr.client.solrj.SolrServer.deleteById(SolrServer.java:225)
      	at com.liferay.portal.search.solr.SolrIndexWriter.deleteDocument(SolrIndexWriter.java:93)
      	at com.liferay.portal.search.solr.SolrIndexWriter.updateDocument(SolrIndexWriter.java:176)
      	at sun.reflect.GeneratedMethodAccessor548.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:51)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:728)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:639)
      	at java.lang.Thread.run(Thread.java:724)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at java.net.URI$Parser.fail(URI.java:2829)
      	at java.net.URI$Parser.checkChars(URI.java:3002)
      	at java.net.URI$Parser.parseHierarchical(URI.java:3086)
      	at java.net.URI$Parser.parse(URI.java:3044)
      	at java.net.URI.<init>(URI.java:595)
      	at java.net.URI.create(URI.java:857)
      	... 19 more
      05:50:13,958 WARN  [liferay/search_writer/SYSTEM_ENGINE-2][ProxyMessageListener:81] com.liferay.portal.kernel.search.SearchException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      com.liferay.portal.kernel.search.SearchException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at com.liferay.portal.search.solr.SolrIndexWriter.deleteDocument(SolrIndexWriter.java:102)
      	at com.liferay.portal.search.solr.SolrIndexWriter.updateDocument(SolrIndexWriter.java:176)
      	at sun.reflect.GeneratedMethodAccessor548.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:51)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:728)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:639)
      	at java.lang.Thread.run(Thread.java:724)
      05:50:14,990 WARN  [liferay/search_writer/SYSTEM_ENGINE-4][ProxyMessageListener:81] com.liferay.portal.kernel.search.SearchException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      com.liferay.portal.kernel.search.SearchException: Illegal character in path at index 1: ${server.http.url}/update?wt=javabin&version=2
      	at com.liferay.portal.search.solr.SolrIndexWriter.deleteDocument(SolrIndexWriter.java:102)
      	at com.liferay.portal.search.solr.SolrIndexWriter.updateDocument(SolrIndexWriter.java:176)
      	at sun.reflect.GeneratedMethodAccessor548.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:51)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:71)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:728)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:639)
      	at java.lang.Thread.run(Thread.java:724)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 28 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 M6