From jackrabbit-dev-return-3130-apmail-incubator-jackrabbit-dev-archive=www.apache.org@incubator.apache.org Mon Aug 08 10:14:05 2005 Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 36154 invoked from network); 8 Aug 2005 10:14:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2005 10:14:05 -0000 Received: (qmail 72214 invoked by uid 500); 8 Aug 2005 10:14:04 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 72201 invoked by uid 99); 8 Aug 2005 10:14:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2005 03:14:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.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; Mon, 08 Aug 2005 03:14:26 -0700 Received: (qmail invoked by alias); 08 Aug 2005 10:14:00 -0000 Received: from bsl-rtr.day.com (EHLO [10.0.0.71]) [212.249.34.130] by mail.gmx.net (mp026) with SMTP; 08 Aug 2005 12:14:00 +0200 X-Authenticated: #894343 Message-ID: <42F73066.7000203@gmx.net> Date: Mon, 08 Aug 2005 12:13:58 +0200 From: Marcel Reutegger User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: javax.jcr.RepositoryException 1252: unable to update item References: <42E66784.9060207@wordmap.com> <90a8d1c005072703473580213a@mail.gmail.com> <42E7BDE1.6070700@wordmap.com> <90a8d1c005072805163d3af353@mail.gmail.com> In-Reply-To: <90a8d1c005072805163d3af353@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Stefan Guggisberg wrote: > On 7/27/05, Richard Osbaldeston wrote: >>Almost looked like JackRabbit suddenly restated itself mid-way through >>populating the repository? or is that just a quirk of the exception >>ordering? The "Found uncommitted redo log. Applying changes now..." and >>the "java.lang.ArrayIndexOutOfBoundsException: 0" from lucene seemed >>suspicious, especially as I'd thought indexing would be disabled by >>removing the indexing configuration from the repository.xml ..maybe >>thats the difference? Need to do more digging.. repository.xml is just the template to use when creating new workspaces. once a workspace is created it uses its own workspace.xml configuration. if you want to disable query support in an existing workspace you have to comment the config there. > ok, the only thing that i can tell from the stack trace is that lucene's index > seems to be corrupt, probably due to an abnormal process termination. the uncommitted redo log does not mean that the index is currupt but that it is not in sync with the workspace data. the cause for this is most certainly an abnormal process termination. if on startup the index detects that it is not in sync it will re-index the missing nodes. That seems to be the case in your setup. However I don't think that the ArrayIndexOutOfBoundsException is the fault of the NodeIndexer. A single value property state should not be allowed to have no value. PropertyState encodingProp = (PropertyState) stateProvider.getItemState(new PropertyId(node.getUUID(), JCR_ENCODING)); encodingProp.getValues()[0].internalValue().toString(); That is, the second line should never throw an ArrayIndexOutOfBoundsException. WDYT Stefan? regards marcel