5 Replies Latest reply on Apr 14, 2015 10:31 AM by Horia Chiorean

    ModeShape repository data corrupted-can it be recovered?

    Jawwad Muzaffar Newbie

      Hi,

       

           I am using ModeShape 4.0.0 Final in our web application on Tomcat. The repository seemed to be working fine untill yesterday and we had some precious data inside ModeShape,

       

      The server threw the following exception during restart:

       

      Error while starting 'DataRepository' repository: 86cfc44317f1e7/jcr:system/mode:indexes/local/index

       

      2015-04-09 18:51:58.118 INFO  [main] SLF4JLoggerImpl.java:182      ModeShape version 4.0.0.Final
      2015-04-09 18:52:02.260 ERROR [main] SLF4JLoggerImpl.java:166      Error while refreshing index definitions for the "DataRepository" repository

      java.lang.NullPointerException: null

          at org.modeshape.jcr.SystemContent.readIndexDefinition(SystemContent.java:516) ~[modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.SystemContent.readAllIndexDefinitions(SystemContent.java:572) ~[modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.RepositoryIndexManager.readIndexDefinitions(RepositoryIndexManager.java:747) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.RepositoryIndexManager.register(RepositoryIndexManager.java:318) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.RepositoryIndexManager.<init>(RepositoryIndexManager.java:134) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.RepositoryQueryManager.<init>(RepositoryQueryManager.java:86) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:1204) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:977) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:386) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:650) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:611) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

          at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:143) [modeshape-jcr-4.0.0.Final.jar:4.0.0.Final]

      ...

      ...

      ...

      Error while starting 'DataRepository' repository: 86cfc44317f1e7/jcr:system/mode:indexes/local/index

      ------------------------------------------------------------

       

       

      I tried removing and regenerating the indexes but the exception is still there whenever the server starts and the repository is deployed. My DataRepository.json file is also attached.

       

      Can anyone please help?

       

      Regards,

       

      Jawwad Muzaffar