From users-return-9849-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Dec 05 10:22:57 2008 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 60846 invoked from network); 5 Dec 2008 10:22:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2008 10:22:57 -0000 Received: (qmail 37170 invoked by uid 500); 5 Dec 2008 10:23:08 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 37153 invoked by uid 500); 5 Dec 2008 10:23:08 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 37142 invoked by uid 99); 5 Dec 2008 10:23:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2008 02:23:08 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 05 Dec 2008 10:21:38 +0000 Received: (qmail invoked by alias); 05 Dec 2008 10:22:24 -0000 Received: from l2tp.day.com (EHLO [192.168.10.45]) [62.192.10.243] by mail.gmx.net (mp065) with SMTP; 05 Dec 2008 11:22:24 +0100 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX19WEpIMP0ZWtncHJYz3eMGAVxfuRApZJgkxvG2KzW t+q+RxUXy8kmoP Message-ID: <493900DF.9050304@gmx.net> Date: Fri, 05 Dec 2008 11:22:23 +0100 From: Marcel Reutegger User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: CorruptIndexException References: <20844926.post@talk.nabble.com> In-Reply-To: <20844926.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.61 X-Virus-Checked: Checked by ClamAV on apache.org pkrishna wrote: > I am luncene 2.2.0 with JackRabbit 1.4.6 and for some reason I am seeing the > following exception: > > java.io.IOException: Directory was previously created with a different > LockFactory instance; please pass null as the lockFactory instance and use > setLockFactory to change it > at > org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:192) > at > org.apache.jackrabbit.core.query.lucene.PersistentIndex.(PersistentIndex.java:63) > at > org.apache.jackrabbit.core.query.lucene.MultiIndex.(MultiIndex.java:286) > > I debugged through the code core.query.lucene.PersistentIndex and the call > to getDirectory always throws a CorruptIndexException. The directory folder > points to temp folder under Documents and Settings. Please make sure that you don't share an index directory with multiple Jackrabbit instances/processes. > I was browsing through > the forum to see if any others have seen this problem and there was one > entry about this but the author mentioned that once he updated to latest > version of lucene everything was working fine. My impression was JackRabbit > 1.4.6 only works with lucene-core 2.2.0 and with lucene 2.3.2 Jackrabbit 1.4.6 only works with Lucene 2.2.0. Jackrabbit 1.5 is compatible with Lucene 2.3.2. regards marcel