Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 89335 invoked from network); 19 Mar 2009 14:12:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2009 14:12:37 -0000 Received: (qmail 26535 invoked by uid 500); 19 Mar 2009 14:12:36 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 26513 invoked by uid 500); 19 Mar 2009 14:12:36 -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 26504 invoked by uid 99); 19 Mar 2009 14:12:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 07:12:36 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 14:12:28 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LkIyd-00051T-Ea for dev@jackrabbit.apache.org; Thu, 19 Mar 2009 07:12:07 -0700 Message-ID: <22600983.post@talk.nabble.com> Date: Thu, 19 Mar 2009 07:12:07 -0700 (PDT) From: Fard To: dev@jackrabbit.apache.org Subject: Re: this IndexReader is closed In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: maurice.fard@gmail.com References: <22592716.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am using=20 jackrabbit-core-1.5-SNAPSHOT.jar I don't use lucene in this project. Only I am using internal lucene in jackrabbit for search. And I don't know which version of lucene comes with jackrabbit.=20 Regards Maurice =20 Marcel Reutegger wrote: >=20 > Hi, >=20 > what version of jackrabbit and lucene are you using? >=20 > regards > marcel >=20 > 2009/3/19 Fard : >> >> Hi there, >> >> I have created a simple application for adding some nodes with propertie= s >> to >> jackrabbit and then =C2=A0trying to search through the nodes and propert= ies. >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0QueryManager quer= yManager =3D workspace.getQueryManager(); >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Query query =3D q= ueryManager.createQuery ("//book01[@title =3D >> 'Book01']", >> Query.XPATH); >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0QueryResult resul= t =3D query.execute(); >> In repository one of my node is "Book01" and the title attribute of it i= s >> "Book01". >> I got the below error: >> >> Exception in thread "main" >> org.apache.lucene.store.AlreadyClosedException: >> this IndexReader is closed >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:196) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.lucene.index.MultiReader.docFreq(MultiReader.java:310) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.lucene.index.MultiReader.docFreq(MultiReader.java:313) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.lucene.search.IndexSearcher.docFreq(IndexSearcher.java:86) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.search.Similarity.idf(Si= milarity.java:457) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.lucene.search.TermQuery$TermWeight.(TermQuery.java:44) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:146) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at org.apache.lucene.search.Query.weight(Quer= y.java:95) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0at >> org.apache.jackrabbit.core.query.lucene.DescendantSelfAxisQuery$Descenda= ntSelfAxisWeight.scorer(DescendantSelfAxisQuery.java:193) >> >> I appreciate for any help. >> Maurice >> -- >> View this message in context: >> http://www.nabble.com/this-IndexReader-is-closed-tp22592716p22592716.htm= l >> Sent from the Jackrabbit - Dev mailing list archive at Nabble.com. >> >> >=20 >=20 --=20 View this message in context: http://www.nabble.com/this-IndexReader-is-clo= sed-tp22592716p22600983.html Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.