Check SolrCore.createInitInstance
It cast's your CustomValueSourceParser as a NamedListInitializedPlugin which
is an interface,
thus the AbstractMethodError, as there isn't a concrete implementation of
init.

If it cast it as a ValueSourceParser in SolrCore then it would be fine.

On Tue, Dec 15, 2009 at 9:59 PM, Shalin Shekhar Mangar <
shalinman...@gmail.com> wrote:

> On Wed, Dec 16, 2009 at 11:01 AM, patrick o'leary <pj...@pjaol.com> wrote:
>
> >
> > #2 There's an AbstractMethodError when you extend ValueSourceParser and
> > don't override the init(NamedList args) method
> > because SolrCore:~439 createInitInstance, cast's the plugin class as a
> > NamedListInitializedPlugin, and call's
> > ((NamedListInitializedPlugin) o).init(info.initArgs);
> >
> > If your extended ValueSourceParser class doesn't provide an override,
> then
> > there's nothing that implements the base interface from
> > NamedListInitializedPlugin.
> >
> >
> ValueSourceParser in trunk has an empty init method so you should never get
> a AbstractMethodError. Can you check again?
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Reply via email to