On 7/23/07, Dumitru CIUBENCO <[EMAIL PROTECTED]> wrote:
HiI'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??
that's very strange indeed. how did you obtain the 'session' object? do you share the session among multiple threads? what's your deployment model? if possible, please provide a complete simple test case. thanks stefan
With best regards, Dumitru
