[ https://issues.apache.org/jira/browse/OAK-8597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16923441#comment-16923441 ]
Vikas Saurabh commented on OAK-8597: ------------------------------------ The issue is caused by oak-lucene extending from oak-search led to {{OakDirectory}} requiring {{LuceneIndexDefinition}} while {{LuceneCommand.groovy}} kept on passing {{IndexDefinition}} instead. > lc command is unable to construct OakDirectory > ---------------------------------------------- > > Key: OAK-8597 > URL: https://issues.apache.org/jira/browse/OAK-8597 > Project: Jackrabbit Oak > Issue Type: Bug > Components: run > Affects Versions: 1.10.0, 1.12.0 > Reporter: Jorge Flórez > Assignee: Vikas Saurabh > Priority: Major > > When extracting index info from a repository stored in MongoDB the following > exception is thrown > C:\Users\Jorge Eduardo\Desktop>java -jar oak-run-1.12.0.jar console > mongodb://localhost:37017/rRepo4 > Apache Jackrabbit Oak 1.12.0 > Repository connected in read-only mode. Use '--read-write' for write > operations > Jackrabbit Oak Shell (Apache Jackrabbit Oak 1.12.0, JVM: 1.8.0_191) > Type ':help' or ':h' for help. > ----------------------------------------------------------------------------------------------------------------------- > /> lc dump "C:\Users\Jorge Eduardo\Desktop\lc" /oak:index/LuceneFullText > ERROR groovy.lang.GroovyRuntimeException: > Could not find matching constructor for: > org.apache.jackrabbit.oak.plugins.index.lucene.directory.OakDirectory(org.apache.jackrabbit.oak.spi.state.ReadOnlyBuilder, > org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition, > java.lang.Boolean) > at org.apache.jackrabbit.oak.console.commands.LuceneCommand.getDirectory > (LuceneCommand.groovy:132) > at org.apache.jackrabbit.oak.console.commands.LuceneCommand$_closure2.doCall > (LuceneCommand.groovy:77) > at java_lang_Runnable$run.call (Unknown Source) > at org.apache.jackrabbit.oak.console.GroovyConsole$OakSh.run > (GroovyConsole.groovy:265) > at org.apache.jackrabbit.oak.console.GroovyConsole.run > (GroovyConsole.groovy:74) > at org.apache.jackrabbit.oak.console.Console.main (Console.java:74) > at org.apache.jackrabbit.oak.run.ConsoleCommand.execute > (ConsoleCommand.java:27) > at org.apache.jackrabbit.oak.run.Main.main (Main.java:49) > The same exception is thrown if I try to dump the index. -- This message was sent by Atlassian Jira (v8.3.2#803003)