-
Bug
-
Resolution: Done
-
Blocker
-
3.8.1.Final, 4.5.0.Final, 5.0.0.Final
-
None
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)