java.lang.IllegalStateException

abort() can only be called when IndexWriter was opened with autoCommit=false

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web9921

  • via Sonatype JIRA by Pat Podenski, 10 months 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, 11 months ago
    abort() can only be called when IndexWriter was opened with autoCommit=false
  • Stack trace

    • 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.apache.lucene.index.IndexWriter.close(IndexWriter.java:1154) 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.index.ProxyIndexerManager.publishRepositoryGroupIndex(ProxyIndexerManager.java:173) at org.sonatype.nexus.tasks.PublishIndexesTask.doRun(PublishIndexesTask.java:50) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:192) 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.