Thanks for the support. I didn't understand what was wrong. But I
solved the problem by building the entire Lucene 10 from the source, and
then, Luke is working.

I will also try this solution.

Thanks,
Doi.

On Thu, Sep 25, 2025 at 1:12 PM Uwe Schindler <[email protected]> wrote:

> Hi,
>
> are you starting Luke with the provided startup script. To me it looks
> like there's a service provider file in classpath that instructs Lucene
> to load a codec (Lucene53) which should not be there. Lucene 10 does not
> ship with a Lucene 5.3 codec, so it looks like you have some service
> provider file referring to it on classpath.
>
> Please make sure your classpath is empty and you start Luke with the
> official launcher script.
>
> Uwe
>
> Am 24.09.2025 um 19:53 schrieb Dwaipayan Roy:
> > Dear folks,
> >
> > I am trying to shift from Lucene 8.8 to 10.0. To start with, I have made
> a
> > small index with 10. But I can't open it using the Luke 10 (comes
> together
> > with Lucene 10). I am using java 21.0.8. Following error is what I am
> > getting:
> > SEVERE: Error opening index or directory
> > java.lang.NoClassDefFoundError: Could not initialize class
> > org.apache.lucene.codecs.Codec$Holder
> > at [email protected]
> > /org.apache.lucene.codecs.Codec.forName(Codec.java:118)
> > at [email protected]
> > /org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:503)
> > at [email protected]
> >
> /org.apache.lucene.index.SegmentInfos.parseSegmentInfos(SegmentInfos.java:396)
> > at [email protected]
> > /org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:359)
> > at [email protected]
> > /org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:295)
> > at [email protected]
> >
> /org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:88)
> > at [email protected]
> >
> /org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:77)
> > at [email protected]
> >
> /org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:807)
> > at [email protected]
> >
> /org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:110)
> > at [email protected]
> >
> /org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:67)
> > at [email protected]
> > /org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:60)
> > at [email protected]
> >
> /org.apache.lucene.luke.models.util.IndexUtils$1.preVisitDirectory(IndexUtils.java:106)
> > at [email protected]
> >
> /org.apache.lucene.luke.models.util.IndexUtils$1.preVisitDirectory(IndexUtils.java:100)
> > at java.base/java.nio.file.Files.walkFileTree(Files.java:2805)
> > at java.base/java.nio.file.Files.walkFileTree(Files.java:2870)
> > at [email protected]
> >
> /org.apache.lucene.luke.models.util.IndexUtils.openIndex(IndexUtils.java:98)
> > at [email protected]
> > /org.apache.lucene.luke.app.IndexHandler.open(IndexHandler.java:77)
> > at [email protected]
> > /org.apache.lucene.luke.app
> .desktop.components.dialog.menubar.OpenIndexDialogFactory$ListenerFunctions.openIndexOrDirectory(OpenIndexDialogFactory.java:331)
> > at
> >
> java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
> > at
> >
> java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)
> > at
> >
> java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)
> > at
> >
> java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
> > at
> >
> java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
> > at java.desktop/java.awt.Component.processMouseEvent(Component.java:6621)
> > at
> >
> java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)
> > at java.desktop/java.awt.Component.processEvent(Component.java:6386)
> > at java.desktop/java.awt.Container.processEvent(Container.java:2266)
> > at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
> > at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
> > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
> > at
> >
> java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
> > at
> >
> java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
> > at
> >
> java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
> > at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
> > at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
> > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
> > at
> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
> > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
> > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
> > at
> >
> java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
> > at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
> > at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
> > at
> >
> java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
> > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
> > at
> >
> java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
> > at
> >
> java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
> > at
> >
> java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
> > at
> >
> java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
> > at
> >
> java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
> > at java.desktop/java.awt.Dialog.show(Dialog.java:1079)
> > at java.desktop/java.awt.Component.show(Component.java:1728)
> > at java.desktop/java.awt.Component.setVisible(Component.java:1675)
> > at java.desktop/java.awt.Window.setVisible(Window.java:1036)
> > at java.desktop/java.awt.Dialog.setVisible(Dialog.java:1015)
> > at [email protected]
> > /org.apache.lucene.luke.app
> .desktop.util.DialogOpener.open(DialogOpener.java:48)
> > at [email protected]
> > /org.apache.lucene.luke.app
> .desktop.util.DialogOpener.open(DialogOpener.java:36)
> > at [email protected]
> > /org.apache.lucene.luke.app
> .desktop.components.MenuBarProvider$ListenerFunctions.showOpenIndexDialog(MenuBarProvider.java:199)
> > at
> >
> java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
> > at
> >
> java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)
> > at
> >
> java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)
> > at
> >
> java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
> > at
> java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:374)
> > at
> >
> java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1029)
> > at
> >
> java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1073)
> > at java.desktop/java.awt.Component.processMouseEvent(Component.java:6621)
> > at
> >
> java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)
> > at java.desktop/java.awt.Component.processEvent(Component.java:6386)
> > at java.desktop/java.awt.Container.processEvent(Container.java:2266)
> > at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
> > at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
> > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
> > at
> >
> java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
> > at
> >
> java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
> > at
> >
> java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
> > at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
> > at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
> > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
> > at
> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
> > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
> > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
> > at
> >
> java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
> > at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
> > at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
> > at
> >
> java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
> > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
> > Suppressed: org.apache.lucene.index.CorruptIndexException: checksum
> passed
> > (fde68fc1). possibly transient resource issue, or a Lucene or JVM bug
> >
> (resource=BufferedChecksumIndexInput(MemorySegmentIndexInput(path="/home/dwaipayan/Dropbox/pylucene/movie_index/segments_1")))
> > at [email protected]
> > /org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:501)
> > at [email protected]
> > /org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:366)
> > ... 96 more
> > Caused by: java.lang.ExceptionInInitializerError: Exception
> > java.util.ServiceConfigurationError: org.apache.lucene.codecs.Codec:
> > org.apache.lucene.codecs.lucene53.Lucene53Codec Unable to get public
> no-arg
> > constructor [in thread "AWT-EventQueue-0"]
> > at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
> > at
> java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:679)
> > at
> >
> java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1240)
> > at
> >
> java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
> > at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
> > at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
> > at [email protected]
> > /org.apache.lucene.util.NamedSPILoader.reload(NamedSPILoader.java:68)
> > at [email protected]
> > /org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:52)
> > at [email protected]
> > /org.apache.lucene.util.NamedSPILoader.<init>(NamedSPILoader.java:38)
> > at [email protected]
> > /org.apache.lucene.codecs.Codec$Holder.<clinit>(Codec.java:45)
> > at [email protected]
> > /org.apache.lucene.codecs.Codec.forName(Codec.java:118)
> > at [email protected]
> > /org.apache.lucene.index.SegmentInfos.readCodec(SegmentInfos.java:503)
> > at [email protected]
> >
> /org.apache.lucene.index.SegmentInfos.parseSegmentInfos(SegmentInfos.java:396)
> > at [email protected]
> > /org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:359)
> > at [email protected]
> > /org.apache.lucene.index.SegmentInfos.readCommit(SegmentInfos.java:295)
> > at [email protected]
> >
> /org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:88)
> > at [email protected]
> >
> /org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:77)
> > at [email protected]
> >
> /org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:807)
> > at [email protected]
> >
> /org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:110)
> > at [email protected]
> >
> /org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:67)
> > at [email protected]
> > /org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:60)
> > at [email protected]
> >
> /org.apache.lucene.luke.models.util.IndexUtils$1.preVisitDirectory(IndexUtils.java:106)
> > at [email protected]
> >
> /org.apache.lucene.luke.models.util.IndexUtils$1.preVisitDirectory(IndexUtils.java:100)
> > at java.base/java.nio.file.Files.walkFileTree(Files.java:2805)
> > at java.base/java.nio.file.Files.walkFileTree(Files.java:2870)
> > at [email protected]
> >
> /org.apache.lucene.luke.models.util.IndexUtils.openIndex(IndexUtils.java:98)
> > at [email protected]
> > /org.apache.lucene.luke.app.IndexHandler.open(IndexHandler.java:77)
> > at [email protected]
> > /org.apache.lucene.luke.app
> .desktop.components.dialog.menubar.OpenIndexDialogFactory$ListenerFunctions.openIndexOrDirectory(OpenIndexDialogFactory.java:331)
> > at
> >
> java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
> > at
> >
> java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2314)
> > at
> >
> java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:407)
> > at
> >
> java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
> > at
> >
> java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
> > at java.desktop/java.awt.Component.processMouseEvent(Component.java:6621)
> > at
> >
> java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)
> > at java.desktop/java.awt.Component.processEvent(Component.java:6386)
> > at java.desktop/java.awt.Container.processEvent(Container.java:2266)
> > at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
> > at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
> > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
> > at
> >
> java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
> > at
> >
> java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
> > at
> >
> java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
> > at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
> > at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
> > at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
> > at
> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
> > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
> > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
> > at
> >
> java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
> > at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
> > at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
> > at
> >
> java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
> > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
> > at
> >
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
> > at
> >
> java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
> > at
> >
> java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
> > at
> >
> java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
> > at
> >
> java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
> > at
> >
> java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
> > at java.desktop/java.awt.Dialog.show(Dialog.java:1079)
> > at java.desktop/java.awt.Component.show(Component.java:1728)
> > at java.desktop/java.awt.Component.setVisible(Component.java:1675)
> > at java.desktop/java.awt.Window.setVisible(Window.java:1036)
> > at java.desktop/java.awt.Dialog.setVisible(Dialog.java:1015)
> > at [email protected]
> > /org.apache.lucene.luke.app
> .desktop.util.DialogOpener.open(DialogOpener.java:48)
> > at [email protected]
> > /org.apache.lucene.luke.app
> .desktop.util.DialogOpener.open(DialogOpener.java:36)
> > at [email protected]
> > /org.apache.lucene.luke.app
> .desktop.LukeMain.lambda$main$2(LukeMain.java:105)
> > at
> >
> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
> > at
> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
> > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
> > at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
> > at
> >
> java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
> > at
> >
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
> > at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
> > ... 6 more
> >
> > Please help.
> >
> > Dwaipayan.
> >
> >
> >
> --
> Uwe Schindler
> Achterdiek 19, D-28357 Bremen
> https://www.thetaphi.de
> eMail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

-- 
Dwaipayan Roy.

Reply via email to