[
https://issues.apache.org/jira/browse/OAK-10095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17682813#comment-17682813
]
Nitin Gupta commented on OAK-10095:
-----------------------------------
trunk :
https://github.com/apache/jackrabbit-oak/commit/5671cdce1d1f9dce48546ef27818153f89d2e9bd
> NullPointerException in FieldFactory.dateToLong
> -----------------------------------------------
>
> Key: OAK-10095
> URL: https://issues.apache.org/jira/browse/OAK-10095
> Project: Jackrabbit Oak
> Issue Type: Bug
> Reporter: Nitin Gupta
> Assignee: Nitin Gupta
> Priority: Major
>
> 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.
> {noformat}
> 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)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)