Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 35930 invoked from network); 4 Apr 2008 16:29:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Apr 2008 16:29:16 -0000 Received: (qmail 99525 invoked by uid 500); 4 Apr 2008 16:29:15 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 99502 invoked by uid 500); 4 Apr 2008 16:29:15 -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 99493 invoked by uid 99); 4 Apr 2008 16:29:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 09:29:15 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jared.graber@iaccap.com designates 12.193.211.24 as permitted sender) Received: from [12.193.211.24] (HELO SITE3MAIL05.jeeves.ask.info) (12.193.211.24) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2008 16:28:33 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C89670.F366A2E6" Subject: Mandatory Property Error Date: Fri, 4 Apr 2008 12:28:43 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Mandatory Property Error Thread-Index: AciWcPKTCaWGO4B7SsSCMU/N2XTeqw== From: "Jared Graber" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C89670.F366A2E6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I defined this node type =20 nt:unstructured =20 And this namespace "my" -> "http://localhost" =20 =20 This is my code: Node parent =3D (Node) session.getItem(parentPath); Node node =3D parent.addNode(JcrUtils.escapeName(nodeName), "my:orderable"); node.addMixin("mix:referenceable"); node.setProperty("my:type", "image"); ... session.save(); =20 =20 I get the following exception: javax.jcr.nodetype.ConstraintViolationException: /Top Level Category: mandatory property {http://localhost}type does not exist =20 I specifically added the property, yet I'm still getting this exception. =20 I noticed this comment org.apache.jackrabbit.core.ItemImpl: /** * todo FIXME workaround for mix:versionable: * the mandatory properties are initialized at a * later stage and might not exist yet */ =20 Does this apply to all mandatory properties? =20 =20 Any ideas on how to fix this problem? =20 Thanks, =20 Jared =20 =20 ------_=_NextPart_001_01C89670.F366A2E6--