Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 53956 invoked from network); 30 Oct 2008 17:01:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2008 17:01:38 -0000 Received: (qmail 14270 invoked by uid 500); 30 Oct 2008 17:01:42 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 14247 invoked by uid 500); 30 Oct 2008 17:01:42 -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 14236 invoked by uid 99); 30 Oct 2008 17:01:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 10:01:42 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 17:00:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 825CE234C25D for ; Thu, 30 Oct 2008 10:00:46 -0700 (PDT) Message-ID: <1865242697.1225386046532.JavaMail.jira@brutus> Date: Thu, 30 Oct 2008 10:00:46 -0700 (PDT) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-1573) Lucene Query Exception: 'attempt to access a deleted document' In-Reply-To: <452247851.1210082935950.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger resolved JCR-1573. ----------------------------------- Resolution: Fixed Fix Version/s: 1.6.0 Fixed in revision: 709207 The CombinedIndexReader in SearchIndex did not add the offset of the sub reader when resolving a ForeignSegmentDocId. Jukka, can you please merge this fix into the 1.5 branch? Thanks. > Lucene Query Exception: 'attempt to access a deleted document' > -------------------------------------------------------------- > > Key: JCR-1573 > URL: https://issues.apache.org/jira/browse/JCR-1573 > Project: Jackrabbit > Issue Type: Bug > Components: jackrabbit-core, query > Affects Versions: core 1.4.2 > Environment: Windows XP, PostgreSQL database, Spring, Tomcat > Reporter: David McKitterick > Fix For: 1.6.0 > > Attachments: jackrabbit-repo.xml > > > Hi, > I am getting an exception when trying to execute a query through the (Spring) JcrTemplate class....using the following code: > QueryManager qMgr = session.getWorkspace().getQueryManager(); > QueryResult result = qMgr.createQuery(xpathQuery, Query.XPATH ).execute(); > The exception is thrown at the second line and is as follows: > [DEBUG] << "[0x9]at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:113)[\n]" > [DEBUG] << "[0x9]at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:74)[\n]" > [DEBUG] << "[0x9]at org.apache.lucene.search.Hits.<init>(Hits.java:53)[\n]" > [DEBUG] << "[0x9]at org.apache.lucene.search.Searcher.search(Searcher.java:46)[\n]" > [DEBUG] << "[0x9]at org.apache.lucene.search.Searcher.search(Searcher.java:38)[\n]" > [DEBUG] << "[0x9]at org.apache.jackrabbit.core.query.lucene.SearchIndex.executeQuery(SearchIndex.java:660)[\n]" > [DEBUG] << "[0x9]at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.executeQuery(QueryResultImpl.java:242)[\n]" > [DEBUG] << "[0x9]at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.getResults(QueryResultImpl.java:290)[\n]" > [DEBUG] << "[0x9]at org.apache.jackrabbit.core.query.lucene.QueryResultImpl.<init>(QueryResultImpl.java:192)[\n]" > [DEBUG] << "[0x9]at org.apache.jackrabbit.core.query.lucene.QueryImpl.execute(QueryImpl.java:138)[\n]" > [DEBUG] << "[0x9]at org.apache.jackrabbit.core.query.QueryImpl.execute(QueryImpl.java:176)[\n]" > [DEBUG] << "[0x9]at com.intel.cds.cr.jcr.JcrManager$5.doInJcr(JcrManager.java:363)[\n]" > [DEBUG] << "[0x9]at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:76)[\n]" > [DEBUG] << "[0x9]at org.springmodules.jcr.JcrTemplate.execute(JcrTemplate.java:108)[\n]" > [DEBUG] << "[0x9]... 19 more[\n]" > [DEBUG] << "" > org.apache.axis2.AxisFault: attempt to access a deleted document > at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) > at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) > at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) > at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) > at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) > My Jackrabbit/Lucene configuration is as follows: > > > > > > > > > Is this a configuration issue or a bug? > Thanks, > David. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.