Doug Cutting wrote:
Monu Ogbe wrote:
Caused by: java.lang.InstantiationException:
org.apache.nutch.searcher.Query
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.hadoop.io.WritableFactories.newInstance(WritableFactories.jav
It looks like Query no longer has a no-arg constructor, probably since
the patch which makes all Configurations non-static. A no-arg
constructor is required in order to pass something via an RPC. The
fix might be as simple as adding the no-arg constructor, but perhaps
not, since the query would then have a null configuration. At a
glance, the query execution code doesn't appear to use the
configuration, so this might work...
Configuration is used in Clause.toString() to check which fields are raw.
Does RPC set the current Configuration when it instantiates objects that
implement Configurable? Perhaps it should, using the current JobConf.
--
Best regards,
Andrzej Bialecki <><
___. ___ ___ ___ _ _ __________________________________
[__ || __|__/|__||\/| Information Retrieval, Semantic Web
___|||__|| \| || | Embedded Unix, System Integration
http://www.sigram.com Contact: info at sigram dot com