Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 2041 invoked from network); 3 Apr 2006 19:35:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2006 19:35:41 -0000 Received: (qmail 58028 invoked by uid 500); 3 Apr 2006 19:35:39 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 57979 invoked by uid 500); 3 Apr 2006 19:35:38 -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 57969 invoked by uid 99); 3 Apr 2006 19:35:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 12:35:38 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gcaj-jackrabbit-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Apr 2006 12:35:36 -0700 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FQUpK-0003Z7-A9 for dev@jackrabbit.apache.org; Mon, 03 Apr 2006 21:35:03 +0200 Received: from WD46730.pnl.gov ([130.20.168.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Apr 2006 21:35:02 +0200 Received: from david.gillen by WD46730.pnl.gov with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Apr 2006 21:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: dev@jackrabbit.apache.org From: David Gillen Subject: Re: Restore a version of a node property Date: Mon, 3 Apr 2006 19:33:43 +0000 (UTC) Lines: 31 Message-ID: References: <8be731880604030411j2352e729l8e6071167f6619b9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 130.20.168.133 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; InfoPath.1)) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tobias Bocanegra day.com> writes: > > hi oliver, > you can access the content of the version directly in the jcr:versionStorage. > either by searching for your version, or by using the version history: > > node.getVersionHistory().getVersion(xyz).getNode ("jcr:frozenNode").getProperty("yourprop"); > Hello, I have the same issue as the original poster, and I'm having trouble making the suggestion above work for me. I keep getting: javax.jcr.PathNotFoundException: myprop at org.apache.jackrabbit.core.NodeImpl.getProperty(NodeImpl.java:2423) where myprop is the name of the property I'm trying to retrieve. When I run through a debugger, and look at the propertyNames HashMap within the NodeState belonging to the node of the older version, I don't see any property names listed that I created, only property names that look internal to Jackrabbit. I can provide source code that demonstrates this problem. Any ideas? > regards, toby -Dave