jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcos Unzue <marcos.un...@globant.com>
Subject Re: Corrupted Repository
Date Mon, 17 May 2010 14:46:16 GMT
Hi All,

  Any ideas on that error, I have a couple of corrupted nodes from several
months an I need to repair the repository as soon as possible.

Thanks again,
Marcos.

On Mon, Mar 8, 2010 at 3:08 PM, Marcos Unzue <marcos.unzue@globant.com>wrote:

> Hi all,
>
> For any wired reason my repository appears to be corrupted.
>
> Exception in thread "main" javax.jcr.ItemNotFoundException:
> 19934a5d-200c-43e5-83cf-96e9bfdff020
>   at
> org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:306)
>   at
> org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:271)
>   at org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:535)
>   at org.apache.jackrabbit.core.NodeImpl.onRemove(NodeImpl.java:662)
>   at org.apache.jackrabbit.core.NodeImpl.removeChildNode(NodeImpl.java:612)
>   at org.apache.jackrabbit.core.ItemImpl.internalRemove(ItemImpl.java:847)
>   at org.apache.jackrabbit.core.ItemImpl.remove(ItemImpl.java:919)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   ......
>
>
> I tried to repair the  repository following the instructions descripted in:
>
> http://wiki.gxdeveloperweb.com/confluence/display/GXDEV/How+to+repair+a+'corrupt'+JCR
> But I obtained the following error:
>
> [ERROR] 2010-03-08 11:49:03,792 || BundleDbPersistenceManager.java ||
> checkConsistency ||882 || Error loading bundle ||
> java.lang.IllegalArgumentException: UUID must be constructed using a 16
> byte array.
>   at org.apache.jackrabbit.uuid.UUID.<init>(UUID.java:62)
>   at
> org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.checkConsistency(BundleDbPersistenceManager.java:840)
>   at
> org.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.init(BundleDbPersistenceManager.java:626)
>   at
> org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager.init(MySqlPersistenceManager.java:51)
>   at
> org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1324)
>   at
> org.apache.jackrabbit.core.RepositoryImpl.access$800(RepositoryImpl.java:114)
>   at
> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.doInitialize(RepositoryImpl.java:1936)
>   at
> org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo.initialize(RepositoryImpl.java:1919)
>   at
> org.apache.jackrabbit.core.RepositoryImpl.initStartupWorkspaces(RepositoryImpl.java:489)
>   at
> org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:330)
>   at
> org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:627)
>   at
> org.springmodules.jcr.jackrabbit.RepositoryFactoryBean.createRepository(RepositoryFactoryBean.java:57)
>   at
> org.springmodules.jcr.RepositoryFactoryBean.afterPropertiesSet(RepositoryFactoryBean.java:57)
>   at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1143)
>    ........
>
>
> I'm using jackrabbit 1.6.0 with a MySqlPersistenceManager (InnoDB engine)
> and I have enabled a FileDataStore. Here's part of my repository.xml
> configuration file:
>
> <PersistenceManager
> class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager">
>  <param name="driver" value="com.mysql.jdbc.Driver"/>
>  <param name="url" value="jdbc:mysql://localhost:3306/docs"/>
>  <param name="user" value="xxxxx"/>
>  <param name="password" value="xxxxx" />
>  <param name="schema" value="mysql"/>
>  <param name="schemaObjectPrefix" value="pm_"/>
> </PersistenceManager>
>
> ......
>
> <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
>  <param name="path" value="${rep.home}/datastore"/>
>  <param name="minRecordLength" value="100"/>
> </DataStore>
>
>
> Someone could  help me to find a way to repair the repository?
>
> Thanks in advance for your help.
> Marcos.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message