lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Diviacco <patrick.divia...@gmail.com>
Subject Re: java.lang.IncompatibleClassChangeError with BM25BooleanQuery
Date Tue, 19 Apr 2011 13:09:37 GMT
I've also tried to use older Lucene versions such as:
 Lucene 3.1 and Lucene 2.9.4 with no luck.

Thanks



On 19 April 2011 14:48, Patrick Diviacco <patrick.diviacco@gmail.com> wrote:

> Hi, I get this error:
>
> Exception in thread "main" java.lang.IncompatibleClassChangeError:
> Implementing class
> at java.lang.ClassLoader.defineClass1(Native Method)
>  at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
>  at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>  at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>  at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at NVoting.<init>(NVoting.java:143)
>  at Main.main(Main.java:8)
>
>
> on this line:
>
> booleanQuery.add(new BM25BooleanQuery(current_tags[i],
>  "tags",
> new StandardAnalyzer(org.apache.lucene.util.Version.LUCENE_31)),
>  BooleanClause.Occur.SHOULD);
>
> I'm using an implementation of BM25 Okapi retrieval system:
> http://nlp.uned.es/~jperezi/Lucene-BM25
>
> Can you help me to fix the issue ? I'm using Lucene 3.1
> thanks
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message