java.lang.NoSuchMethodError: org.apache.lucene.index.SegmentInfo.<init>(Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/util/Version;Ljava/lang/String;IZLorg/apache/lucene/codecs/Codec;Ljava/util/Map;[BLjava/util/Map;Lorg/apache/lucene/search/Sort;)V

Stack Overflow | sareem | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    merging lucene 6.2 indexing: NoSuchMethodError: org.apache.lucene.index.SegmentInfo

    Stack Overflow | 7 months ago | sareem
    java.lang.NoSuchMethodError: org.apache.lucene.index.SegmentInfo.<init>(Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/util/Version;Ljava/lang/String;IZLorg/apache/lucene/codecs/Codec;Ljava/util/Map;[BLjava/util/Map;Lorg/apache/lucene/search/Sort;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.lucene.index.SegmentInfo.<init>(Lorg/apache/lucene/store/Directory;Lorg/apache/lucene/util/Version;Ljava/lang/String;IZLorg/apache/lucene/codecs/Codec;Ljava/util/Map;[BLjava/util/Map;Lorg/apache/lucene/search/Sort;)V

      at org.apache.lucene.codecs.lucene62.Lucene62SegmentInfoFormat.read()
    2. org.apache.lucene
      Lucene62SegmentInfoFormat.read
      1. org.apache.lucene.codecs.lucene62.Lucene62SegmentInfoFormat.read(Lucene62SegmentInfoFormat.java:198)
      1 frame
    3. Lucene
      IndexWriter.addIndexes
      1. org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:362)
      2. org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:493)
      3. org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:490)
      4. org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:731)
      5. org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:683)
      6. org.apache.lucene.index.SegmentInfos.readLatestCommit(SegmentInfos.java:490)
      7. org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2487)
      7 frames
    4. _general
      LuceneIndexesMerger.main
      1. _general.LuceneIndexesMerger.main(LuceneIndexesMerger.java:36)
      1 frame