From dev-return-36612-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Thu Nov 22 14:44:59 2012 Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C38D8E928 for ; Thu, 22 Nov 2012 14:44:59 +0000 (UTC) Received: (qmail 63896 invoked by uid 500); 22 Nov 2012 14:44:58 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 63657 invoked by uid 500); 22 Nov 2012 14:44:58 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 63619 invoked by uid 99); 22 Nov 2012 14:44:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 14:44:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.1.211.22] (HELO smtp-gw.artificial-solutions.com) (194.1.211.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 14:44:49 +0000 Received: from webmail.artificial-solutions.com (unknown [192.168.106.11]) by smtp-gw.artificial-solutions.com (Postfix) with ESMTP id 9B6F54FC7; Thu, 22 Nov 2012 15:44:28 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CDC8BF.DFA2CDA1" Subject: JCR SQL2 query - NullPointerException in DescendantSelfAxisQuery Date: Thu, 22 Nov 2012 15:42:08 +0100 Message-ID: <21F0E9E7ED2D894F8385A92C80336BF30AD77B52@arti-sr-28.artificial-solutions.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JCR SQL2 query - NullPointerException in DescendantSelfAxisQuery Thread-Index: Ac3IvsTxeXnqaficQVeX4KJmopMEIw== From: "Robert Haycock" To: , X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01CDC8BF.DFA2CDA1 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I was trying to do a JCR SQL2 query... =20 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')) =20 ... and got this exception... =20 java.lang.NullPointerException at org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$Descenda ntSelfAxisScorer.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(So rtedLuceneQueryHits.java:156) at org.apache.jackrabbit.core.query.lucene.SortedLuceneQueryHits.(Sor tedLuceneQueryHits.java:113) at org.apache.jackrabbit.core.query.lucene.JackrabbitIndexSearcher.evaluate (JackrabbitIndexSearcher.java:109) at org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.execute(Lucen eQueryFactory.java:219) at org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEn gine.java:465) at org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEn gine.java:126) at org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEn gine.java:115) at org.apache.jackrabbit.core.query.QueryObjectModelImpl$2.perform(QueryObj ectModelImpl.java:129) at org.apache.jackrabbit.core.query.QueryObjectModelImpl$2.perform(QueryObj ectModelImpl.java:124) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.jav a:216) at org.apache.jackrabbit.core.query.QueryObjectModelImpl.execute(QueryObjec tModelImpl.java:123) This happened in 2.4.3 so I tried 2.5.2 and still got it. =20 Is there a workaround? =20 Rob. =20 Ps. Should exceptions be posted to dev or user? ------_=_NextPart_001_01CDC8BF.DFA2CDA1 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

         &= nbsp;      at = org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$Descendan= tSelfAxisScorer.nextDoc(DescendantSelfAxisQuery.java:474)

<= p = class=3DMsoNormal>         &= nbsp;      at = org.apache.lucene.search.Scorer.score(Scorer.java:61)

         &= nbsp;      at = org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:212)

         &= nbsp;      at = org.apache.lucene.search.Searcher.search(Searcher.java:67)

=

         &= nbsp;      at = org.apache.jackrabbit.core.query.lucene.SortedLuceneQueryHits.getHits(Sor= tedLuceneQueryHits.java:156)

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

         &= nbsp;      at = org.apache.jackrabbit.core.query.lucene.JackrabbitIndexSearcher.evaluate(= JackrabbitIndexSearcher.java:109)

         &= nbsp;      at = org.apache.jackrabbit.core.query.lucene.LuceneQueryFactory.execute(Lucene= QueryFactory.java:219)

         &= nbsp;      at = org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEng= ine.java:465)

         &= nbsp;      at = org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEng= ine.java:126)

         &= nbsp;      at = org.apache.jackrabbit.core.query.lucene.join.QueryEngine.execute(QueryEng= ine.java:115)

         &= nbsp;      at = org.apache.jackrabbit.core.query.QueryObjectModelImpl$2.perform(QueryObje= ctModelImpl.java:129)

         &= nbsp;      at = org.apache.jackrabbit.core.query.QueryObjectModelImpl$2.perform(QueryObje= ctModelImpl.java:124)

         &= nbsp;      at = org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java= :216)

         &= nbsp;      at = org.apache.jackrabbit.core.query.QueryObjectModelImpl.execute(QueryObject= ModelImpl.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?

------_=_NextPart_001_01CDC8BF.DFA2CDA1--