You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2012/12/11 13:37:21 UTC

[jira] [Commented] (JCR-3481) NullPointerException in DescendantSelfAxisScorer#nextDoc

    [ https://issues.apache.org/jira/browse/JCR-3481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13528919#comment-13528919 ] 

Marcel Reutegger commented on JCR-3481:
---------------------------------------

bq. Any ideas on what could cause this?

Previous versions of Lucene always returned a Scorer for Weight.scorer(). The version used in Jackrabbit 2.4.2 is Lucene 3.0.3, which may return null:
http://lucene.apache.org/core/old_versioned_docs/versions/3_0_3/api/core/org/apache/lucene/search/Weight.html#scorer%28org.apache.lucene.index.IndexReader,%20boolean,%20boolean%29

I guess some of the Jackrabbit classes still assume a non-null return value.
                
> NullPointerException in DescendantSelfAxisScorer#nextDoc
> --------------------------------------------------------
>
>                 Key: JCR-3481
>                 URL: https://issues.apache.org/jira/browse/JCR-3481
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.4.2
>         Environment: Magnolia CMS 4.4.9-jr24, Jackrabbit 2.4.2, Lucene 3.0.3, XPath
>            Reporter: Edgar Vonk
>         Attachments: error-log.txt
>
>
> For certain XPath search queries we get nullpointerexceptions in the DescendantSelfAxisScorer#nextDoc method because the 'subScorer' var is null.
> It seems other people have the issue as well:
> http://jackrabbit.510166.n4.nabble.com/JCR-SQL2-query-NullPointerException-in-DescendantSelfAxisQuery-td4657009.html
> It seems a bit arbitrary when it occurs. It seems to occur only when we search using certain short search terms. Also it occurs on stem words when we configure to use a different Lucene analyzer in Jackrabbit (e.g. the DutchAnalyzer and searching on 'een' or 'het').
> We use a custom Jackrabbit indexing-configuration.xml but I even tried without using a indexing-configuration and also then the problem occurs. 
> Any ideas on what could cause this?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira