Description
In an edge case where I set a hippo:named mixin and hippo:name property to the root node, trying to work around REPO-1857, the auto export produces an IllegalStateException and an ERROR is logged.
That is understandable, however it is repeated endlessly, which can be improved.
INFO 09:25:12 INFO autoexport is processing changes... INFO 09:25:12 ERROR Processing events failed: INFO java.lang.IllegalStateException: Cannot get the parent of ROOT! INFO at org.onehippo.cm.model.path.JcrPathImpl.getParent(JcrPathImpl.java:84) ~[hippo-configuration-management-model-1.0.2.jar:1.0.2] INFO at org.onehippo.cm.engine.autoexport.DefinitionMergeService.findModuleOfParent(DefinitionMergeService.java:1186) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.DefinitionMergeService.getOrCreateLocalDef(DefinitionMergeService.java:1163) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.DefinitionMergeService.createNewDef(DefinitionMergeService.java:1134) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.DefinitionMergeService.addLocalProperty(DefinitionMergeService.java:1772) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.DefinitionMergeService.mergePropertyThatShouldExist(DefinitionMergeService.java:1689) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.DefinitionMergeService.mergeProperty(DefinitionMergeService.java:1606) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.DefinitionMergeService.mergeConfigDefinitionNode(DefinitionMergeService.java:835) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.DefinitionMergeService.mergeChangesToModules(DefinitionMergeService.java:263) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.EventJournalProcessor.exportChangesModule(EventJournalProcessor.java:589) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.EventJournalProcessor.processEvents(EventJournalProcessor.java:366) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.EventJournalProcessor.tryProcessEvents(EventJournalProcessor.java:253) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at org.onehippo.cm.engine.autoexport.EventJournalProcessor.lambda$new$0(EventJournalProcessor.java:127) ~[hippo-repository-engine-5.0.2.jar:5.0.2] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_144] INFO at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_144] INFO at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_144] INFO at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_144] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_144] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_144] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144] INFO 09:25:12 INFO autoexport is processing changes... INFO 09:25:12 ERROR Processing events failed: INFO java.lang.IllegalStateException: Cannot get the parent of ROOT! INFO at org.onehippo.cm.model.path.JcrPathImpl.getParent(JcrPathImpl.java:84) ~[hippo-configuration-management-model-1.0.2.jar:1.0.2] ... repeating...
Attachments
Issue Links
- is backported by
-
REPO-1896 [Backport 12.0] Autoexport: repeated IllegalStateExceptions when changing the root node
- Closed