Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 10897 invoked from network); 6 Aug 2009 11:03:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Aug 2009 11:03:54 -0000 Received: (qmail 43272 invoked by uid 500); 6 Aug 2009 11:04:00 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 43255 invoked by uid 500); 6 Aug 2009 11:04:00 -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 43244 invoked by uid 99); 6 Aug 2009 11:04:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 11:04:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jan.grathwohl@kontrast.de designates 217.69.78.1 as permitted sender) Received: from [217.69.78.1] (HELO kontrast.de) (217.69.78.1) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 11:03:52 +0000 Received: from [192.168.223.251] (account jan.grathwohl HELO dhcp-host-011.intern.kontrast.de) by kontrast.de (CommuniGate Pro SMTP 5.1.4) with ESMTPSA id 12321984 for users@jackrabbit.apache.org; Thu, 06 Aug 2009 13:03:30 +0200 Message-Id: <96026B10-539B-4D17-AFA2-ED6BAD7BA4B0@kontrast.de> From: Jan Grathwohl To: Jackrabbit Users List Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: How to remove corrupted node from repository? Date: Thu, 6 Aug 2009 13:03:30 +0200 X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi list, I have a problem with a corrupted node in a repository workspace, and the consistencyCheck/Fix does not solve it. It have set both consistencyCheck and consistencyFix to "true" in the PM config, the check also runs and outputs some messages, but does not solve this particular problem for some reason. Are there any other ways to get rid of this broken node besides consistencyFix? It would solve my problem to either delete the node, move it to another repository path (outside of my normal content structure) where it may rest in peace, or change some properties on the node to make the application ignore it. But all of these options do not work because Node's save() and remove() methods both try to build the node path internally, so they do not work any more either. Is there anything that I could do to solve this or remove the node, maybe through Jackrabbit API or even direct manipulation of the database content? Any ideas are highly appreciated. The broken node throws an Exception on getPath(), more specifically 2009-08-06 12:04:40,963 ERROR [STDERR] javax.jcr.ItemNotFoundException: failed to build path of 5c4bfc77-4ed2-431b-9659-c9d3f14227b3: c511b2ee-8183-43ea-ae96- fabb27badfba: c511b2ee-8183-43ea-ae96-fabb27badfba 2009-08-06 12:04:40,963 ERROR [STDERR] at org .apache .jackrabbit .core.HierarchyManagerImpl.getPath(HierarchyManagerImpl.java:407) 2009-08-06 12:04:40,963 ERROR [STDERR] at org .apache .jackrabbit .core.CachingHierarchyManager.getPath(CachingHierarchyManager.java:272) 2009-08-06 12:04:40,963 ERROR [STDERR] at org.apache.jackrabbit.core.ItemImpl.getPrimaryPath(ItemImpl.java:296) caused by 2009-08-06 12:04:40,965 ERROR [STDERR] org.apache.jackrabbit.core.state.NoSuchItemStateException: c511b2ee-8183-43ea-ae96-fabb27badfba 2009-08-06 12:04:40,965 ERROR [STDERR] at org .apache .jackrabbit .core .state .SessionItemStateManager.getItemState(SessionItemStateManager.java:189) 2009-08-06 12:04:40,965 ERROR [STDERR] at org .apache .jackrabbit .core.HierarchyManagerImpl.getItemState(HierarchyManagerImpl.java:188) 2009-08-06 12:04:40,965 ERROR [STDERR] at org .apache .jackrabbit .core.HierarchyManagerImpl.buildPath(HierarchyManagerImpl.java:325) 2009-08-06 12:04:40,965 ERROR [STDERR] at org .apache .jackrabbit .core.CachingHierarchyManager.buildPath(CachingHierarchyManager.java: 162) 2009-08-06 12:04:40,966 ERROR [STDERR] at org .apache .jackrabbit .core.HierarchyManagerImpl.buildPath(HierarchyManagerImpl.java:327) 2009-08-06 12:04:40,966 ERROR [STDERR] at org .apache .jackrabbit .core.CachingHierarchyManager.buildPath(CachingHierarchyManager.java: 162) 2009-08-06 12:04:40,966 ERROR [STDERR] at org .apache .jackrabbit .core.HierarchyManagerImpl.getPath(HierarchyManagerImpl.java:402) 2009-08-06 12:04:40,966 ERROR [STDERR] at org .apache .jackrabbit .core.CachingHierarchyManager.getPath(CachingHierarchyManager.java:272) The stack traces are from Jackrabbit 1.4. Thanks for any help, Jan