Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 46200 invoked from network); 8 Oct 2008 15:03:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2008 15:03:10 -0000 Received: (qmail 47531 invoked by uid 500); 8 Oct 2008 15:03:08 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 47508 invoked by uid 500); 8 Oct 2008 15:03:07 -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 47497 invoked by uid 99); 8 Oct 2008 15:03:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 08:03:07 -0700 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=DNS_FROM_OPENWHOIS,DNS_FROM_SECURITYSAGE,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 15:02:04 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KnaYh-0005sE-Bt for users@jackrabbit.apache.org; Wed, 08 Oct 2008 08:02:39 -0700 Message-ID: <19880654.post@talk.nabble.com> Date: Wed, 8 Oct 2008 08:02:39 -0700 (PDT) From: nicholas_dipiazza To: users@jackrabbit.apache.org Subject: Re: Problem with getting jcr:data from the jcr:frozenNode for a jcr:content node In-Reply-To: <19880381.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: nicholas@xerceo.com References: <19879699.post@talk.nabble.com> <19880381.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org That brings up the question... how do you get the nt:resource and read the old data for the root version? Should I just save one blank version and then save another? nicholas_dipiazza wrote: > > This was actually a Jar problem, but yes this will be the case for the > root version. > > I have thank god fixed the problem!!! > > > nicholas_dipiazza wrote: >> >> When I get a frozen node from my version, it only has the following >> properties, and contains none of the actual nodes I need: >> >> jcr:frozenUuid >> jcr:uuid >> jcr:frozenPrimaryType >> jcr:frozenMixinTypes >> jcr:primaryType >> >> >> To show this in effect... I have lockable, referencable and versionable >> jcr:content node created. >> >> When I run this code: >> >> Node node = getNodeByUUID(jcrSession, uuid); >> Version v = >> node.getVersionHistory().getVersionByLabel(label); >> Node frozenNode = v.getNode(JcrConstants.JCR_FROZENNODE); >> NodeIterator it = v.getNodes(); >> >> if (it.hasNext()) { >> >> Node no = it.nextNode(); >> System.out.println("Version saved on " + >> v.getCreated().getTime().toString() + >> " has the following message: "); >> } >> PropertyIterator pi = frozenNode.getProperties(); >> while (pi.hasNext()) { >> System.out.println(pi.nextProperty().getName()); >> } >> NodeIterator ni = frozenNode.getNodes(); >> while (ni.hasNext()) { >> System.out.println(ni.nextNode().getName()); >> } >> >> Output: >> >> Version saved on Wed Oct 08 09:11:33 CDT 2008 has the following message: >> jcr:frozenUuid >> jcr:uuid >> jcr:frozenPrimaryType >> jcr:frozenMixinTypes >> jcr:primaryType >> >> >> Why doesn't it have the other properties that I actually need???? What am >> I doing wrong? >> >> I've seen from other form posts that other people's frozen node's contain >> jcr:data just fine. >> >> Can anyone please help? Do I have to add fields to this versioning field? >> >> I've tried both XML and Derby persistance both do the same thing!! >> >> Thanks in advance!!!!!! >> >> (Tested on jackrabbit 1.4.5) >> > > -- View this message in context: http://www.nabble.com/Problem-with-getting-jcr%3Adata-from-the-jcr%3AfrozenNode-for-a-jcr%3Acontent-node-tp19879699p19880654.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.