jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Guggisberg <stefan.guggisb...@gmail.com>
Subject Re: How to remove corrupted node from repository?
Date Thu, 06 Aug 2009 12:51:42 GMT
On Thu, Aug 6, 2009 at 1:03 PM, Jan Grathwohl<jan.grathwohl@kontrast.de> wrote:
> 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.

what's the exact output of the consistencyCheck/Fix? dangling child node entries
should be fixable.

>
> 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.

do you know the path of the corrupted node? are you able to navigate to
the node?

>
> 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.

if everything fails, you could try to fix that inconsistency programmatically,
e.g. by directly reading the troublesome NodeState instance through the
pm, fix it and write it back. but you'll have to get your hands dirty...

cheers
stefan

>
> 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
>
>
>

Mime
View raw message