Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-3486

Update all content fails when an existing type has been edited

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • None
    • r2.10.00
    • None
    • None

    Description

      When a template for an existing type has been edited, update-all-content fails.

      Reproduction path:

      • open template for "defaultcontent:article"
      • click "edit"
      • click "done"
      • update-all-content on defaultcontent

      javax.jcr.nodetype.ConstraintViolationException: /hippo:namespaces/defaultcontent/article/hipposysedit:prototypes/hipposysedit:prototype[3]/defaultcontent:body: no definition found in parent node's node type for new node: no matching child node definition found for

      {http://www.hippoecm.org/defaultcontent/nt/1.7}

      body: no matching child node definition found for

      {http://www.hippoecm.org/defaultcontent/nt/1.7}

      body
      at org.apache.jackrabbit.core.SessionImpl.move(SessionImpl.java:999)
      at org.hippoecm.repository.decorating.SessionDecorator.move(SessionDecorator.java:194)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:258)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterSession.commit(UpdaterSession.java:214)
      at org.hippoecm.repository.updater.UpdaterEngine.upgrade(UpdaterEngine.java:558)
      at org.hippoecm.repository.updater.UpdaterEngine.migrate(UpdaterEngine.java:544)
      at org.hippoecm.repository.standardworkflow.RepositoryWorkflowImpl.updateModel(RepositoryWorkflowImpl.java:144)
      at org.hippoecm.repository.standardworkflow.RepositoryWorkflowImpl.updateModel(RepositoryWorkflowImpl.java:154)
      at org.hippoecm.repository.standardworkflow.RepositoryWorkflowImpl.updateModel(RepositoryWorkflowImpl.java:204)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationImpl.invoke(WorkflowManagerImpl.java:788)
      at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:512)
      at $Proxy2.updateModel(Unknown Source)
      at org.hippoecm.frontend.editor.workflow.RemodelWorkflowPlugin$1.execute(RemodelWorkflowPlugin.java:89)
      at org.hippoecm.frontend.editor.workflow.RemodelWorkflowPlugin$1.execute(RemodelWorkflowPlugin.java:1)
      at org.hippoecm.addon.workflow.CompatibilityWorkflowPlugin$WorkflowAction.execute(CompatibilityWorkflowPlugin.java:153)
      at org.hippoecm.addon.workflow.CompatibilityWorkflowPlugin$WorkflowAction$WorkflowDialog.execute(CompatibilityWorkflowPlugin.java:231)
      at org.hippoecm.frontend.editor.workflow.dialog.RemodelDialog.remodel(RemodelDialog.java:67)
      at org.hippoecm.frontend.editor.workflow.dialog.RemodelWizard$Step2$1.getLazyLoadComponent(RemodelWizard.java:84)
      at org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel$1.respond(AjaxLazyLoadPanel.java:79)
      at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
      at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
      at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:31)
      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
      at org.mortbay.jetty.Server.handle(Server.java:324)
      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
      Caused by: javax.jcr.nodetype.ConstraintViolationException: no matching child node definition found for

      {http://www.hippoecm.org/defaultcontent/nt/1.7}

      body
      at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicableChildNodeDef(EffectiveNodeType.java:730)
      at org.apache.jackrabbit.core.NodeImpl.getApplicableChildNodeDefinition(NodeImpl.java:878)
      at org.apache.jackrabbit.core.SessionImpl.move(SessionImpl.java:995)
      ... 55 more
      javax.jcr.nodetype.ConstraintViolationException: no matching child node definition found for

      {http://www.hippoecm.org/defaultcontent/nt/1.7}

      body
      at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicableChildNodeDef(EffectiveNodeType.java:730)
      at org.apache.jackrabbit.core.NodeImpl.getApplicableChildNodeDefinition(NodeImpl.java:878)
      at org.apache.jackrabbit.core.SessionImpl.move(SessionImpl.java:995)
      at org.hippoecm.repository.decorating.SessionDecorator.move(SessionDecorator.java:194)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:258)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterNode.commit(UpdaterNode.java:342)
      at org.hippoecm.repository.updater.UpdaterSession.commit(UpdaterSession.java:214)
      at org.hippoecm.repository.updater.UpdaterEngine.upgrade(UpdaterEngine.java:558)
      at org.hippoecm.repository.updater.UpdaterEngine.migrate(UpdaterEngine.java:544)
      at org.hippoecm.repository.standardworkflow.RepositoryWorkflowImpl.updateModel(RepositoryWorkflowImpl.java:144)
      at org.hippoecm.repository.standardworkflow.RepositoryWorkflowImpl.updateModel(RepositoryWorkflowImpl.java:154)
      at org.hippoecm.repository.standardworkflow.RepositoryWorkflowImpl.updateModel(RepositoryWorkflowImpl.java:204)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationImpl.invoke(WorkflowManagerImpl.java:788)
      at org.hippoecm.repository.impl.WorkflowManagerImpl$WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:512)
      at $Proxy2.updateModel(Unknown Source)
      at org.hippoecm.frontend.editor.workflow.RemodelWorkflowPlugin$1.execute(RemodelWorkflowPlugin.java:89)
      at org.hippoecm.frontend.editor.workflow.RemodelWorkflowPlugin$1.execute(RemodelWorkflowPlugin.java:1)

      Attachments

        Activity

          People

            berry van halderen Berry van Halderen (Inactive)
            fvlankvelt Frank van Lankvelt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: