Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 75282 invoked from network); 25 Nov 2009 13:25:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 13:25:03 -0000 Received: (qmail 56462 invoked by uid 500); 25 Nov 2009 13:25:03 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 56393 invoked by uid 500); 25 Nov 2009 13:25:03 -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 56385 invoked by uid 99); 25 Nov 2009 13:25:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 13:25:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Wed, 25 Nov 2009 13:24:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8DF37234C04C for ; Wed, 25 Nov 2009 05:24:39 -0800 (PST) Message-ID: <1620848616.1259155479572.JavaMail.jira@brutus> Date: Wed, 25 Nov 2009 13:24:39 +0000 (UTC) From: "simon smith (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2409) when versioning an nt:file node I get this exception (see below )everytime checkin() is called. In-Reply-To: <620934541.1259153199786.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] simon smith updated JCR-2409: ----------------------------- Attachment: console_output.txt console output , its not that big > when versioning an nt:file node I get this exception (see below )everytime checkin() is called. > ------------------------------------------------------------------------------------------------ > > Key: JCR-2409 > URL: https://issues.apache.org/jira/browse/JCR-2409 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: versioning > Affects Versions: 1.6.0 > Environment: windows xp , elcipse ganymede, java 1.6.0_05-b13, > Reporter: simon smith > Attachments: console_output.txt > > > WARNING: Exception while creating document for node: 695418c7-508f-4205-a919-6a216d71612e: javax.jcr.RepositoryException: Missing child node entry for node with id: 695418c7-508f-4205-a919-6a216d71612e > the above is thrown everytime checkin is called. Can be replicated using the following test snippet. > Node fileNode = bundleNode.addNode (fileName, "nt:file"); > fileNode.addMixin("mix:versionable"); > //create the mandatory child node - jcr:content > Node resNode = fileNode.addNode ("jcr:content", "nt:resource"); > resNode.setProperty ("jcr:mimeType", mimetype); > resNode.setProperty ("jcr:data", new FileInputStream(file)); > Calendar lastModified = Calendar.getInstance (); > lastModified.setTimeInMillis(file.lastModified ()); > resNode.setProperty ("jcr:lastModified", lastModified); > session.save(); > fileNode.checkin(); > > //create another version > fileNode.checkout(); > fileNode.checkin(); > //repository.xml as follows > > "http://jackrabbit.apache.org/dtd/repository-1.6.dtd"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.