# Codec with name 'Lucene45' does not exist

**URL:** <https://discuss.elastic.co/t/codec-with-name-lucene45-does-not-exist/14493>\
**Category:** Elasticsearch\
**Created:** [November 20, 2013, 1:33pm UTC](https://discuss.elastic.co/t/codec-with-name-lucene45-does-not-exist/14493 "2013-11-20T13:33:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_4](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_4/32/1962_2.png) [@Mike\_4](https://discuss.elastic.co/u/Mike_4)\
**Post date:** [November 20, 2013, 1:33pm UTC](https://discuss.elastic.co/t/codec-with-name-lucene45-does-not-exist/14493/1 "2013-11-20T13:33:43Z")

</div>

Hi,

starting with elasticsearch 0.9.6 i get spammed with the message:

Caused by: java.lang.IllegalArgumentException: A SPI class of type  
org.apache.lucene.codecs.Codec with name 'Lucene45' 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, Lucene41, Lucene42, SimpleText, Appending]  
at  
org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109)  
at org.apache.lucene.codecs.Codec.forName(Codec.java:95)  
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:332)  
at  
org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:380)  
at  
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:812)  
at  
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:663)  
at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:376)  
at org.apache.lucene.index.IndexWriter.(IndexWriter.java:711)  
at  
org.elasticsearch.index.engine.robin.RobinEngine.createWriter(RobinEngine.java:1356)  
at  
org.elasticsearch.index.engine.robin.RobinEngine.start(RobinEngine.java:252)  
at  
org.elasticsearch.index.shard.service.InternalIndexShard.performRecoveryPrepareForTranslog(InternalIndexShard.java:573)  
at  
org.elasticsearch.indices.recovery.RecoveryTarget$PrepareForTranslogOperationsRequestHandler.messageReceived(RecoveryTarget.java:379)  
at  
org.elasticsearch.indices.recovery.RecoveryTarget$PrepareForTranslogOperationsRequestHandler.messageReceived(RecoveryTarget.java:353)  
at  
org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:269)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:724)

Also the logstash console is filled with these so it is hard to debug  
logstash (1.2.2) right now. Same for elastic 0.9.7. Can i fix this or can i  
disable the message somehow?

Best,

Mike

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [November 20, 2013, 1:38pm UTC](https://discuss.elastic.co/t/codec-with-name-lucene45-does-not-exist/14493/2 "2013-11-20T13:38:04Z")

</div>

I believe I saw a similar message a while ago while running a mixed version  
cluster. I didn't have time to debug it truly but was able to fix the  
problem by forcing removing the nodes with the old version. I think the  
problem has to do with not being able to move shards from a node with a  
newer version of lucene to a node with an older version, though I'm not  
100% sure. It was a bad day.

On Wed, Nov 20, 2013 at 8:33 AM, Mike [mike.michel811@gmail.com](mailto:mike.michel811@gmail.com) wrote:

> Hi,
> 
> starting with elasticsearch 0.9.6 i get spammed with the message:
> 
> Caused by: java.lang.IllegalArgumentException: A SPI class of type  
> org.apache.lucene.codecs.Codec with name 'Lucene45' 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, Lucene41, Lucene42, SimpleText, Appending]  
> at  
> org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109)  
> at org.apache.lucene.codecs.Codec.forName(Codec.java:95)  
> at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:332)  
> at  
> org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:380)  
> at  
> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:812)  
> at  
> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:663)  
> at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:376)  
> at org.apache.lucene.index.IndexWriter.(IndexWriter.java:711)  
> at  
> org.elasticsearch.index.engine.robin.RobinEngine.createWriter(RobinEngine.java:1356)  
> at  
> org.elasticsearch.index.engine.robin.RobinEngine.start(RobinEngine.java:252)  
> at  
> org.elasticsearch.index.shard.service.InternalIndexShard.performRecoveryPrepareForTranslog(InternalIndexShard.java:573)  
> at  
> org.elasticsearch.indices.recovery.RecoveryTarget$PrepareForTranslogOperationsRequestHandler.messageReceived(RecoveryTarget.java:379)  
> at  
> org.elasticsearch.indices.recovery.RecoveryTarget$PrepareForTranslogOperationsRequestHandler.messageReceived(RecoveryTarget.java:353)  
> at  
> org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:269)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:724)
> 
> Also the logstash console is filled with these so it is hard to debug  
> logstash (1.2.2) right now. Same for elastic 0.9.7. Can i fix this or can i  
> disable the message somehow?
> 
> Best,
> 
> Mike
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:05am UTC](https://discuss.elastic.co/t/codec-with-name-lucene45-does-not-exist/14493/3 "2017-07-06T02:05:56Z")

</div>


