Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6493

LuceneIndexProviderService.enableHybridIndexing=false results in NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.1
    • 1.7.5, 1.6.4, 1.8.0
    • lucene
    • None

    Description

      Setting org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProviderService.enableHybridIndexing=false on oak 1.6.1 results in the following exception, preventing the repository to start up properly:

      java.lang.NullPointerException: null
              at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:192)
              at org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.LuceneDocumentHolder.<init>(LuceneDocumentHolder.java:52)
              at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorProvider.getDocumentHolder(LuceneIndexEditorProvider.java:190)
              at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorProvider.getIndexEditor(LuceneIndexEditorProvider.java:139)
              at org.apache.jackrabbit.oak.plugins.index.CompositeIndexEditorProvider.getIndexEditor(CompositeIndexEditorProvider.java:74)
              at org.apache.jackrabbit.oak.spi.whiteboard.WhiteboardIndexEditorProvider.getIndexEditor(WhiteboardIndexEditorProvider.java:52)
              at org.apache.jackrabbit.oak.plugins.index.IndexUpdate.collectIndexEditors(IndexUpdate.java:240)
              at org.apache.jackrabbit.oak.plugins.index.IndexUpdate.enter(IndexUpdate.java:160)
              at org.apache.jackrabbit.oak.spi.commit.VisibleEditor.enter(VisibleEditor.java:57)
              at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:49)
              at org.apache.jackrabbit.oak.spi.commit.EditorHook.processCommit(EditorHook.java:54)
              at org.apache.jackrabbit.oak.spi.commit.CompositeHook.processCommit(CompositeHook.java:61)
              at org.apache.jackrabbit.oak.segment.SegmentNodeStore$Commit.prepare(SegmentNodeStore.java:603)
              at org.apache.jackrabbit.oak.segment.SegmentNodeStore$Commit.optimisticMerge(SegmentNodeStore.java:634)
              at org.apache.jackrabbit.oak.segment.SegmentNodeStore$Commit.execute(SegmentNodeStore.java:690)
              at org.apache.jackrabbit.oak.segment.SegmentNodeStore.merge(SegmentNodeStore.java:334)
              at org.apache.jackrabbit.oak.spi.lifecycle.OakInitializer.initialize(OakInitializer.java:52)
              at org.apache.jackrabbit.oak.Oak.createNewContentRepository(Oak.java:636)
              at org.apache.jackrabbit.oak.Oak.createContentRepository(Oak.java:624)
              at org.apache.jackrabbit.oak.jcr.Jcr.createContentRepository(Jcr.java:386)

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            stefanegli Stefan Egli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: