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

Problem after editing Compound Type

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • r2.07.01
    • r2.07.01
    • None
    • None
    • jetty with 2.07.01 quickstart/war

    Description

      1. Login cms as admin.
      2. Click on To the documents.
      3. Click on Configuration > defaultcontent
      4. Select "text" Compound Type
      5. Click Edit
      6. Add a new String Primitive field by clickin on "String".
      7. Select the newly added string field, and under the Path enter "defaultcontent:somestring"
      8. Click save and done.
      9. Click on Documents
      10. Select "Add new document" in the popup menu for articles
      11. Enter name as "article10" and select Documen type as "Article".
      12. Click OK
      13. In the document editor click on the '+' sign under Text

      Expected Behavior

      • A new Text compound type field is added with all the fields as per the compound

      Actual Behavior:

      • A new field is added, but the field is missing the input area for the newly added field (as per step 6).

      See attached screeshot

      Console Log:

      19.08.2009 11:23:34 WARN [org.apache.wicket.markup.html.form.AbstractTextComponent.getModelType():148] Couldn't resolve model type of Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[Model:classname=[org.apache.wicket.model.Model]:object=[{engine=${engine}, mode=${mode}, wicket.model=${wicket.model}, plugin.class=org.hippoecm.frontend.editor.plugins.field.PropertyFieldPlugin, field=92ba26db-8497-4b45-b12e-e3c0f07a0ad0, wicket.id=${cluster.id}.field, caption=String, cluster.options=[{}]}]]:expression=[caption] for [MarkupContainer [Component id = widget]], please set the type yourself.
      19.08.2009 11:23:34 WARN [org.apache.wicket.markup.html.form.AbstractTextComponent.getModelType():148] Couldn't resolve model type of Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[Model:classname=[org.apache.wicket.model.Model]:object=[{}]]:expression=[size] for [MarkupContainer [Component id = widget]], please set the type yourself.
      19.08.2009 11:26:31 ERROR [org.hippoecm.frontend.editor.model.ValueTemplateProvider.addNew():101] no matching property definition found for

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

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

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

      somestring
      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.GeneratedConstructorAccessor99.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.onModelChanged(NodeFieldPlugin.java:91)
      at org.apache.wicket.Component.modelChanged(Component.java:2105)
      at org.hippoecm.frontend.editor.plugins.field.NodeFieldPlugin.onEvent(NodeFieldPlugin.java:123)
      at org.hippoecm.frontend.model.event.ObservableRegistry$ObservationContext.notifyObservers(ObservableRegistry.java:76)
      at org.hippoecm.frontend.model.event.JcrEventListener.onEvent(JcrEventListener.java:62)
      at org.hippoecm.frontend.JcrObservationManager$JcrListener.process(JcrObservationManager.java:760)
      at org.hippoecm.frontend.JcrObservationManager.processEvents(JcrObservationManager.java:1042)
      at org.hippoecm.frontend.Home.processEvents(Home.java:145)
      at org.hippoecm.frontend.PluginRequestCycleProcessor.processEvents(PluginRequestCycleProcessor.java:37)
      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

        Activity

          People

            Unassigned Unassigned
            vkiran Vijay Kiran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: