Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 24040 invoked from network); 30 Oct 2006 11:32:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2006 11:32:18 -0000 Received: (qmail 1726 invoked by uid 500); 30 Oct 2006 11:31:24 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 1553 invoked by uid 500); 30 Oct 2006 11:31:21 -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 1425 invoked by uid 99); 30 Oct 2006 11:31:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 03:31:19 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Oct 2006 03:30:36 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A2A517142F8 for ; Mon, 30 Oct 2006 03:28:54 -0800 (PST) Message-ID: <5807390.1162207734663.JavaMail.root@brutus> Date: Mon, 30 Oct 2006 03:28:54 -0800 (PST) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-605) Error when registering node types on virgin repository In-Reply-To: <15623932.1161855256474.JavaMail.root@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 [ http://issues.apache.org/jira/browse/JCR-605?page=all ] Marcel Reutegger resolved JCR-605. ---------------------------------- Fix Version/s: 1.1.1 Resolution: Fixed Fixed as proposed in svn revision: 469123 > Error when registering node types on virgin repository > ------------------------------------------------------ > > Key: JCR-605 > URL: http://issues.apache.org/jira/browse/JCR-605 > Project: Jackrabbit > Issue Type: Bug > Affects Versions: 1.1 > Environment: svn 467288 > Reporter: Marcel Reutegger > Priority: Minor > Fix For: 1.1.1 > > > When a node type is registered on a repository that has never been started before an error is written to the log: > 26.10.2006 10:36:02 *ERROR* [main] VirtualNodeTypeStateManager: Unable to index new nodetype: javax.jcr.ItemNotFoundException (VirtualNodeTypeStateManager.java, line 159) > Steps to reproduce: > > maven test:clean > > cp applications/test/repository/namespaces/ns_re.properties.install applications/test/repository/namespaces/ns_re.properties > > cp applications/test/repository/nodetypes/custom_nodetypes.xml.install applications/test/repository/nodetypes/custom_nodetypes.xml > Run test case o.a.j.init.NodeTypeData > It seems that the workspace initialization creates node states for jcr:system and a child node jcr:nodeTypes. The latter however is overlayed by a virtual node state provided by the VirtualNodeTypeStateProvider. > In case of an initial startup, the jcr:nodeTypes node is cached on creation and is not overlayed by the virtual twin from the VirtualNodeTypeStateProvider. > IMO the jcr:nodeTypes node state shouldn't have been created in the first place because it is overlayed anyway. The workspace initialization routine should only create a child node entry in the jcr:system node state but no actual child node state for that entry. > Opinions? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira