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

NullPointerException from Tika if SupportedMediaType is null in LuceneIndexEditorContext

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.2, 1.4
    • Component/s: lucene
    • Labels:
      None

      Description

      Tika Parser tested with is 1.7, poi version 3.11.

      Related to OAK-2468 ; can we do a fix like this https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java#L935

      Stacktrace ------

      24.06.2015 11:01:45.536 ERROR [pool-7-thread-2] org.apache.sling.commons.scheduler.impl.QuartzScheduler Exception during job execution of org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate@73cf679b : null
      java.lang.NullPointerException: null
      at org.apache.tika.parser.ocr.TesseractOCRParser.getSupportedTypes(TesseractOCRParser.java:89)
      at org.apache.tika.parser.CompositeParser.getParsers(CompositeParser.java:81)
      at org.apache.tika.parser.DefaultParser.getParsers(DefaultParser.java:95)
      at org.apache.tika.parser.CompositeParser.getSupportedTypes(CompositeParser.java:229)
      at org.apache.tika.parser.DefaultParser.getParsers(DefaultParser.java:104)
      at org.apache.tika.parser.CompositeParser.getSupportedTypes(CompositeParser.java:229)
      at org.apache.tika.parser.CompositeParser.getParsers(CompositeParser.java:81)
      at org.apache.tika.parser.CompositeParser.getSupportedTypes(CompositeParser.java:229)
      at org.apache.tika.parser.CompositeParser.getParsers(CompositeParser.java:81)
      at org.apache.tika.parser.CompositeParser.getSupportedTypes(CompositeParser.java:229)
      at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorContext.isSupportedMediaType(LuceneIndexEditorContext.java:259)
      at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.isSupportedMediaType(LuceneIndexEditor.java:802)
      at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.newBinary(LuceneIndexEditor.java:525)
      at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.indexProperty(LuceneIndexEditor.java:393)
      at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.makeDocument(LuceneIndexEditor.java:330)
      at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.addOrUpdate(LuceneIndexEditor.java:287)
      at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor.leave(LuceneIndexEditor.java:191)
      at org.apache.jackrabbit.oak.spi.commit.CompositeEditor.leave(CompositeEditor.java:74)
      at org.apache.jackrabbit.oak.spi.commit.VisibleEditor.leave(VisibleEditor.java:63)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:130)
      at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:434)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:125)
      at org.apache.jackrabbit.oak.plugins.memory.EmptyNodeState.compareAgainstEmptyState(EmptyNodeState.java:161)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:434)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeAdded(EditorDiff.java:125)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:576)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:418)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:531)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:418)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:487)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compareBranch(MapRecord.java:565)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:470)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:418)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:418)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:418)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:418)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.childNodeChanged(EditorDiff.java:148)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord$2.childNodeChanged(MapRecord.java:403)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:487)
      at org.apache.jackrabbit.oak.plugins.segment.MapRecord.compare(MapRecord.java:394)
      at org.apache.jackrabbit.oak.plugins.segment.SegmentNodeState.compareAgainstBaseState(SegmentNodeState.java:583)
      at org.apache.jackrabbit.oak.spi.commit.EditorDiff.process(EditorDiff.java:52)
      at org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.updateIndex(AsyncIndexUpdate.java:384)
      at org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate.run(AsyncIndexUpdate.java:320)
      at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:105)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            • Assignee:
              amitjain Amit Jain
              Reporter:
              ashokpanghal Ashok Kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: