You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by shreejay <sh...@gmail.com> on 2012/12/11 19:51:26 UTC

A SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene41' does not exist.

I am getting the following error :
Caused by: org.apache.solr.common.SolrException: Error opening new searcher
        at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:1326)
        at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1438)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:700)
        ... 45 more
Caused by: java.lang.IllegalArgumentException: A SPI class of type
org.apache.lucene.codecs.Codec with name 'Lucene41' does not exist. You need
to add the corresponding JAR file supporting this SPI to your classpath.The
current classpath supports the following names: [Lucene40, Lucene3x]
        at
org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:104)
        at org.apache.lucene.codecs.Codec.forName(Codec.java:95)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:299)
        at
org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:56)
        at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:783)
        at
org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:52)
        at
org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:87)
        at
org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:34)
        at
org.apache.solr.search.SolrIndexSearcher.<init>(SolrIndexSearcher.java:119)
        at org.apache.solr.core.SolrCore.openNewSearcher(SolrCore.java:130


I was using a patched version of branch_4x for indexing. But due to some
issues I am now reverting back to 4.0 (with one of the patches for Solr 2592
) . I am using the data directories from my previous instance. 

Would just adding the codes folder "lucene41" under the folder
"lucene\core\src\java\org\apache\lucene\codecs" and compiling it suffice ?

--
Shreejay



--
View this message in context: http://lucene.472066.n3.nabble.com/A-SPI-class-of-type-org-apache-lucene-codecs-Codec-with-name-Lucene41-does-not-exist-tp4026118.html
Sent from the Solr - User mailing list archive at Nabble.com.