Hi,

 

I was trying to do a JCR SQL2 query…

 

SELECT * FROM [nt:xxxxNode] AS document WHERE ISDESCENDANTNODE(document, '/thexxxxRoot/07cc41fc-a221-4fd7-8d2b-0cc8a8719b25') AND ( CONTAINS (document.documentId, '378d57e4-0036-4537-bdd4-305e62aa9a67') AND  CONTAINS (document.libraryVersion, '1'))

 

… and got this exception…

 

java.lang.NullPointerException

                at org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$DescendantSelfAxisScorer.nextDoc(DescendantSelfAxisQuery.java:474)

                at org.apache.lucene.search.Scorer.score(Scorer.java:61)

                at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:212)

                at org.apache.lucene.search.Searcher.search(Searcher.java:67)

                at org.apache.jackrabbit.core.query.lucene.SortedLuceneQueryHits.getHits(SortedLuceneQueryHits.java:156)

                at org.apache.jackrabbit.core.query.lucene.SortedLuceneQueryHits.<init>(SortedLuceneQueryHits.java:113)

                at org.apache.jackrabbit.core.query.lucene.JackrabbitIndexSearcher.evaluate(JackrabbitIndexSearcher.java:109)

                at org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.execute(LuceneQueryFactory.java:219)

                at org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEngine.java:465)

                at org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEngine.java:126)

                at org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEngine.java:115)

                at org.apache.jackrabbit.core.query.QueryObjectModelImpl$2.perform(QueryObjectModelImpl.java:129)

                at org.apache.jackrabbit.core.query.QueryObjectModelImpl$2.perform(QueryObjectModelImpl.java:124)

                at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)

                at org.apache.jackrabbit.core.query.QueryObjectModelImpl.execute(QueryObjectModelImpl.java:123)

This happened in 2.4.3 so I tried 2.5.2 and still got it.

 

Is there a workaround?

 

Rob.

 

Ps. Should exceptions be posted to dev or user?