From users-return-15524-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Wed Jul 07 09:59:04 2010 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 27492 invoked from network); 7 Jul 2010 09:59:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jul 2010 09:59:04 -0000 Received: (qmail 37483 invoked by uid 500); 7 Jul 2010 09:59:04 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 37213 invoked by uid 500); 7 Jul 2010 09:59:01 -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 37202 invoked by uid 99); 7 Jul 2010 09:59:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jul 2010 09:59:00 +0000 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=HTML_MESSAGE,RCVD_NUMERIC_HELO,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.116.198.209] (HELO gse-mta-10.emailfiltering.com) (194.116.198.209) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jul 2010 09:58:52 +0000 Received: from 92.42.145.164 ([92.42.145.164]) by gse-mta-10.emailfiltering.com with emfmta (version 4.5.0.261) by TLS id 2476968048 for users@jackrabbit.apache.org;9788b2fd5ae0b64c; Wed, 07 Jul 2010 10:58:31 +0100 Received: from mail.thisisnumero.com ([10.23.10.20]) by mail.thisisnumero.com ([10.23.10.20]) with mapi; Wed, 7 Jul 2010 11:00:42 +0100 From: Benjamin Brown To: "users@jackrabbit.apache.org" Date: Wed, 7 Jul 2010 10:59:59 +0100 Subject: ItemImpl.validateTransientItems preventing import Thread-Topic: ItemImpl.validateTransientItems preventing import Thread-Index: AcsduykfsZWYEiKvSJ2pmqAMl+iVmQ== Message-ID: <3D1AC8CA263470468F17F7A8B9D1472F3EABB24945@mail.thisisnumero.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB Content-Type: multipart/alternative; boundary="_000_3D1AC8CA263470468F17F7A8B9D1472F3EABB24945mailthisisnum_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_3D1AC8CA263470468F17F7A8B9D1472F3EABB24945mailthisisnum_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have a system view export that I'd like to import using session.importXML= with UUID_IMPORT_COLLISSION_REPLACE_EXISTING unfortunately the method Item= Impl.validateTransientItems keeps throwing an exception: javax.jcr.nodetype.ConstraintViolationException: /jcr:root: mandatory child= node {http://www.jcp.org/jcr/1.0}system does not exist Technically this is correct, the transient view does not contain this node = because jackrabbit cannot import protected system nodes. So Catch 22, how do I export and then import jackrabit's root if i) It won't import system nodes. ii) Complains anyway if the system node is missing (i.e. t= hat provided by the import)? Am I missing something obvious here? The repository only has its own existi= ng system nodes prior to import. Thanks, Benjamin --_000_3D1AC8CA263470468F17F7A8B9D1472F3EABB24945mailthisisnum_--