lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Potter <thelabd...@gmail.com>
Subject Re: Problem instatanting a ValueSourceParser plugin in 4.3.1
Date Mon, 22 Jul 2013 14:38:54 GMT
I saw something similar and used an absolute path to my JAR file in
solrconfig.xml vs. a relative path and it resolved the issue for me.
Not elegant but worth trying, at least to rule that out.


Tim

On Mon, Jul 22, 2013 at 7:51 AM, Abeygunawardena, Niran
<Niran.Abeygunawardena@proquest.co.uk> wrote:
> Hi,
>
> I'm trying to migrate to Solr 4.3.1 from Solr 4.0.0. I have a Solr Plugin which extends
ValueSourceParser and it works under Solr 4.0.0 but it does not work under Solr 4.3.1. I compiled
the plugin using the solr-4.3.1*.jars and lucene-4.3.1*.jars but I get the following stacktrace
error when starting up a core referencing this plugin...seen below. Does anyone know why it
might be giving me a ClassCastException under 4.3.1?
>
> Thanks,
> Niran
>
> 2458 [coreLoadExecutor-3-thread-2] ERROR org.apache.solr.core.CoreContainer   Unable
to create core: example_core
> org.apache.solr.common.SolrException: Error Instantiating ValueSourceParser, com.example.HitsValueSourceParser
failed to instanti
> ate org.apache.solr.search.ValueSourceParser
>         at org.apache.solr.core.SolrCore.<init>(SolrCore.java:821)
>         at org.apache.solr.core.SolrCore.<init>(SolrCore.java:618)
>         at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:949)
>         at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
>         at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
>         at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.solr.common.SolrException: Error Instantiating ValueSourceParser,
com.example.HitsValueSourceParser failed
> to instantiate org.apache.solr.search.ValueSourceParser
>         at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:539)
>         at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:575)
>         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2088)
>         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2082)
>         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2115)
>         at org.apache.solr.core.SolrCore.initValueSourceParsers(SolrCore.java:2027)
>         at org.apache.solr.core.SolrCore.<init>(SolrCore.java:749)
>         ... 13 more
> Caused by: java.lang.ClassCastException: class com.example.HitsValueSourceParser
>         at java.lang.Class.asSubclass(Unknown Source)
>         at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:448)
>         at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:396)
>         at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:518)
>         ... 19 more
> 2466 [coreLoadExecutor-3-thread-2] ERROR org.apache.solr.core.CoreContainer   null:org.apache.solr.common.SolrException:
Unable to create core: example_core
>         at org.apache.solr.core.CoreContainer.recordAndThrow(CoreContainer.java:1450)
>         at org.apache.solr.core.CoreContainer.create(CoreContainer.java:993)
>         at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:597)
>         at org.apache.solr.core.CoreContainer$2.call(CoreContainer.java:592)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.solr.common.SolrException: Error Instantiating ValueSourceParser,
com.example.HitsValueSourceParser failed
> to instantiate org.apache.solr.search.ValueSourceParser
>         at org.apache.solr.core.SolrCore.<init>(SolrCore.java:821)
>         at org.apache.solr.core.SolrCore.<init>(SolrCore.java:618)
>         at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:949)
>         at org.apache.solr.core.CoreContainer.create(CoreContainer.java:984)
>         ... 10 more
> Caused by: org.apache.solr.common.SolrException: Error Instantiating ValueSourceParser,
com.example.HitsValueSourceParser failed
> to instantiate org.apache.solr.search.ValueSourceParser
>         at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:539)
>         at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:575)
>         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2088)
>         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2082)
>         at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2115)
>         at org.apache.solr.core.SolrCore.initValueSourceParsers(SolrCore.java:2027)
>         at org.apache.solr.core.SolrCore.<init>(SolrCore.java:749)
>         ... 13 more
> Caused by: java.lang.ClassCastException: com.example.HitsValueSourceParser
>         at java.lang.Class.asSubclass(Unknown Source)
>         at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:448)
>         at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:396)
>         at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:518)
>         ... 19 more
>

Mime
View raw message