dsmiley/SOLR-2155

ParseException when enabling the alternative geodist function

Closed this issue · 2 comments

Full error message

SEVERE: Unable to create core: collection1
org.apache.solr.common.SolrException: org/apache/lucene/queryParser/ParseException
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:822)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:618)
        at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:1021)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:1051)
        at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:634)
        at org.apache.solr.core.CoreContainer$3.call(CoreContainer.java:629)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.NoClassDefFoundError: org/apache/lucene/queryParser/ParseException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:266)
        at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:424)
        at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:518)
        at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:575)
        at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2084)
        at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2078)
        at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2111)
        at org.apache.solr.core.SolrCore.initValueSourceParsers(SolrCore.java:2023)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:750)
        ... 13 more
Caused by: java.lang.ClassNotFoundException: org.apache.lucene.queryParser.ParseException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:615)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        ... 23 more

I can specify that I have solr 4.2.1 installed, and only with that change this errors shows up.

SOLR-2155 does not work with Solr 4.x; it is expressly for Solr 3.x only. However, good news -- Solr 4 ships with the same technology, more or less: http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4

Well damn it. I only though that the documentation is out of sync, as it's a clustered randomness sometimes