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

ConstraintViolationException stacktrace when adding a Mixins/Canonised property while editing a compound/document type

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • None
    • 2.24.01
    • None
    • None

    Description

      Scenario:
      --------------

      • Login to the CMS
      • From the 'Browse' perspective go to the 'Configuration' tab
      • From the 'hippogogreen' namespace either add a new document/compound type or edit an existing one
      • While in 'Edit' mode, add a 'Canonised' property

      Expected:
      ---------------

      • The property should be added with no problems or exceptions in logs

      Actual:
      ----------

      • A 'ConstraintViolationException' stacktrace is shown in the logs (see below)

      Additionally While the 'Canonised' property still added to the compound/document type the later can not be committed (see attached image)

      ================================================================================================================================

      [INFO] [talledLocalContainer] 13.02.2013 12:15:05 ERROR [org.hippoecm.frontend.editor.plugins.mixin.MixinLoaderPluginEditorPlugin$PropertyEditor.getClusterParameters():118] failed to add child node to plugin config
      [INFO] [talledLocalContainer] javax.jcr.nodetype.ConstraintViolationException: /hippo:namespaces/hippogogreen/ttt/hipposysedit:prototypes/hipposysedit:prototype[2]: mandatory property

      {http://www.hippoecm.org/hippotaxonomy/nt/1.2}

      canonkey does not exist
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemSaveOperation.validateTransientItems(ItemSaveOperation.java:537)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemSaveOperation.perform(ItemSaveOperation.java:216)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:329)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionSaveOperation.perform(SessionSaveOperation.java:43)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:200)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:359)
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:762)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.SessionDecorator.save(SessionDecorator.java:202)
      [INFO] [talledLocalContainer] at org.hippoecm.repository.impl.SessionDecorator.save(SessionDecorator.java:177)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.editor.plugins.mixin.MixinLoaderPluginEditorPlugin$PropertyEditor.getClusterParameters(MixinLoaderPluginEditorPlugin.java:116)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.editor.plugins.mixin.MixinLoaderPluginEditorPlugin$PropertyEditor.onBeforeRender(MixinLoaderPluginEditorPlugin.java:92)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.beforeRender(Component.java:1103)
      [INFO] [talledLocalContainer] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.onBeforeRender(Component.java:4001)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.beforeRender(Component.java:1103)
      [INFO] [talledLocalContainer] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.onBeforeRender(Component.java:4001)
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:151)
      [INFO] [talledLocalContainer] at org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:121)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.beforeRender(Component.java:1103)
      [INFO] [talledLocalContainer] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1777)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.onBeforeRender(Component.java:4001)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.service.render.AbstractRenderService.onBeforeRender(AbstractRenderService.java:532)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.internalBeforeRender(Component.java:1069)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.beforeRender(Component.java:1103)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.prepareForRender(Component.java:2297)
      [INFO] [talledLocalContainer] at org.apache.wicket.Component.prepareForRender(Component.java:2329)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:853)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:680)
      [INFO] [talledLocalContainer] at org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:590)
      [INFO] [talledLocalContainer] at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.PluginRequestCycleProcessor.respond(PluginRequestCycleProcessor.java:74)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1287)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.step(RequestCycle.java:1358)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1465)
      [INFO] [talledLocalContainer] at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:486)
      [INFO] [talledLocalContainer] at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:319)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.hippoecm.frontend.plugins.login.ConcurrentLoginFilter.doFilter(ConcurrentLoginFilter.java:54)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      [INFO] [talledLocalContainer] at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:615)
      [INFO] [talledLocalContainer] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      [INFO] [talledLocalContainer] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
      [INFO] [talledLocalContainer] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
      [INFO] [talledLocalContainer] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      [INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:662)

      Attachments

        Issue Links

          Activity

            People

              jsheriff Junaidh Kadhar Sheriff
              mnour Mohammad Nour (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: