Select several news and exececute the following script
return Content.selection;
it will fail with 3 exceptions: twice the same that it cannot create the illustration column and then a stackoverflow of json
Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Unable to create local component managers. @null at org.ametys.cms.search.ui.model.StaticSearchUIModel.configure(StaticSearchUIModel.java:235) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:202) at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.configureAndStart(ThreadSafeComponentManager.java:396) at org.ametys.runtime.plugin.component.ThreadSafeComponentManager$ComponentFactory.newInstance(ThreadSafeComponentManager.java:415) at org.ametys.runtime.plugin.component.ThreadSafeComponentManager.initialize(ThreadSafeComponentManager.java:230) ... 110 more Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Unable to parse columns of search model @null at org.ametys.cms.search.ui.model.StaticSearchUIModel.configure(StaticSearchUIModel.java:226) ... 114 more Caused by: java.lang.IllegalArgumentException: Unable to create a column from the given model item 'illustration'. This model item is not a repeater or an element. at org.ametys.cms.search.ui.model.SearchUIColumnHelper.createModelItemColumn(SearchUIColumnHelper.java:83) at org.ametys.cms.search.ui.model.StaticSearchUIModelColumnsParser._createModelViewItemInstance(StaticSearchUIModelColumnsParser.java:125) at org.ametys.runtime.model.AbstractViewParser.createModelViewItem(AbstractViewParser.java:297) at org.ametys.cms.search.ui.model.StaticSearchUIModelColumnsParser.createModelViewItem(StaticSearchUIModelColumnsParser.java:99) at org.ametys.runtime.model.AbstractViewParser.parseAllModelViewItems(AbstractViewParser.java:270) at org.ametys.runtime.model.AbstractViewParser._parseModelViewItem(AbstractViewParser.java:231) at org.ametys.runtime.model.AbstractViewParser._parseViewChild(AbstractViewParser.java:139) at org.ametys.runtime.model.AbstractViewParser.parseView(AbstractViewParser.java:57) at org.ametys.cms.search.ui.model.StaticSearchUIModel.configure(StaticSearchUIModel.java:222) ... 114 more
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:178) at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:732) at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:772) (a hundred times) Caused by: java.lang.StackOverflowError at org.apache.jackrabbit.spi.commons.name.PathMap$Element.getPath(PathMap.java:492) at org.apache.jackrabbit.spi.commons.name.PathMap$Element.getPath(PathMap.java:492) at org.apache.jackrabbit.spi.commons.name.PathMap$Element.getPath(PathMap.java:492) at org.apache.jackrabbit.spi.commons.name.PathMap$Element.getPath(PathMap.java:492) at org.apache.jackrabbit.spi.commons.name.PathMap$Element.getPath(PathMap.java:478) at org.apache.jackrabbit.core.CachingHierarchyManager.getPath(CachingHierarchyManager.java:259) at org.apache.jackrabbit.core.ItemImpl.getPrimaryPath(ItemImpl.java:188) at org.apache.jackrabbit.core.NodeImpl.getPrimaryPath(NodeImpl.java:2810) at org.apache.jackrabbit.core.ItemImpl$2.perform(ItemImpl.java:379) at org.apache.jackrabbit.core.ItemImpl$2.perform(ItemImpl.java:376) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) at org.apache.jackrabbit.core.ItemImpl.getPath(ItemImpl.java:376) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.toString(JCRRepositoryData.java:1006) at java.base/java.lang.String.valueOf(String.java:4216) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.getType(JCRRepositoryData.java:528) at org.ametys.plugins.repository.data.repositorydata.RepositoryData.getType(RepositoryData.java:376) at org.ametys.plugins.repository.data.type.RepositoryModelItemType.isCompatible(RepositoryModelItemType.java:42) at org.ametys.plugins.repository.data.holder.impl.DefaultModelLessDataHolder.lambda$6(DefaultModelLessDataHolder.java:493) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1845) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at org.ametys.plugins.repository.data.holder.impl.DefaultModelLessDataHolder._getType(DefaultModelLessDataHolder.java:494) at org.ametys.plugins.repository.data.holder.impl.DefaultModelLessDataHolder.getType(DefaultModelLessDataHolder.java:469) at org.ametys.plugins.repository.data.holder.impl.DefaultModelLessDataHolder.getValue(DefaultModelLessDataHolder.java:170) at org.ametys.cms.repository.WorkflowAwareContentHelper.getProposalDate(WorkflowAwareContentHelper.java:159) at org.ametys.web.repository.content.jcr.ModifiableDefaultWebContent.getProposalDate(ModifiableDefaultWebContent.java:94) at jdk.internal.reflect.GeneratedMethodAccessor143.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:688) ... 985 more
- discovered while testing
-
CMS-10260 [Script binding] Content.selection display of multilingual titles
- Closed