Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 35033 invoked from network); 7 Apr 2006 08:25:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Apr 2006 08:25:24 -0000 Received: (qmail 2467 invoked by uid 500); 7 Apr 2006 08:25:20 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 2428 invoked by uid 500); 7 Apr 2006 08:25:20 -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 2419 invoked by uid 99); 7 Apr 2006 08:25:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2006 01:25:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of stefan.guggisberg@gmail.com designates 64.233.184.228 as permitted sender) Received: from [64.233.184.228] (HELO wproxy.gmail.com) (64.233.184.228) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2006 01:25:19 -0700 Received: by wproxy.gmail.com with SMTP id 58so295996wri for ; Fri, 07 Apr 2006 01:24:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lAJ6+OP811H7S0/AIgEQRrVZ9/8f5QYPNITbT4fPmmSbGrEJJgvO8c5rm6WuY11NHm94J766N0ja6cW0Wll6iunUvT2VY82geHhPuV/FsjLKCxyypt6Jh5Ue/MZTDrdYNS3DFF1DyNzykMC1Q4eECsY0VVwlmXJHvk7ByyTe9+8= Received: by 10.64.24.20 with SMTP id 20mr695441qbx; Fri, 07 Apr 2006 01:24:58 -0700 (PDT) Received: by 10.64.47.5 with HTTP; Fri, 7 Apr 2006 01:24:58 -0700 (PDT) Message-ID: <90a8d1c00604070124x9bf7ea7g15480dff953f6fdd@mail.gmail.com> Date: Fri, 7 Apr 2006 10:24:58 +0200 From: "Stefan Guggisberg" To: dev@jackrabbit.apache.org Subject: Re: ItemNotFoundException when adding files from multiple threads In-Reply-To: <3788575.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3788575.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi thomas, please provide a simple test case. i'll then investigate the issue. thanks stefan On 4/6/06, thomasg wrote: > > Hi guys, > > I've been trying to get multiple threads to add a file to the same > workspace. Each thread gets its own session in its run() method, creates = a > nt:folder and adds a nt:file and nt:resource. One thread succeeds but all > others fail with an ItemNotFoundException. The output is as follows: > > > thread 1 added in 1343ms, logging out of session > javax.jcr.ItemNotFoundException: > 5cc05aef-5ad0-434a-9b47-4d7e3d3ba7be/{http://www.jcp.org/jcr/1.0}data > at > org.apache.jackrabbit.core.ItemManager.createItemInstance(ItemManager.jav= a:465) > at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.jav= a:321) > at > org.apache.jackrabbit.core.ItemImpl.restoreTransientItems(ItemImpl.java:7= 09) > at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1209) > at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:8= 06) > at com.axxia.test.JackrabbitThreadTests.run(JackrabbitThreadTests= .java:102) > thread 0 caught repositoryexception in run(): > javax.jcr.ItemNotFoundException: > 5cc05aef-5ad0-434a-9b47-4d7e3d3ba7be/{http://www.jcp.org/jcr/1.0}data > thread 0 added in -1144342173968ms, logging out of session > > Anybody suggest what I'm doing wrong. > > Thanks, Thomas > -- > View this message in context: http://www.nabble.com/ItemNotFoundException= -when-adding-files-from-multiple-threads-t1407106.html#a3788575 > Sent from the Jackrabbit - Dev forum at Nabble.com. > >