Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5906

Cannot bootstrap new DAM content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an issue
    • Neutral
    • None
    • 5.3.2
    • None
    • None
    • rhel

    Description

      I am trying to test for an upgrade of magnolia. I exported all of the DAM/Assets from magnolia and included in my mgnl-bootstrap/my-module folder but when i try to install the log tells me that an Item does not exist anymore plus a couple of other errors immediately after, see below.

      I checked my bootstrap file and the uuid the error points to is there. I haven't had this issue installing this same bootstrap file other times this week. The only change I made before this was to add a couple of new files to bootstrap for a new template page.

      I cannot attach my dam bootstrap file because its too large. could this be the reason it is not working? I am not sure it would be because the error occurs at line 503 and there are 20,000+ lines in that file.

      I have added the ActivateContentTask class mentioned below in the error for reference.

      Logs:

      2014-09-04 15:10:04,699 ERROR com.nrgedge.delta.ActivateContentTask             : RepositoryException in class com.nrgedge.delta.ActivateContentTask
      javax.jcr.InvalidItemStateException: Item does not exist anymore: b0e6e70d-271c-4f59-8614-b26679d7f492
      	at org.apache.jackrabbit.core.ItemImpl.itemSanityCheck(ItemImpl.java:116)
      	at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:90)
      	at org.apache.jackrabbit.core.NodeImpl.getNodes(NodeImpl.java:2202)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNodes(DelegateNodeWrapper.java:202)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNodes(ContentDecoratorNodeWrapper.java:129)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNodes(DelegateNodeWrapper.java:202)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNodes(ContentDecoratorNodeWrapper.java:129)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.getNodes(DelegateNodeWrapper.java:202)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.getNodes(ContentDecoratorNodeWrapper.java:129)
      	at info.magnolia.jcr.util.NodeUtil.getNodes(NodeUtil.java:666)
      	at info.magnolia.jcr.util.NodeUtil.visit(NodeUtil.java:657)
      	at info.magnolia.jcr.util.NodeUtil.visit(NodeUtil.java:658)
      	at info.magnolia.jcr.util.NodeUtil.visit(NodeUtil.java:658)
      	at info.magnolia.jcr.util.NodeUtil.visit(NodeUtil.java:658)
      	at info.magnolia.jcr.util.NodeUtil.visit(NodeUtil.java:651)
      	at com.nrgedge.delta.AbstractProcessContentTask.processDam(AbstractProcessContentTask.java:41)
      	at com.nrgedge.delta.AbstractProcessContentTask.execute(AbstractProcessContentTask.java:32)
      	at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:514)
      	at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:496)
      	at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:274)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:414)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:411)
      	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
      	at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:268)
      	at info.magnolia.module.ui.ModuleManagerNullUI.onStartup(ModuleManagerNullUI.java:66)
      	at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:149)
      	at info.magnolia.init.MagnoliaServletContextListener$1.doExec(MagnoliaServletContextListener.java:248)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:414)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:411)
      	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
      	at info.magnolia.init.MagnoliaServletContextListener.startServer(MagnoliaServletContextListener.java:245)
      	at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:171)
      	at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:125)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      2014-09-04 15:10:05,047 ERROR info.magnolia.module.InstallContextImpl           : > Could not install or update eyefinity module. Task 'Install templates' failed. (RepositoryException: Cannot save a new item: item.save())
      info.magnolia.module.delta.TaskExecutionException: Failed to update templates with Cannot save a new item: item.save()
      	at info.magnolia.module.inplacetemplating.setup.TemplatesInstallTask.execute(TemplatesInstallTask.java:153)
      	at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:514)
      	at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:496)
      	at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:274)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:414)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:411)
      	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
      	at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:268)
      	at info.magnolia.module.ui.ModuleManagerNullUI.onStartup(ModuleManagerNullUI.java:66)
      	at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:149)
      	at info.magnolia.init.MagnoliaServletContextListener$1.doExec(MagnoliaServletContextListener.java:248)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:414)
      	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:411)
      	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:385)
      	at info.magnolia.init.MagnoliaServletContextListener.startServer(MagnoliaServletContextListener.java:245)
      	at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:171)
      	at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:125)
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: javax.jcr.RepositoryException: Cannot save a new item: item.save()
      	at org.apache.jackrabbit.core.ItemSaveOperation.getTransientStates(ItemSaveOperation.java:349)
      	at org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:98)
      	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
      	at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
      	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.save(DelegateNodeWrapper.java:541)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.save(DelegateNodeWrapper.java:541)
      	at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.save(MgnlPropertySettingNodeWrapper.java:248)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.save(DelegateNodeWrapper.java:541)
      	at info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper.save(MgnlAuditLoggingContentDecoratorNodeWrapper.java:235)
      	at info.magnolia.cms.core.DefaultContent.save(DefaultContent.java:510)
      	at info.magnolia.cms.util.ContentUtil.createPath(ContentUtil.java:446)
      	at info.magnolia.cms.util.ContentUtil.createPath(ContentUtil.java:419)
      	at info.magnolia.module.inplacetemplating.setup.TemplatesInstallTask.execute(TemplatesInstallTask.java:140)
      	... 25 more

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              steven.mcdermott Steven McDermott
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD