Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 888B3E126 for ; Wed, 9 Jan 2013 22:17:53 +0000 (UTC) Received: (qmail 26259 invoked by uid 500); 9 Jan 2013 22:17:53 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 26215 invoked by uid 500); 9 Jan 2013 22:17:53 -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 26205 invoked by uid 99); 9 Jan 2013 22:17:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 22:17:52 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jjverderber@gmail.com designates 209.85.215.49 as permitted sender) Received: from [209.85.215.49] (HELO mail-la0-f49.google.com) (209.85.215.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 22:17:47 +0000 Received: by mail-la0-f49.google.com with SMTP id fk20so2384616lab.8 for ; Wed, 09 Jan 2013 14:17:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PgQk44rEQ/dNz478I5csKHg8rX/aqS3LY1rNeVLJ7Bk=; b=V6BnPqOW+KTSSQRCJqZ7M4LmgSSVA++pSmkeP/TlRkBBT6ooKMcE8jBPNLi7KzpNbv CA2keXYBMgHlon080jqLHD56GcdQPLagc+8d91knU9j67LEeEYcv5UtqNMzVJVQKR/cd drWrD1e93qCoPy4zcMov/BUtmhusKYMWPGOJpD1YpK45xwG2teP154mNhX5V6kMvNY9N wsZzUk8X3/f9Vx/qbKwgB9Zh7Rueed3xg/g04f5XkVWRh+DPyfSONmFzXUXttXGpVHu8 IPAy4+XUiS4Bkz2mMgF0c74Kp4U+OYY+3qw992JmOSLQJrHOGBggLXrXwmOS4Uhowvn3 NvvQ== MIME-Version: 1.0 Received: by 10.152.105.203 with SMTP id go11mr66326170lab.53.1357769845942; Wed, 09 Jan 2013 14:17:25 -0800 (PST) Received: by 10.112.58.41 with HTTP; Wed, 9 Jan 2013 14:17:25 -0800 (PST) In-Reply-To: <50EDE4DA.30103@artifact-software.com> References: <50EDE4DA.30103@artifact-software.com> Date: Wed, 9 Jan 2013 16:17:25 -0600 Message-ID: Subject: Re: workspace.copy PathNotFoundException error From: joe verderber To: "users@jackrabbit.apache.org" , "rwheeler@artifact-software.com" Content-Type: multipart/alternative; boundary=f46d04083e335aa92104d2e26d50 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04083e335aa92104d2e26d50 Content-Type: text/plain; charset=ISO-8859-1 i noticed the log statement shows that the path to the node that was found ends in a wildcard and the path to the node that is not found that does not. might this be part of the issue? On Wednesday, January 9, 2013, Ron Wheeler wrote: > This seems like a simple operation but we clearly don't understand > something! > > We want to copy a tree of items from one place > /adt:dataRepository/adt:ABRA_**data to another > > try { > Workspace workspace = session.getWorkspace(); > workspace.copy(**RepositoryStructureNames.**DATAREPOSITORY+"/" + > internalSourceDataStoreName, > RepositoryStructureNames.**DATAREPOSITORY+"/" + > internalNewDataStoreName); > } catch > > As you can see we can find the node just before we copy it but the > getNodeState complains that it can not find it. > > Any hints as to what we can do to make this work or is there a better way > to copy a tree of items to another place. > > We think that adt is a namespace. At least we tried to set that up and the > property related debug messages replace "adt:" with the "http://...." > > > > > 2013-01-09 10:12:41,012 [main] INFO com.artifact_software.adt.** > plugin.transformation.**CreateNewDataStoreFromExisting - Transformation > plugin Create Internal Person DataStore attempting to create new DataStore > PersonInternal from ABRA_data > 2013-01-09 10:12:41,012 [main] DEBUG org.apache.jackrabbit.core.**session.SessionState > - Performing node.getNode(adt:**dataRepository) > 2013-01-09 10:12:41,012 [main] DEBUG org.apache.jackrabbit.core.**session.SessionState > - Performed node.getNode(adt:**dataRepository) in 74739us > 2013-01-09 10:12:41,012 [main] DEBUG org.apache.jackrabbit.core.**session.SessionState > - Performing node.getNode(adt:ABRA_data) > 2013-01-09 10:12:41,012 [main] DEBUG org.apache.jackrabbit.core.**session.SessionState > - Performed node.getNode(adt:ABRA_data) in 68144us > 2013-01-09 10:12:41,013 [main] DEBUG org.apache.jackrabbit.core.**session.SessionState > - Performing item.getPath() > 2013-01-09 10:12:41,013 [main] DEBUG org.apache.jackrabbit.core.**session.SessionState > - Performed item.getPath() in 42499us > 2013-01-09 10:12:41,013 [main] DEBUG com.artifact_software.adt.**model.jcr.DataRepositoryImpl > - *****path to node /adt:dataRepository/adt:ABRA_**data* > 2013-01-09 10:12:41,013 [main] DEBUG com.artifact_software.adt.**model.jcr.DataRepositoryImpl > - soure data store exists=true > javax.jcr.**PathNotFoundException: /adt:dataRepository/adt:ABRA_**data > at org.apache.jackrabbit.core.**BatchedItemOperations.**getNodeState(* > *BatchedItemOperations.java:**1448) > at org.apache.jackrabbit.core.**BatchedItemOperations.copy(** > BatchedItemOperations.java:**378) > at org.apache.jackrabbit.core.**WorkspaceImpl.internalCopy(** > WorkspaceImpl.java:430) > at org.apache.jackrabbit.core.**WorkspaceImpl.copy(** > WorkspaceImpl.java:656) > at com.artifact_software.adt.**model.jcr.DataRepositoryImpl.** > cloneDataStore(**DataRepositoryImpl.java:156) > > -- > Ron Wheeler > President > Artifact Software Inc > email: rwheeler@artifact-software.com > skype: ronaldmwheeler > phone: 866-970-2435, ext 102 > > -- Sent from Gmail Mobile --f46d04083e335aa92104d2e26d50--