See the reply from Paolo after your first message.

Archive:
http://mail-archives.apache.org/mod_mbox/jena-users/

Reply
http://mail-archives.apache.org/mod_mbox/jena-users/201205.mbox/%3C4FBCC70E.6050200%40googlemail.com%3E

        Andy

On 24/05/12 01:58, Md. Mizanur Rahoman wrote:
-- Sorry, If you get this mail twice. As it's first time to this group, I
am not used to ... ----------------

Dear Concern,

I am trying to run LARQ example ExLucene1 from

https://svn.apache.org/repos/asf/jena/trunk/jena-larq/src/test/java/org/apache/jena/larq/examples/ExLucene1.java

But having problem

Exception in thread "main" java.lang.NoSuchFieldError:
DEFAULT_TERMS_INDEX_DIVISOR from  IndexBuilderString larqBuilder = new
IndexBuilderString() ;


I found two patches
(LUCENE-2356.patch<https://issues.apache.org/jira/secure/attachment/12446064/LUCENE-2356.patch>,
LUCENE_1909.patch) from Lucene, though might not be for LARQ, and applied;
still the problem exists. Need help.


*Here is the output:*

ARQ Example: ExLucene1
ARQ: 2.8.7

Exception in thread "main" java.lang.NoSuchFieldError:
DEFAULT_TERMS_INDEX_DIVISOR
     at
org.apache.lucene.index.IndexWriterConfig.<clinit>(IndexWriterConfig.java:93)
     at
org.apache.jena.larq.IndexWriterFactory.create(IndexWriterFactory.java:33)
     at
org.apache.jena.larq.IndexBuilderBase.makeIndex(IndexBuilderBase.java:87)
     at
org.apache.jena.larq.IndexBuilderBase.<init>(IndexBuilderBase.java:50)
     at
org.apache.jena.larq.IndexBuilderNode.<init>(IndexBuilderNode.java:45)
     at
org.apache.jena.larq.IndexBuilderModel.<init>(IndexBuilderModel.java:45)
     at
org.apache.jena.larq.IndexBuilderLiteral.<init>(IndexBuilderLiteral.java:40)
     at
org.apache.jena.larq.IndexBuilderString.<init>(IndexBuilderString.java:37)
     at virtuosoSPARQLExample1.ExLucene1.buildIndex(ExLucene1.java:56)
     at virtuosoSPARQLExample1.ExLucene1.main(ExLucene1.java:35)



Reply via email to