java.util.concurrent.ExecutionException: java.lang.IllegalStateException: cannot close: prepareCommit was already called with no corresponding call to commit

GitHub | jgrzebyta | 5 months ago
  1. 0

    Lucene wrapped in SailRepository with multithreading gives error

    GitHub | 5 months ago | jgrzebyta
    java.util.concurrent.ExecutionException: java.lang.IllegalStateException: cannot close: prepareCommit was already called with no corresponding call to commit
  2. 0
  3. 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I enabled remote index downloads for 'central' (stock nexus.xml) task was created, but reindex failed jvm 1 | 2009-08-11 15:46:00 WARN - o.s.n.i.ComposableI~:lucene - Cannot fetch remote index for repository central jvm 1 | java.lang.IllegalStateException: abort() can only be called when IndexWriter was opened with autoCommit=false jvm 1 | at org.apache.lucene.index.IndexWriter.abort(IndexWriter.java:2009) jvm 1 | at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1175) jvm 1 | at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1154) jvm 1 | at org.sonatype.nexus.index.context.NexusIndexWriter.close(NexusIndexWriter.java:48) jvm 1 | at org.sonatype.nexus.index.context.IndexUtils.close(IndexUtils.java:371) jvm 1 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:520) jvm 1 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:220) jvm 1 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:135) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:846) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:716) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:691) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:580) jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:503) jvm 1 | at org.sonatype.nexus.index.ProxyIndexerManager.reindexRepository(ProxyIndexerManager.java:200) jvm 1 | at org.sonatype.nexus.tasks.ReindexTask.doRun(ReindexTask.java:54) jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:181) jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:339) jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) jvm 1 | at java.lang.Thread.run(Thread.java:637) jvm 1 | 2009-08-11 15:46:01 INFO - o.s.n.i.ComposableI~:lucene - Cascading merge of group indexes for group 'public', where repository 'central' is member. jvm 1 | 2009-08-11 15:46:01 INFO - o.s.n.i.ComposableI~:lucene - Publishing best index for repository central jvm 1 | 2009-08-11 15:46:01 INFO - o.s.n.i.p.IndexPack~:default - Unable to read properties file, will force index regeneration jvm 1 | 2009-08-11 15:46:01 INFO - o.s.n.f.FeedRecorder:default - Reindexing repository Maven Central from path / and below. : Process started on Tue Aug 11 15:43:18 EDT 2009, finished successfully on Tue Aug 11 15:46:01 EDT 2009

    Sonatype JIRA | 7 years ago | Brian Demers
    java.lang.IllegalStateException: abort() can only be called when IndexWriter was opened with autoCommit=false
  6. 0

    The following stack trace results from a scheduled task which is supposed to index the Public Repositories Group. ---------------------------------------------------------------------------------- Task Name: publish public repo index 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) ----------------------------------------------------------------------------------

    Sonatype JIRA | 7 years ago | Pat Podenski
    java.lang.IllegalStateException: abort() can only be called when IndexWriter was opened with autoCommit=false

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      cannot close: prepareCommit was already called with no corresponding call to commit

      at org.apache.lucene.index.IndexWriter.shutdown()
    2. Lucene
      IndexWriter.close
      1. org.apache.lucene.index.IndexWriter.shutdown(IndexWriter.java:960)
      2. org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1015)
      2 frames
    3. org.eclipse.rdf4j
      AbstractRepository.shutDown
      1. org.eclipse.rdf4j.sail.lucene.LuceneIndex.shutDown(LuceneIndex.java:322)
      2. org.eclipse.rdf4j.sail.lucene.LuceneSail.shutDown(LuceneSail.java:291)
      3. org.eclipse.rdf4j.repository.sail.SailRepository.shutDownInternal(SailRepository.java:169)
      4. org.eclipse.rdf4j.repository.base.AbstractRepository.shutDown(AbstractRepository.java:45)
      4 frames
    4. triple
      loader$eval939$fn__940.invoke
      1. triple.loader$eval939$fn__940.invoke(loader.clj:98)
      1 frame
    5. Clojure
      MultiFn.invoke
      1. clojure.lang.MultiFn.invoke(MultiFn.java:238)
      1 frame
    6. triple
      loader$eval935$fn__936.invoke
      1. triple.loader$eval935$fn__936.invoke(loader.clj:88)
      1 frame
    7. Clojure
      MultiFn.invoke
      1. clojure.lang.MultiFn.invoke(MultiFn.java:238)
      1 frame
    8. Unknown
      sparql$load_multidata$fn__1094$fn__1095.invoke
      1. sparql$load_multidata$fn__1094$fn__1095.invoke(sparql.clj:102)
      1 frame
    9. Clojure
      AFn.call
      1. clojure.lang.AFn.call(AFn.java:18)
      1 frame
    10. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames