Could you please open an issue? Can you also check if it still happens on main branch with Lucene 9.0 and Gradle as build system?
----- Uwe Schindler Achterdiek 19, D-28357 Bremen https://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: xiaoshi <xiaoshi_2...@163.com> > Sent: Thursday, August 19, 2021 5:43 AM > To: java-user@lucene.apache.org > Subject: Failed to execute Ant run-task command > > Hello: > > When I running ant run-task command, the default thread name is main not > ParallelTaskThread, > StringIndexOutOfBoundsException error is thrown. > > Here is the stack error: > > [java] #################### > [java] ### D O N E !!! ### > [java] #################### > [java] Error: cannot execute the algorithm! String index out of range: -15 > [java] java.lang.StringIndexOutOfBoundsException: String index out of range: - > 15 > [java] at java.lang.String.substring(String.java:1967) > [java] at > org.apache.lucene.benchmark.byTask.feeds.ReutersContentSource.getNextDoc > Data(ReutersContentSource.java:120) > [java] at > org.apache.lucene.benchmark.byTask.feeds.DocMaker.makeDocument(DocMak > er.java:371) > [java] at > org.apache.lucene.benchmark.byTask.tasks.AddDocTask.setup(AddDocTask.java > :52) > [java] at > org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTa > sk.java:134) > [java] at > org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSe > quence.java:198) > [java] at > org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequenc > e.java:139) > [java] at > org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTa > sk.java:146) > [java] at > org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSe > quence.java:198) > [java] at > org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequenc > e.java:139) > [java] at > org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTa > sk.java:146) > [java] at > org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSe > quence.java:198) > [java] at > org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequenc > e.java:139) > [java] at > org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTa > sk.java:146) > [java] at > org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doSerialTasks(TaskSe > quence.java:198) > [java] at > org.apache.lucene.benchmark.byTask.tasks.TaskSequence.doLogic(TaskSequenc > e.java:139) > [java] at > org.apache.lucene.benchmark.byTask.tasks.PerfTask.runAndMaybeStats(PerfTa > sk.java:146) > [java] at > org.apache.lucene.benchmark.byTask.utils.Algorithm.execute(Algorithm.java:33 > 2) > [java] at > org.apache.lucene.benchmark.byTask.Benchmark.execute(Benchmark.java:77) > [java] at > org.apache.lucene.benchmark.byTask.Benchmark.exec(Benchmark.java:121) > [java] at > org.apache.lucene.benchmark.byTask.Benchmark.main(Benchmark.java:85) > > > > > I submitted a pull request (GitHub Pull Request #2556) to fix this issue, can > someone please to see if it needs to be fixed? > I submitted an issues in jira : https://issues.apache.org/jira/browse/LUCENE- > 10051 > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org