org.neo4j.graphdb.TransactionFailureException: Transaction was marked as successful, but unable to commit transaction so rolled back.

Stack Overflow | NeoMan | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    neo4j : transaction commit failure from a runnable jar file?

    Stack Overflow | 6 months ago | NeoMan
    org.neo4j.graphdb.TransactionFailureException: Transaction was marked as successful, but unable to commit transaction so rolled back.

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'BlockTreeOrds' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene50]

      at org.apache.lucene.util.NamedSPILoader.lookup()
    2. Lucene
      ReferenceManager.maybeRefreshBlocking
      1. org.apache.lucene.util.NamedSPILoader.lookup(NamedSPILoader.java:114)
      2. org.apache.lucene.codecs.PostingsFormat.forName(PostingsFormat.java:112)
      3. org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.<init>(PerFieldPostingsFormat.java:258)
      4. org.apache.lucene.codecs.perfield.PerFieldPostingsFormat.fieldsProducer(PerFieldPostingsFormat.java:341)
      5. org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:104)
      6. org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:65)
      7. org.apache.lucene.index.ReadersAndUpdates.getReader(ReadersAndUpdates.java:145)
      8. org.apache.lucene.index.ReadersAndUpdates.getReadOnlyClone(ReadersAndUpdates.java:197)
      9. org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:99)
      10. org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:435)
      11. org.apache.lucene.index.StandardDirectoryReader.doOpenFromWriter(StandardDirectoryReader.java:286)
      12. org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:261)
      13. org.apache.lucene.index.StandardDirectoryReader.doOpenIfChanged(StandardDirectoryReader.java:251)
      14. org.apache.lucene.index.DirectoryReader.openIfChanged(DirectoryReader.java:137)
      15. org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:154)
      16. org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:58)
      17. org.apache.lucene.search.ReferenceManager.doMaybeRefresh(ReferenceManager.java:176)
      18. org.apache.lucene.search.ReferenceManager.maybeRefreshBlocking(ReferenceManager.java:253)
      18 frames
    3. org.neo4j.kernel
      IndexPartition.maybeRefreshBlocking
      1. org.neo4j.kernel.api.impl.index.partition.IndexPartition.maybeRefreshBlocking(IndexPartition.java:87)
      1 frame
    4. Neo4j - Lucene Index
      AbstractLuceneIndex.maybeRefreshPartition
      1. org.neo4j.kernel.api.impl.index.AbstractLuceneIndex.maybeRefreshPartition(AbstractLuceneIndex.java:334)
      1 frame
    5. Java RT
      ReferencePipeline$Head.forEach
      1. java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
      2. java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
      3. java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
      4. java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
      5. java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
      6. java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      7. java.util.concurrent.ForkJoinTask.doInvoke(ForkJoinTask.java:401)
      8. java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:734)
      9. java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
      10. java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
      11. java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
      12. java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
      13. java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
      13 frames
    6. Neo4j - Lucene Index
      AbstractLuceneIndex.maybeRefreshBlocking
      1. org.neo4j.kernel.api.impl.index.AbstractLuceneIndex.maybeRefreshBlocking(AbstractLuceneIndex.java:318)
      1 frame
    7. org.neo4j.kernel
      PartitionedLuceneLabelScanWriter.close
      1. org.neo4j.kernel.api.impl.labelscan.writer.PartitionedLuceneLabelScanWriter.close(PartitionedLuceneLabelScanWriter.java:101)
      1 frame
    8. Neo4j - Graph Database Kernel
      LabelUpdateWork.apply
      1. org.neo4j.kernel.impl.transaction.command.LabelUpdateWork.apply(LabelUpdateWork.java:59)
      2. org.neo4j.kernel.impl.transaction.command.LabelUpdateWork.apply(LabelUpdateWork.java:33)
      2 frames
    9. org.neo4j.concurrent
      WorkSync.apply
      1. org.neo4j.concurrent.WorkSync.doSynchronizedWork(WorkSync.java:121)
      2. org.neo4j.concurrent.WorkSync.apply(WorkSync.java:90)
      2 frames
    10. Neo4j - Graph Database Kernel
      BatchTransactionApplierFacade.close
      1. org.neo4j.kernel.impl.transaction.command.IndexBatchTransactionApplier.close(IndexBatchTransactionApplier.java:105)
      2. org.neo4j.kernel.impl.api.BatchTransactionApplierFacade.close(BatchTransactionApplierFacade.java:70)
      2 frames
    11. org.neo4j.kernel
      RecordStorageEngine.apply
      1. org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.apply(RecordStorageEngine.java:344)
      1 frame
    12. Neo4j - Graph Database Kernel
      TopLevelTransaction.close
      1. org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess.applyToStore(TransactionRepresentationCommitProcess.java:78)
      2. org.neo4j.kernel.impl.api.TransactionRepresentationCommitProcess.commit(TransactionRepresentationCommitProcess.java:51)
      3. org.neo4j.kernel.impl.api.KernelTransactionImplementation.commit(KernelTransactionImplementation.java:470)
      4. org.neo4j.kernel.impl.api.KernelTransactionImplementation.close(KernelTransactionImplementation.java:386)
      5. org.neo4j.kernel.impl.coreapi.TopLevelTransaction.close(TopLevelTransaction.java:76)
      5 frames
    13. graphdb.service
      CypherCommand.BuildNodes
      1. graphdb.service.CypherCommand.BuildNodes(CypherCommand.java:168)
      1 frame
    14. importdb.service
      FlowController.Execute
      1. importdb.service.BatchNodeCreator.BeginSingleThread(BatchNodeCreator.java:88)
      2. importdb.service.FlowController.Execute(FlowController.java:59)
      2 frames
    15. main.route
      NeoMain.main
      1. main.route.NeoMain.main(NeoMain.java:41)
      1 frame