Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Lucene, mail # general - Solr upgraded to from 1.4.0 to 3.3.0 and getting exception at WordDelimiterFilterFactory


Copy link to this message
-
Re: Solr upgraded to from 1.4.0 to 3.3.0 and getting exception at WordDelimiterFilterFactory
Chris Hostetter 2011-09-12, 20:54

: We have recently upgraded the solr version from 1.4.0 to version 3.3.0. Now
: from app we are having custom word delimiter filter generate the
: TokenStream. Now that method is failing WordDelimiterFilterFactory.create()
: method. Exception that am getting given below,
:
: java.lang.NoSuchMethodError:

NoSuchMethodError means that some peice of code is attempting to call a
method that doesn't exist -- usually this happens because you are running
a mix of classes (ie: jars) that aren't compatible.

more then likely you either have multiple duplicate jars, or you are
trying to re-use a class from an older version that hasn't been recompiled
(these kinds of incompatibilities would normally be caught at compliation)

Where this stack trace says the error is coming from suggests that you are
using the WDF class from one version of solr combined with the WDFFactory
class from a differnet version of solr.

In fact, this right here is a dead give away...

: org.apache.solr.analysis.WordDelimiterFilter.addAttribute(Ljava/lang/Class;)Lorg/apache/lucene/util/Attribute;
:         at
: org.apache.solr.analysis.WordDelimiterFilter.(WordDelimiterFilter.java:123)
:         at
: org.apache.solr.analysis.WordDelimiterFilterFactory.create(WordDelimiterFilterFactory.java:108)

...in Solr 3.3, WordDelimiterFilter was moved to
org.apache.lucene.analysis.miscellaneous ... there is no
o.a.s.analysis.WDF class.

-Hoss