Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 197 invoked from network); 25 Jul 2007 14:12:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2007 14:12:12 -0000 Received: (qmail 8525 invoked by uid 500); 25 Jul 2007 14:12:12 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 8500 invoked by uid 500); 25 Jul 2007 14:12:12 -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 8488 invoked by uid 99); 25 Jul 2007 14:12:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 07:12:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of stefan.guggisberg@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2007 07:12:08 -0700 Received: by ug-out-1314.google.com with SMTP id a2so382442ugf for ; Wed, 25 Jul 2007 07:11:46 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gxWRQN8UsBs4uUV9y6g5OMMBwgMSxu7v0Hm/VnwHpg7DYpxoh7slmxjFV7zYkSQD3bEyvezd5XaqYvkPuZj3cDsgOGA5K7g4KeEv1A3OTqya4NzG85wJqk6sY58m2HvsWEdDBBU+ZVWSU1jgHBBWYhhuTR5Wltz3avr8Sg7xqiI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Kksg7W4Cao0EmkV5ejwhTJpd5Zh7gHQFreTgEI9L0YuUd8LofH/ynVukp1x3ND9eQd7wubs+v2L9d1RGFcbVddgkOtYJFgzXxY9ROaargvgqpDEdm0Jalf590yal3khD/3mT4fiVU/jF69wUKnui2LLmxLKjPJev5eVzDbjnbZ8= Received: by 10.82.152.16 with SMTP id z16mr522026bud.1185372706293; Wed, 25 Jul 2007 07:11:46 -0700 (PDT) Received: by 10.82.171.9 with HTTP; Wed, 25 Jul 2007 07:11:46 -0700 (PDT) Message-ID: <90a8d1c00707250711s3f32ca00o4287410f1ae119bb@mail.gmail.com> Date: Wed, 25 Jul 2007 16:11:46 +0200 From: "Stefan Guggisberg" To: users@jackrabbit.apache.org Subject: Re: save problem In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org On 7/23/07, Dumitru CIUBENCO wrote: > 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?? 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 > > > > > > > > > > > >