Me again, ...
On Samstag, 19. Februar 2011, Jörg Schaible wrote:
> On Samstag, 19. Februar 2011, Jörg Schaible wrote:
> > Hi Nils,
> >
> > On Samstag, 19. Februar 2011, Nils Breunese wrote:
> > > Magnolia 4.4 introduced the override mechanism. See the release notes
> > > here: http://documentation.magnolia-cms.com/releases/4-4.html
> >
> > thanks and good to know. I see the announcement, but is there anywhere a
> > description or is it used somewhere in the STK/demo-projects/examples?
>
> OK, replying to myself. When I add a property "override" to the paragraphs
> node, none of the paragraphs templates is available anymore ... fine.
> However, there seems to be a bug, because when I add my own children, they
> are not recognized, in admin mode there are still no paragraphs available.
> Dropping the "override" property again, then all inherited paragraphs are
> available and also the ones I've added. Just by reviewing
> i.m.c.util.ExtendingContentWrapper it should have worked.
Just checked the logs, and the problem seems to be related with the paragraphs
node in special:
================= %< ====================
2011-02-19 14:45:02,935 ERROR
olia.content2bean.impl.Content2BeanTransformerImpl: Can't set property
[paragraphs] to value [{override=true,
stkTeaser=info.magnolia.module.templatingkit.templates.ParagraphConfig@499fcbfd,
stkTeaserNewsList=info.magnolia.module.templatingkit.templates.ParagraphConfig@1a0974ce,
stkTeaserEventsList=info.magnolia.module.templatingkit.templates.ParagraphConfig@62d38dbc,
stkTeaserGroup=info.magnolia.module.templatingkit.templates.ParagraphConfig@2efe6454,
stkTeaserHorizontalTabbed=info.magnolia.module.templatingkit.templates.ParagraphConfig@3f6cdee6,
stkTeaserPureLinkList=info.magnolia.module.templatingkit.templates.ParagraphConfig@49dee92}]
in bean [info.magnolia.module.templatingkit.templates.SectionMainArea] for
node /modules/standard-templating-
kit/templates/musikgalerie/siMusikgalerieHome/mainArea due to
java.lang.IllegalArgumentException: java.lang.ClassCastException@2655c78c
2011-02-19 14:45:02,935 ERROR org.apache.commons.beanutils.PropertyUtils
: Method invocation failed.
java.lang.IllegalArgumentException: java.lang.ClassCastException@1c99b59c
at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1773)
at
org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
at
org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1648)
at
org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
at
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1022)
at
info.magnolia.content2bean.impl.Content2BeanTransformerImpl.setProperty(Content2BeanTransformerImpl.java:290)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.setProperties(Content2BeanProcessorImpl.java:220)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:111)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toMap(Content2BeanProcessorImpl.java:178)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:94)
at
info.magnolia.content2bean.impl.Content2BeanProcessorImpl.toBean(Content2BeanProcessorImpl.java:68)
at
info.magnolia.content2bean.Content2BeanUtil.toBean(Content2BeanUtil.java:149)
at
info.magnolia.content2bean.Content2BeanUtil.toBean(Content2BeanUtil.java:135)
at
info.magnolia.module.templating.TemplateManager.addTemplatesToCache(TemplateManager.java:164)
at
info.magnolia.module.templating.TemplateManager.cacheContent(TemplateManager.java:185)
at
info.magnolia.module.templating.TemplateManager.onRegister(TemplateManager.java:83)
at
info.magnolia.cms.beans.config.ObservedManager.reload(ObservedManager.java:123)
at
info.magnolia.cms.beans.config.ObservedManager.reload(ObservedManager.java:108)
at
info.magnolia.cms.beans.config.ObservedManager$1.onEvent(ObservedManager.java:79)
at
info.magnolia.cms.util.ObservationUtil$ObservationBasedDelayedExecutor$1.run(ObservationUtil.java:228)
at
info.magnolia.cms.util.DelayedExecutor$RunnableWrapper.run(DelayedExecutor.java:104)
at EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:662)
2011-02-19 14:45:02,936 ERROR
olia.content2bean.impl.Content2BeanTransformerImpl: Can't set property
[paragraphs] to value [{override=true,
stkTeaser=info.magnolia.module.templatingkit.templates.ParagraphConfig@499fcbfd,
stkTeaserNewsList=info.magnolia.module.templatingkit.templates.ParagraphConfig@1a0974ce,
stkTeaserEventsList=info.magnolia.module.templatingkit.templates.ParagraphConfig@62d38dbc,
stkTeaserGroup=info.magnolia.module.templatingkit.templates.ParagraphConfig@2efe6454,
stkTeaserHorizontalTabbed=info.magnolia.module.templatingkit.templates.ParagraphConfig@3f6cdee6,
stkTeaserPureLinkList=info.magnolia.module.templatingkit.templates.ParagraphConfig@49dee92}]
in bean [info.magnolia.module.templatingkit.templates.SectionMainArea] for
node /modules/standard-templating-
kit/templates/musikgalerie/siMusikgalerieHome/mainArea due to
java.lang.IllegalArgumentException: Cannot invoke
info.magnolia.module.templatingkit.templates.Area.setParagraphs -
java.lang.ClassCastException@1c99b59c
================= %< ====================
- Jörg
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------