Details
Description
On page save, I see the following error message, suggesting that there's a backwards compatibility jar which needs to be bundled with JSPWiki:
2021-09-13 10:03:06,371 [JSPWiki Lucene Indexer] ERROR org.apache.wiki.search.LuceneSearchProvider - Unable to remove page 'Finances Template' from Lucene indexjava.lang.IllegalArgumentException: Could not load codec 'Lucene80'. Did you forget to add lucene-backward-codecs.jar? at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:449) at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:356) at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1037) at org.apache.wiki.search.LuceneSearchProvider.getIndexWriter(LuceneSearchProvider.java:416) at org.apache.wiki.search.LuceneSearchProvider.pageRemoved(LuceneSearchProvider.java:405) at org.apache.wiki.search.LuceneSearchProvider.updateLuceneIndex(LuceneSearchProvider.java:301) at org.apache.wiki.search.LuceneSearchProvider$LuceneUpdater.backgroundTask(LuceneSearchProvider.java:585) at org.apache.wiki.WikiBackgroundThread.run(WikiBackgroundThread.java:119) Suppressed: org.apache.lucene.index.CorruptIndexException: checksum passed (947d754). possibly transient resource issue, or a Lucene or JVM bug (resource=BufferedChecksumIndexInput(NIOFSIndexInput(path="/var/cache/tomcat_draga/temp/jspwiki-wiki.draga.com/lucene/segments_j5"))) at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:466) at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:434) ... 7 moreCaused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene80' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene87] at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:116) at org.apache.lucene.codecs.Codec.forName(Codec.java:116) at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:445) ... 8 more2021-09-13 10:03:06,379 [JSPWiki Lucene Indexer] ERROR org.apache.wiki.search.LuceneSearchProvider - Unexpected Lucene exception - please check configuration!java.lang.IllegalArgumentException: Could not load codec 'Lucene80'. Did you forget to add lucene-backward-codecs.jar? at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:449) at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:356) at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:291) at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1037) at org.apache.wiki.search.LuceneSearchProvider.getIndexWriter(LuceneSearchProvider.java:416) at org.apache.wiki.search.LuceneSearchProvider.updateLuceneIndex(LuceneSearchProvider.java:305) at org.apache.wiki.search.LuceneSearchProvider$LuceneUpdater.backgroundTask(LuceneSearchProvider.java:585) at org.apache.wiki.WikiBackgroundThread.run(WikiBackgroundThread.java:119) Suppressed: org.apache.lucene.index.CorruptIndexException: checksum passed (947d754). possibly transient resource issue, or a Lucene or JVM bug (resource=BufferedChecksumIndexInput(NIOFSIndexInput(path="/var/cache/tomcat_draga/temp/jspwiki-wiki.draga.com/lucene/segments_j5"))) at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:466) at org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:434) ... 6 moreCaused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene80' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene87] at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:116) at org.apache.lucene.codecs.Codec.forName(Codec.java:116) at org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:445) ... 7 more