Hi,

7.0+ solr-analytics code added:

  public void prepare(ResponseBuilder rb) throws IOException {
...
    rb._isOlapAnalytics = false;
...

references to ResponseBuilder._isOlapAnalytics -- a package var in solr-core

Since solr-analytics lives in 'dist/' while solr-core lives in
'server/solr-webapp/webapp/WEB-INF/lib/', (If referenced in solrconfig) You
get a IllegalAccessError:

<pre> Server Error</pre></p><h3>Caused
by:</h3><pre>java.lang.IllegalAccessError: tried to access field
org.apache.solr.handler.component.ResponseBuilder._isOlapAnalytics from
class org.apache.solr.handler.component.AnalyticsComponent at
org.apache.solr.handler.component.AnalyticsComponent.prepare(AnalyticsComponent.java:46)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:269)
at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:177)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2484) at
org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:720)

Note above is for 7.1 but happens in 7.0.1 as well.

Workaround is:
    mv dist/solr-analytics-7.1.0.jar server/solr-webapp/webapp/WEB-INF/lib

Which gets rid of error.

BTW, my solrconfig looks like:
...
  <lib dir="${solr.install.dir:../../../..}/contrib/extraction/lib"
regex=".*\.jar"></lib>
  <lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-cell-\d.*\.jar"></lib>
  <lib dir="${solr.install.dir:../../../..}/contrib/clustering/lib/"
regex=".*\.jar"></lib>
  <lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-clustering-\d.*\.jar"></lib>
  <lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/"
regex=".*\.jar"></lib>
  <lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-langid-\d.*\.jar"></lib>
  <lib dir="${solr.install.dir:../../../..}/contrib/velocity/lib"
regex=".*\.jar"></lib>
  <lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-velocity-\d.*\.jar"></lib>
  <lib dir="${solr.install.dir:../../../..}/dist/"
regex="solr-analytics-\d.*\.jar"></lib>
...

Last place tried which worked was 6.3.0
Thx

Reply via email to