-
Bug
-
Resolution: Invalid
-
Minor
-
2.7.0
-
None
-
None
How to reproduce it :
Create a survey :
- enter a short title,
- enter a title,
- select an image,
- click on OK button
> an error occurs :
Date: Tue May 26 23:00:39 CEST 2020 (1590526839782)Date: Tue May 26 23:00:39 CEST 2020 (1590526839782)Thread: http-nio-10011-exec-2Message #: 2338Level: ERRORNDC: Category: org.ametys.plugins.core.uiMessage: Can not dispatch request '2' : 'core-ui' 'client-call' '{role=org.ametys.plugins.survey.dao.SurveyDAO, methodName=editSurvey, parameters=[{id=survey://e28dfb7c-c064-403a-9f81-2fff5184aebb, label=Consommation d'eau, title=Enquête beta, picture={"id":"71aadeb0-e327-46f0-ab0e-f3dddbf8f374","filename":"artichokes-square.jpg","size":245042,"viewUrl":"/cms/plugins/core/upload/file?id=71aadeb0-e327-46f0-ab0e-f3dddbf8f374","downloadUrl":"/cms/plugins/core/upload/file?id=71aadeb0-e327-46f0-ab0e-f3dddbf8f374&download=true","type":"metadata"}, picture-alternative=, description= Ut auctor in sem sit amet vulputate. Sed velit arcu, rhoncus quis est at, auctor pulvinar libero. Nunc erat diam, vehicula id quam at, venenatis luctus arcu. Fusce diam ante, aliquam sed lobortis ut, vehicula et ex. Morbi ac felis id metus consequat volutpat a a nisl. Duis tincidunt elementum fringilla., endingMessage= Ut auctor in sem sit amet vulputate. Sed velit arcu, rhoncus quis est at, auctor pulvinar libero. Nunc erat diam, vehicula id quam at, venenatis luctus arcu. Fusce diam ante, aliquam sed lobortis ut, vehicula et ex. Morbi ac felis id metus consequat volutpat a a nisl. Duis tincidunt elementum fringilla.}, www, fr]}'Location: org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)Thrown:org.apache.cocoon.util.location.LocatedException: Can not dispatch request '2' : 'core-ui' 'client-call' '{role=org.ametys.plugins.survey.dao.SurveyDAO, methodName=editSurvey, parameters=[{id=survey://e28dfb7c-c064-403a-9f81-2fff5184aebb, label=Consommation d'eau, title=Enquête beta, picture={"id":"71aadeb0-e327-46f0-ab0e-f3dddbf8f374","filename":"artichokes-square.jpg","size":245042,"viewUrl":"/cms/plugins/core/upload/file?id=71aadeb0-e327-46f0-ab0e-f3dddbf8f374","downloadUrl":"/cms/plugins/core/upload/file?id=71aadeb0-e327-46f0-ab0e-f3dddbf8f374&download=true","type":"metadata"}, picture-alternative=, description= Ut auctor in sem sit amet vulputate. Sed velit arcu, rhoncus quis est at, auctor pulvinar libero. Nunc erat diam, vehicula id quam at, venenatis luctus arcu. Fusce diam ante, aliquam sed lobortis ut, vehicula et ex. Morbi ac felis id metus consequat volutpat a a nisl. Duis tincidunt elementum fringilla., endingMessage= Ut auctor in sem sit amet vulputate. Sed velit arcu, rhoncus quis est at, auctor pulvinar libero. Nunc erat diam, vehicula id quam at, venenatis luctus arcu. Fusce diam ante, aliquam sed lobortis ut, vehicula et ex. Morbi ac felis id metus consequat volutpat a a nisl. Duis tincidunt elementum fringilla.}, www, fr]}' at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:196) at org.ametys.core.ui.dispatcher.DispatchGenerator.generate(DispatchGenerator.java:94) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254) at org.apache.cocoon.Cocoon.process(Cocoon.java:699) at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:572) at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:678) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.base/java.lang.Thread.run(Thread.java:834)Caused by: org.apache.excalibur.source.SourceException: Cannot get input stream for cocoon://_plugins/core-ui/client-call?role=org.ametys.plugins.survey.dao.SurveyDAO&methodName=editSurvey¶meters={id%3Dsurvey://e28dfb7c-c064-403a-9f81-2fff5184aebb, label%3DConsommation d'eau, title%3DEnquête beta, picture%3D{"id":"71aadeb0-e327-46f0-ab0e-f3dddbf8f374","filename":"artichokes-square.jpg","size":245042,"viewUrl":"/cms/plugins/core/upload/file?id%3D71aadeb0-e327-46f0-ab0e-f3dddbf8f374","downloadUrl":"/cms/plugins/core/upload/file?id%3D71aadeb0-e327-46f0-ab0e-f3dddbf8f374%26download%3Dtrue","type":"metadata"}, picture-alternative%3D, description%3D Ut auctor in sem sit amet vulputate. Sed velit arcu, rhoncus quis est at, auctor pulvinar libero. Nunc erat diam, vehicula id quam at, venenatis luctus arcu. Fusce diam ante, aliquam sed lobortis ut, vehicula et ex. Morbi ac felis id metus consequat volutpat a a nisl. Duis tincidunt elementum fringilla., endingMessage%3D Ut auctor in sem sit amet vulputate. Sed velit arcu, rhoncus quis est at, auctor pulvinar libero. Nunc erat diam, vehicula id quam at, venenatis luctus arcu. Fusce diam ante, aliquam sed lobortis ut, vehicula et ex. Morbi ac felis id metus consequat volutpat a a nisl. Duis tincidunt elementum fringilla.}¶meters=www¶meters=fr& at org.apache.cocoon.components.source.impl.SitemapSource.getInputStream(SitemapSource.java:253) at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:155) ... 69 moreCaused by: org.xml.sax.SAXException: Could not get sitemap source cocoon://_plugins/core-ui/client-call?role=org.ametys.plugins.survey.dao.SurveyDAO&methodName=editSurvey¶meters={id%3Dsurvey://e28dfb7c-c064-403a-9f81-2fff5184aebb, label%3DConsommation d'eau, title%3DEnquête beta, picture%3D{"id":"71aadeb0-e327-46f0-ab0e-f3dddbf8f374","filename":"artichokes-square.jpg","size":245042,"viewUrl":"/cms/plugins/core/upload/file?id%3D71aadeb0-e327-46f0-ab0e-f3dddbf8f374","downloadUrl":"/cms/plugins/core/upload/file?id%3D71aadeb0-e327-46f0-ab0e-f3dddbf8f374%26download%3Dtrue","type":"metadata"}, picture-alternative%3D, description%3D Ut auctor in sem sit amet vulputate. Sed velit arcu, rhoncus quis est at, auctor pulvinar libero. Nunc erat diam, vehicula id quam at, venenatis luctus arcu. Fusce diam ante, aliquam sed lobortis ut, vehicula et ex. Morbi ac felis id metus consequat volutpat a a nisl. Duis tincidunt elementum fringilla., endingMessage%3D Ut auctor in sem sit amet vulputate. Sed velit arcu, rhoncus quis est at, auctor pulvinar libero. Nunc erat diam, vehicula id quam at, venenatis luctus arcu. Fusce diam ante, aliquam sed lobortis ut, vehicula et ex. Morbi ac felis id metus consequat volutpat a a nisl. Duis tincidunt elementum fringilla.}¶meters=www¶meters=fr&org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:151:82 at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:380) at org.apache.cocoon.components.source.impl.SitemapSource.<init>(SitemapSource.java:215) at org.apache.cocoon.components.source.impl.SitemapSourceFactory.getSource(SitemapSourceFactory.java:68) at org.apache.excalibur.source.impl.SourceResolverImpl.resolveURI(SourceResolverImpl.java:208) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonComponentManager.java:558) at org.ametys.core.ui.dispatcher.DispatchGenerator._dispatching(DispatchGenerator.java:151) ... 69 moreCaused by: org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:151:82 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:113) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:122) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:194) at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267) at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:333) ... 77 moreCaused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:204) at org.ametys.core.ui.ExecuteClientCallsAction.act(ExecuteClientCallsAction.java:182) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:120) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47) at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.buildPipeline(ConcreteTreeProcessor.java:194) at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:111) ... 87 moreCaused by: org.ametys.plugins.repository.AmetysRepositoryException: Unable to set the value 'false' for data 'ametys-internal:isEmpty' in repository data at path '/ametys:root/ametys-internal:sites/45/7d/www/ametys-internal:plugins/survey/ametys:surveys/fr/consommation-d-eau/ametys:picture (8e1bc702-1143-4edc-bea9-046f653887d0)'. at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.setValue(JCRRepositoryData.java:777) at org.ametys.cms.data.type.ResourceElementTypeHelper.writeSingleBinaryValue(ResourceElementTypeHelper.java:249) at org.ametys.cms.data.type.impl.BinaryRepositoryElementType.writeSingleValue(BinaryRepositoryElementType.java:48) at org.ametys.cms.data.type.impl.BinaryRepositoryElementType.writeSingleValue(BinaryRepositoryElementType.java:29) at org.ametys.plugins.repository.data.type.ComplexRepositoryElementType.write(ComplexRepositoryElementType.java:129) at org.ametys.plugins.repository.data.holder.impl.DefaultModifiableModelLessDataHolder.setValue(DefaultModifiableModelLessDataHolder.java:223) at org.ametys.plugins.repository.data.ametysobject.ModifiableModelLessDataAwareAmetysObject.setValue(ModifiableModelLessDataAwareAmetysObject.java:62) at org.ametys.plugins.survey.repository.AbstractSurveyElement.setExternalPicture(AbstractSurveyElement.java:99) at org.ametys.plugins.survey.dao.AbstractDAO.setPicture(AbstractDAO.java:251) at org.ametys.plugins.survey.dao.SurveyDAO._setValues(SurveyDAO.java:300) at org.ametys.plugins.survey.dao.SurveyDAO.editSurvey(SurveyDAO.java:268) ... 104 moreCaused by: javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {http://www.ametys.org/jcr/repository/internal/1.0}isEmpty at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef(EffectiveNodeType.java:782) at org.apache.jackrabbit.core.NodeImpl.getApplicablePropertyDefinition(NodeImpl.java:852) at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty(NodeImpl.java:400) at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2056) at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2002) at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1924) at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1946) at org.ametys.plugins.repository.data.repositorydata.impl.JCRRepositoryData.setValue(JCRRepositoryData.java:773) ... 114 more