Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2048

oak-solr-osgi uses wrong version of spatial4j

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.5, 1.1.0
    • solr
    • None

    Description

      The version of spatial4j in oak-solr-osgi is incorrect. The version of spatial4j that matches lucene/solr version is 0.4.1 not 0.3. This means native solr geospatial searching in an OSGi environment throws the following exception:
      java.lang.NoSuchMethodError: com.spatial4j.core.context.SpatialContext.normX(D)D
      at org.apache.solr.util.SpatialUtils.parsePoint(SpatialUtils.java:62)
      at org.apache.solr.util.SpatialUtils.parsePointSolrException(SpatialUtils.java:84)
      at org.apache.solr.schema.LatLonType.createSpatialQuery(LatLonType.java:129)
      at org.apache.solr.search.SpatialFilterQParser.parse(SpatialFilterQParser.java:82)
      at org.apache.solr.search.QParser.getQuery(QParser.java:141)
      at org.apache.solr.parser.SolrQueryParserBase.getLocalParams(SolrQueryParserBase.java:832)
      at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:212)
      at org.apache.solr.parser.QueryParser.Query(QueryParser.java:139)
      at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:96)
      at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:152)
      at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:50)
      at org.apache.solr.search.QParser.getQuery(QParser.java:141)
      at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:145)
      at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:196)
      at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
      at org.apache.solr.core.SolrCore.execute(SolrCore.java:1916)
      at org.apache.solr.client.solrj.embedded.EmbeddedSolrServer.request(EmbeddedSolrServer.java:150)
      at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)
      at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
      at org.apache.jackrabbit.oak.plugins.index.solr.query.SolrQueryIndex.query(SolrQueryIndex.java:380)
      at org.apache.jackrabbit.oak.query.ast.SelectorImpl.execute(SelectorImpl.java:321)
      at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.fetchNext(QueryImpl.java:623)
      at org.apache.jackrabbit.oak.query.QueryImpl$RowIterator.hasNext(QueryImpl.java:647)
      at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.fetch(QueryResultImpl.java:108)
      at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl$1.<init>(QueryResultImpl.java:104)
      at org.apache.jackrabbit.oak.jcr.query.QueryResultImpl.getRows(QueryResultImpl.java:91)
      at com.day.crx.delite.impl.servlets.QueryServlet.doService(QueryServlet.java:91)
      ...

      Attachments

        Issue Links

          Activity

            People

              teofili Tommaso Teofili
              michael.hodgdon Michael Hodgdon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: