You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2014/08/22 09:31:12 UTC

[jira] [Updated] (OAK-2048) oak-solr-osgi uses wrong version of spatial4j

     [ https://issues.apache.org/jira/browse/OAK-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili updated OAK-2048:
---------------------------------

    Fix Version/s: 1.0.5

> oak-solr-osgi uses wrong version of spatial4j
> ---------------------------------------------
>
>                 Key: OAK-2048
>                 URL: https://issues.apache.org/jira/browse/OAK-2048
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: oak-solr
>            Reporter: Michael Hodgdon
>            Assignee: Tommaso Teofili
>             Fix For: 1.1, 1.0.5
>
>
> 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)
> ...



--
This message was sent by Atlassian JIRA
(v6.2#6252)