[jsword-devel] APIExamples Failing on search
Tim Hawes
trhawes at althusius.net
Sat Sep 7 18:36:03 MST 2019
I am getting this exception when I try running the `search` function in APIExamples.java
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.crosswire.jsword.index.lucene.analysis.LuceneAnalyzer.<init>(LuceneAnalyzer.java:51)
at org.crosswire.jsword.index.lucene.LuceneIndex.find(LuceneIndex.java:277)
at org.crosswire.jsword.index.query.BaseQuery.find(BaseQuery.java:50)
at org.crosswire.jsword.index.lucene.LuceneSearcher.search(LuceneSearcher.java:96)
at org.crosswire.jsword.index.lucene.LuceneSearcher.search(LuceneSearcher.java:83)
at org.crosswire.jsword.book.basic.AbstractBook.find(AbstractBook.java:126)
at org.crosswire.jsword.book.basic.AbstractBook.find(AbstractBook.java:111)
at com.selfdidactic.jsword.APIExamples.search(APIExamples.java:197)
at com.selfdidactic.jsword.APIExamples.main(APIExamples.java:451)
Caused by: java.lang.NullPointerException
at org.crosswire.jsword.index.lucene.InstalledIndex.<init>(InstalledIndex.java:132)
at org.crosswire.jsword.index.lucene.InstalledIndex.<clinit>(InstalledIndex.java:184)
... 9 more
Process finished with exit code 1
Googling around suggests a mismatched Lucene version?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20190907/f78279fd/attachment.html>
More information about the jsword-devel
mailing list