I guess a requesthandler may not be the right component to implement.
try implementing a CoreAdminHandler .

http://wiki.apache.org/solr/CoreAdmin#head-dfab3233db613c1976e05cdf894aa326ca64d312

On Mon, Aug 3, 2009 at 9:11 PM, James Brady<james.colin.br...@gmail.com> wrote:
> Hi,
> I'm creating a custom request handler to return a list of live cores in
> Solr.
>
> On startup, I get this exception for each core:
>
> Jul 31, 2009 5:20:39 PM org.apache.solr.common. SolrException log
> SEVERE: java.lang.ClassCastException: LiveCoresHandler
>        at
> org.apache.solr.core.RequestHandlers$1.create(RequestHandlers.java:152)
>        at
> org.apache.solr.core.RequestHandlers$1.create(RequestHandlers.java:161)
>        at
> org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:140)
>        at
> org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.java:169)
>        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:444)
>
> I've tried a few variations on the class definition, including extending
> RequestHandlerBase (as suggested here:
> http://wiki.apache.org/solr/SolrRequestHandler#head-1de7365d7ecf2eac079c5f8b92ee9af712ed75c2)
> and implementing SolrRequestHandler directly.
>
> I'm sure that the Solr libraries I built against and those I'm running on
> are the same version too, as I unzipped the Solr war file and copies the
> relevant jars out of there to build against.
>
> Any ideas on what could be causing the ClassCastException? I've attached a
> debugger to the running Solr process but it didn't shed any light on the
> issue...
>
> Thanks!
> James
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com
          • Re: C... Noble Paul നോബിള്‍ नोब्ळ्
            • ... James Brady
              • ... James Brady
              • ... Chantal Ackermann
              • ... James Brady
              • ... Chantal Ackermann
              • ... Chantal Ackermann
              • ... James Brady
              • ... Chantal Ackermann
              • ... James Brady
  • Re: ClassCastException... Noble Paul നോബിള്‍ नोब्ळ्

Reply via email to