Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2539

Cannot 3.x restore repository backup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 5.0.0.Final, 4.6.0.Final
    • 3.8.1.Final, 4.5.0.Final, 5.0.0.Final
    • Storage
    • None
    • Workaround Exists
    • Hide

      This particular exception is raised when restoring a repository with a different configured name and cacheName as the one which was backed up.

      The workaround is to make sure the repository name and the Infinispan cache name is the same both for the backed up and the restored repository.

      Show
      This particular exception is raised when restoring a repository with a different configured name and cacheName as the one which was backed up. The workaround is to make sure the repository name and the Infinispan cache name is the same both for the backed up and the restored repository.

    Description

      When attempting to restore a repository backup from 3.8.1.Final into a 4.5.0.Final repository which contains index definitions, the following exception is raised:

      main 12:00:00,301  INFO SLF4J implementation located in the classpath. It will be used by ModeShape for logging.main 12:00:00,441  INFO ModeShape version 4.6-SNAPSHOT
      main 12:00:01,694  INFO ARJUNA012163: Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 51302
      main 12:00:01,697  INFO ARJUNA012337: TransactionStatusManagerItem host: 127.0.0.1 port: 51302
      main 12:00:01,703  INFO ARJUNA012170: TransactionStatusManager started on port 51302 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
      main 12:00:03,928 ERROR Error while refreshing index definitions for the "Backup Repository" repository
      java.lang.NullPointerException
      	at org.modeshape.jcr.SystemContent.indexesKey(SystemContent.java:154)
      	at org.modeshape.jcr.SystemContent.indexesNode(SystemContent.java:202)
      	at org.modeshape.jcr.SystemContent.readAllIndexDefinitions(SystemContent.java:565)
      	at org.modeshape.jcr.RepositoryIndexManager.readIndexDefinitions(RepositoryIndexManager.java:819)
      	at org.modeshape.jcr.RepositoryIndexManager.register(RepositoryIndexManager.java:325)
      	at org.modeshape.jcr.RepositoryIndexManager.<init>(RepositoryIndexManager.java:135)
      	at org.modeshape.jcr.RepositoryQueryManager.<init>(RepositoryQueryManager.java:101)
      	at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:1208)
      	at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:982)
      	at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:388)
      	at org.modeshape.jcr.JcrRepository.start(JcrRepository.java:312)
      	at org.modeshape.jcr.JcrRepository.completeRestore(JcrRepository.java:543)
      	at org.modeshape.jcr.BackupService.restoreRepository(BackupService.java:161)
      	at org.modeshape.jcr.JcrRepositoryManager.restoreRepository(JcrRepositoryManager.java:87)
      	at org.modeshape.jcr.JcrRepositoryManager.restoreRepository(JcrRepositoryManager.java:81)
      	at org.modeshape.jcr.RepositoryBackupAndRestoreTest.shouldRestoreLegacy381_2Repository(RepositoryBackupAndRestoreTest.java:149)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            hchiorean Horia Chiorean (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: