jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Grathwohl <jan.grathw...@kontrast.de>
Subject How to remove corrupted node from repository?
Date Thu, 06 Aug 2009 11:03:30 GMT
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



Mime
View raw message