java.lang.IllegalStateException: abort() can only be called when IndexWriter was opened with autoCommit=false

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Sonatype JIRA by John Yeary, 1 year ago
abort() can only be called when IndexWriter was opened with autoCommit=false
via Sonatype JIRA by Pat Podenski, 1 year ago
abort() can only be called when IndexWriter was opened with autoCommit=false
via Sonatype JIRA by Brian Demers, 1 year ago
abort() can only be called when IndexWriter was opened with autoCommit=false
via Sonatype JIRA by Brian Demers, 1 year ago
abort() can only be called when IndexWriter was opened with autoCommit=false
java.lang.IllegalStateException: abort() can only be called when IndexWriter was opened with autoCommit=false
at org.apache.lucene.index.IndexWriter.abort(IndexWriter.java:2009)
at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1175)
at org.sonatype.nexus.index.context.NexusIndexWriter.close(NexusIndexWriter.java:48)
at org.sonatype.nexus.index.context.DefaultIndexingContext.closeReaders(DefaultIndexingContext.java:637)
at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:609)
at org.sonatype.nexus.index.context.DefaultIndexingContext.merge(DefaultIndexingContext.java:545)
at org.sonatype.nexus.index.DefaultIndexerManager.mergeContexts(DefaultIndexerManager.java:353)
at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryIndex(DefaultIndexerManager.java:1195)
at org.sonatype.nexus.index.DefaultIndexerManager.publishRepositoryGroupIndex(DefaultIndexerManager.java:1162)
at org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:50)
at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:338)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:172)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
at java.lang.Thread.run(Thread.java:613)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.