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

Error adding a compound type to document type

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • r2.07.00
    • r2.08.00
    • None
    • None

    Description

      1. Start the CMS 2.07.00 (I used mvn jetty:run-war quickstart/war from 2.07.00 code)
      2. Login as admin.
      3. Click on "To the Documents" .
      4. Click on "Configuration".
      5. Under hippo:namespaces, click and defaultcontent
      6. Select text (compound type) from the list.
      7. Click on Edit.
      8. Click on the Date primitive field to add it to the text compound type.
      9. Click Save
      10. Click Done.
      11. Click on Article Document Type
      12. Click on Edit
      13. Add the 'text' compound type.

      I get the following stack trace in the console:

      11.08.2009 12:24:31 ERROR [org.hippoecm.frontend.editor.model.ValueTemplateProvider.addNew():101] no matching property definition found for

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

      date
      javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for

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

      date
      at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef(EffectiveNodeType.java:768)
      at org.apache.jackrabbit.core.NodeImpl.getApplicablePropertyDefinition(NodeImpl.java:912)
      at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(NodeImpl.java:405)
      at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(NodeImpl.java:376)
      at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2402)
      at org.hippoecm.repository.decorating.NodeDecorator.setProperty(NodeDecorator.java:103)
      at org.hippoecm.repository.decorating.checked.NodeDecorator.setProperty(NodeDecorator.java:146)
      at org.hippoecm.frontend.editor.model.ValueTemplateProvider.addNew(ValueTemplateProvider.java:70)
      at org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin.newProvider(PropertyFieldPlugin.java:126)
      at org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin.newProvider(PropertyFieldPlugin.java:47)
      at org.hippoecm.frontend.editor.plugins.field.FieldPlugin.updateProvider(FieldPlugin.java:115)
      at org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin.<init>(PropertyFieldPlugin.java:85)
      at sun.reflect.GeneratedConstructorAccessor78.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.hippoecm.frontend.plugin.impl.PluginFactory.createPlugin(PluginFactory.java:71)
      at org.hippoecm.frontend.plugin.impl.PluginManager.start(PluginManager.java:84)
      at org.hippoecm.frontend.plugin.impl.PluginContext.start(PluginContext.java:241)
      at org.hippoecm.frontend.plugin.impl.ClusterControl.start(ClusterControl.java:112)
      at org.hippoecm.frontend.editor.plugins.field.FieldPlugin$TemplateController.addModel(FieldPlugin.java:217)
      at org.hippoecm.frontend.editor.plugins.field.FieldPlugin$TemplateController.start(FieldPlugin.java:187)
      at org.hippoecm.frontend.editor.plugins.field.FieldPlugin.updateProvider(FieldPlugin.java:118)
      at org.hippoecm.frontend.editor.plugins.field.NodeFieldPlugin.<init>(NodeFieldPlugin.java:70)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.hippoecm.frontend.plugin.impl.PluginFactory.createPlugin(PluginFactory.java:71)
      at org.hippoecm.frontend.plugin.impl.PluginManager.start(PluginManager.java:84)
      at org.hippoecm.frontend.plugin.impl.PluginContext.start(PluginContext.java:241)
      at org.hippoecm.frontend.plugin.impl.ClusterControl.start(ClusterControl.java:112)
      at org.hippoecm.frontend.editor.builder.RenderPluginEditorPlugin.updatePreview(RenderPluginEditorPlugin.java:282)
      at org.hippoecm.frontend.editor.builder.RenderPluginEditorPlugin.<init>(RenderPluginEditorPlugin.java:196)
      at org.hippoecm.frontend.editor.plugins.field.FieldPluginEditorPlugin.<init>(FieldPluginEditorPlugin.java:181)
      at sun.reflect.GeneratedConstructorAccessor77.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.hippoecm.frontend.plugin.impl.PluginFactory.createPlugin(PluginFactory.java:71)
      at org.hippoecm.frontend.plugin.impl.PluginManager.start(PluginManager.java:84)
      at org.hippoecm.frontend.plugin.impl.PluginContext.start(PluginContext.java:241)
      at org.hippoecm.frontend.plugin.impl.ClusterControl.start(ClusterControl.java:112)
      at org.hippoecm.frontend.editor.builder.TemplateTypeEditorPlugin.onModelChanged(TemplateTypeEditorPlugin.java:173)
      at org.apache.wicket.Component.modelChanged(Component.java:2105)
      at org.hippoecm.frontend.editor.builder.TemplateTypeEditorPlugin$TemplateObserver.onEvent(TemplateTypeEditorPlugin.java:63)
      at org.hippoecm.frontend.model.event.ObservableRegistry$ObservationContext.notifyObservers(ObservableRegistry.java:76)
      at org.hippoecm.frontend.editor.builder.TemplateBuilder.notifyObservers(TemplateBuilder.java:516)
      at org.hippoecm.frontend.editor.builder.TemplateBuilder.access$600(TemplateBuilder.java:61)
      at org.hippoecm.frontend.editor.builder.TemplateBuilder$3.onEvent(TemplateBuilder.java:416)
      at org.hippoecm.frontend.model.event.ObservableRegistry$ObservationContext.notifyObservers(ObservableRegistry.java:76)
      at org.hippoecm.frontend.plugin.config.impl.JcrClusterConfig$PluginList.notifyObservers(JcrClusterConfig.java:221)
      at org.hippoecm.frontend.plugin.config.impl.JcrClusterConfig$PluginList.add(JcrClusterConfig.java:170)
      at org.hippoecm.frontend.plugin.config.impl.JcrClusterConfig$PluginList.add(JcrClusterConfig.java:100)
      at java.util.AbstractList.add(AbstractList.java:91)
      at org.hippoecm.frontend.editor.builder.TemplateBuilder.processFieldAdded(TemplateBuilder.java:353)
      at org.hippoecm.frontend.editor.builder.TemplateBuilder$2.onEvent(TemplateBuilder.java:371)
      at org.hippoecm.frontend.model.event.ObservableRegistry$ObservationContext.notifyObservers(ObservableRegistry.java:76)
      at org.hippoecm.editor.tools.JcrTypeDescriptor.updateFields(JcrTypeDescriptor.java:445)
      at org.hippoecm.editor.tools.JcrTypeDescriptor.addField(JcrTypeDescriptor.java:221)
      at org.hippoecm.frontend.editor.builder.TemplateListPlugin$CategoryView$1.onClick(TemplateListPlugin.java:160)
      at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:65)
      at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:163)
      at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297)
      at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100)
      at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
      at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:31)
      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1252)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200)
      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:726)
      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      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:829)
      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.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

      Attachments

        Issue Links

          Activity

            People

              fvlankvelt Frank van Lankvelt (Inactive)
              vkiran Vijay Kiran (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: