jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dumitru CIUBENCO" <dciube...@ascenta.ro>
Subject save problem
Date Mon, 23 Jul 2007 15:24:49 GMT
Hi  

I'm using Jackrabbit 1.3,  I'm trying to do some simple tests using
Jackrabbit, before using in production, unfortunately I have strange
problem. When I am starting my sample application I have Exception on
session.save(), apparently I did exactly as is described in (First Hops
with Jackrabbit)

 

Code:

                  Workspace ws = session.getWorkspace();

                  Node root = session.getRootNode();

                  ws.getNamespaceRegistry().registerNamespace

                   ("jwcm", "http://www.x.md/jwcm/1.0");

                  

                  String user = session.getUserID();

                  String name = session.getRepository().getDescriptor(

                              Repository.REP_NAME_DESC);

                  System.out.println("Logged in as " + user + " to a " +
name

                              + " repository.");

 

                  

                  // Store content

                  Node hello = root.addNode("jwcm:hello");              

                  Node world = hello.addNode("jwcm:world");

                  world.setProperty("message", "Hello, World!");

                  session.save();//EXCEPTION

 

Log:

 

Logged in as kirpi4ik to a Jackrabbit repository.

[jwcm] ERROR [http-8080-Processor24] EventStateCollection.getPath(518) |
Unable to resolve path for item:
6df796b3-0d72-4fcd-a9bf-2e490913b7db/{}message

javax.jcr.RepositoryException: /: unable to update item.: Unable to
resolve path for item: 6df796b3-0d72-4fcd-a9bf-2e490913b7db/{}message:
Unable to resolve path for item:
6df796b3-0d72-4fcd-a9bf-2e490913b7db/{}message

 

Have any idea??

 

 

With best regards,

Dumitru

 

 

 

 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message