question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SPI with name Lucene50 does not exist

See original GitHub issue

Won’t run :

An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names [es090, completion090, XBloomFilter]

config type: misc.direction: em

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jmmkcommented, Jun 23, 2016

@ozlerhakan You may need to add <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>

The Lucene codecs are in META-INF/services, and if you look at the Maven Shade docs:

JAR files providing implementations of some interfaces often ship with a META-INF/services/ directory that maps interfaces to their implementation classes for lookup by the service locator. To relocate the class names of these implementation classes, and to To merge multiple implementations of the same interface into one service entry, the ServicesResourceTransformer can be used

This allows it to combine the codecs from conflicting JARs instead of clobbering them.

Note: I did not run into this issue with Mongolastic, but I did on another project using ES. Possibly a difference in ES 2.3.1 and 2.3.3 JARs?

0reactions
ozlerhakancommented, Jun 24, 2016

Hi @jmmk ,

Thank you for informing me about it. I can probably add this option for the next release but I don’t remember whether I encountered such an error before ES 2.3.1, there are possibly slightly differences between two versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven packaging fail Lucene, SPI does not exist Exception
IllegalArgumentException : An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist.
Read more >
[LDEV-762] Lucene 5.2.1 initialization failed - Lucee
Message: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this ......
Read more >
Plugin issue with SPI and classpath - Elastic Discuss
PostingsFormat with name 'Siren10AFor' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath.
Read more >
An SPI class of type org.apache.lucene.codecs ... - 博客园
PostingsFormat with name 'Lucene50' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath.
Read more >
"java.lang.IllegalArgumentException\: Could not load codec ...
IllegalArgumentException: An SPI class of type > org.apache.lucene.codecs.Codec with name 'Lucene60' does not exist. You > need to add the corresponding JAR ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found