well, first of all, this is a very ugly example. e.g. you never instantiate a value directly, you rather use the value factory. so i haven't looked at the example closer, maybe you can send some test code, or try to debug it yourself. start by dumping all nodes and properties of the repo recursively, maybe you find the error.
regards, toby On 5/30/06, Markus Krueger <[EMAIL PROTECTED]> wrote:
Hello there, I'm a jackrabbit newbie and have a problem with the frozen node of a version. I tried an example at http://www.artima.com/lejava/articles/contentrepository3.html and failed at the part where the frozen nodes property "blogtext" is read. System.out.println("Version saved on " + v.getCreated().getTime().toString() + " has the following message: " + no.getProperty("blogtext").getString()); At this part I always get the following error: javax.jcr.PathNotFoundException: blogtext at org.apache.jackrabbit.rmi.server.ServerObject.getRepositoryException(ServerObject.java:125) at org.apache.jackrabbit.rmi.server.ServerNode.getProperty(ServerNode.java:92) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) at sun.rmi.transport.Transport$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Unknown Source) at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) at java.lang.Thread.run(Unknown Source) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.apache.jackrabbit.rmi.server.ServerNode_Stub.getProperty(Unknown Source) at org.apache.jackrabbit.rmi.client.ClientNode.getProperty(ClientNode.java:224) at ag.ion.gca.repository.test.GetResourceTest.main(GetResourceTest.java:99) As I understood the repository, I thought that the whole node is copied into the frozen node. So why is this error coming up or why is the property not copied? Any suggestions? Thanks, Markus Krüger
-- -----------------------------------------< [EMAIL PROTECTED] >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---