Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 3148 invoked from network); 7 Jun 2007 08:07:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jun 2007 08:07:06 -0000 Received: (qmail 40779 invoked by uid 500); 7 Jun 2007 08:07:09 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 40765 invoked by uid 500); 7 Jun 2007 08:07:09 -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 40753 invoked by uid 99); 7 Jun 2007 08:07:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 01:07:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of stefan.guggisberg@gmail.com designates 209.85.134.190 as permitted sender) Received: from [209.85.134.190] (HELO mu-out-0910.google.com) (209.85.134.190) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jun 2007 01:07:04 -0700 Received: by mu-out-0910.google.com with SMTP id w1so417507mue for ; Thu, 07 Jun 2007 01:06:43 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aA9B1q+CkYXhjecC3VvDTiQLly2YJdhX6Ljrmh+4QSCQwUkwR2g5w/8CeaFnpWgNIbIibExDbCGiGmrhPBGKfGRGnYFD7p7Hgr6ATNHhZeHi9GQDiA+TQ7xPoaLsAzNb0IJcWQCIXz0wz7s1E/+2djWQp7JTs6RKJ5lc/aBCwuI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uf/MTPJAvCXUtZT69yJXdyO9T+eK10Zcyta4shhlIvjBofN+PFp2cxDbiKafFQij3vK5DsY1vpC5lnM0VR/nnslDK6NRxE2jVkBkkKKl5ATm+nOozwRj52k77yC05N95DbYwZ/75uPRkwk/dxxjLi6CZ1aEP5HIUf5ziqAbU/fY= Received: by 10.82.112.16 with SMTP id k16mr2646062buc.1181203602640; Thu, 07 Jun 2007 01:06:42 -0700 (PDT) Received: by 10.82.158.11 with HTTP; Thu, 7 Jun 2007 01:06:42 -0700 (PDT) Message-ID: <90a8d1c00706070106q2ee2b192l2cc72e3adc047905@mail.gmail.com> Date: Thu, 7 Jun 2007 10:06:42 +0200 From: "Stefan Guggisberg" To: users@jackrabbit.apache.org Subject: Re: Mixin type problem? In-Reply-To: <46673A4D.FAAC.0009.0@ctp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46673A4D.FAAC.0009.0@ctp.com> X-Virus-Checked: Checked by ClamAV on apache.org hi juerg, On 6/6/07, Juerg Meier wrote: > Hi, > > I've been working with Jackrabbit for some time now (with storage on the file system), but I don't know what's wrong in the following case. > > I have the following situation (CND): > > [td:place] > nt:base,mix:versionable,td:sourceable > -td:refId (string) > .... > > [td:sourceable] > mix:versionable > mixin > -td:source (reference) > > [td:source] > nt:base,mix:versionable > -td:refId (string) > .... > > Here's the code fragment that adds nodes of type td:source to td:place (n): > > ... > for (Source source : dto.getSources()) > { > Node sourceNode = getSession().getNodeByUUID(source.getId()); > n.setProperty("td:source", sourceNode); > } > ... > > The place-node gets added without exception. However, if I want to retrieve it, it does not appear. It also does not show up in tools such as JcrConverter. And if I try to delete node n, the following exception appears: > > class javax.jcr.nodetype.ConstraintViolationException > no matching property definition found for {http://mydomain.com/ns/td}source > > That's all. As mentioned, I have no clue what goes wrong here, perhaps, and would highly appreciate any hint. there's not enough information, sorry. could you please provide a small test case (incl. your cnd file) that demonstrates your problem? cheers stefan > > Thanks, > Juerg > Cambridge Technology Partners, Zurich > > > >