Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Andrii Salamatin
Andrii SalamatinPriority
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 25 February 2016 at 14:40
Updated 13 July 2016 at 08:30
Resolved 26 February 2016 at 15:57
Getting error when trying to create Lucene 5 java class. Same code works fine in 4.5.2.
Error after first execution:
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 SPI to your classpath. The current classpath supports the following names: []
StackTrace: lucee.runtime.exp.NativeException: 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 SPI to your classpath. The current classpath supports the following names: [] at org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:109) at org.apache.lucene.codecs.Codec$Holder.<clinit>(Codec.java:60) at org.apache.lucene.codecs.Codec.getDefault(Codec.java:140) ...
Error after second execution:
Message: Could not initialize class org.apache.lucene.codecs.Codec$Holder
StackTrace: lucee.runtime.exp.NativeException: Could not initialize class org.apache.lucene.codecs.Codec$Holder at org.apache.lucene.codecs.Codec.getDefault(Codec.java:140) at org.apache.lucene.index.LiveIndexWriterConfig.<init>(LiveIndexWriterConfig.java:115) at org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:163) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ...
Code to reproduce: