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

NullPointerException in FieldFactory.dateToLong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.50.0
    • None
    • None

    Description

      We have the following warning in the log file, with a NullPointerException. The NPE should not occur in this case. It doesn't seem to cause very big issue, but it seems to confuse people and then we have to investigate into the issue maybe because of that.

      jcr:content/metadata/... of type LONG to type DATE for path /content/...
      java.lang.NullPointerException: null
      	at org.apache.jackrabbit.oak.plugins.index.lucene.FieldFactory.dateToLong(FieldFactory.java:189)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneDocumentMaker.indexTypeOrderedFields(LuceneDocumentMaker.java:282)
      	at org.apache.jackrabbit.oak.plugins.index.lucene.LuceneDocumentMaker.indexTypeOrderedFields(LuceneDocumentMaker.java:55)
      	at org.apache.jackrabbit.oak.plugins.index.search.spi.editor.FulltextDocumentMaker.addTypedOrderedFields(FulltextDocumentMaker.java:384)
      	at org.apache.jackrabbit.oak.plugins.index.search.spi.editor.FulltextDocumentMaker.access$100(FulltextDocumentMaker.java:58)
      
      

      Attachments

        Issue Links

          Activity

            People

              ngupta Nitin Gupta
              ngupta Nitin Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: