Java AbstractMethodError
How to deal with this error in lucene:
java.lang.AbstractMethodError: org.apache.lucene.store.Directory.listAll()[Ljava/lang/String;
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:568)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:69)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:316)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:188)
I make a call to the lucene function, but unfortunately it itself calls an abstract method of some class, as you can see from the above error. What's the job for this?
Thanks, Akhil
+1
a source to share
3 answers
Ok! I found the answer. This is not a version mismatch issue. Rather, the hasoop contrib FileSystemDirectory that extends the abstract class directory did not implement the abstract listAll () function. The listAll () function was called by the lucene indexReader.open () function. I added this feature and it still works.
thanks
0
a source to share