Uploaded image for project: 'Front Edition'
  1. Front Edition
  2. FRONTEDIT-235

Impossible to update avatar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.13.0
    • 1.13.0
    • None
    • 4.8.0 M2

      When trying to update avatar, following error is present : 

      Date : 07/09 14:28:59.921
      Thread : Thread[http-nio-8080-exec-12,5,main]
      Niveau : ERROR
      Catégorie : org.ametys.plugins.frontedition.DispatchGenerator
      URI de la requête : /cms/generate/catalog/_plugins/front-edition/servercomm/messages.xml
      Message : Can not dispatch request '1' : 'front-edition' 'content/get-server-values.json' '

      {contentId=[content://1412606b-726c-45da-98d2-44e524372c77], workflowIds=42, isEditionMetadataSet=true, metadataPaths=illustration/image, validateContent=true}

      '
      Emplacement : org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)Pile d'appels :
      org.apache.cocoon.util.location.LocatedException: Can not dispatch request '1' : 'front-edition' 'content/get-server-values.json' '

      {contentId=[content://1412606b-726c-45da-98d2-44e524372c77], workflowIds=42, isEditionMetadataSet=true, metadataPaths=illustration/image, validateContent=true}

      '
      at org.ametys.core.ui.dispatcher.DispatchGenerator#dispatching:_198
      at org.ametys.core.ui.dispatcher.DispatchGenerator#generate:95
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581
      at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:483
      at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode#invoke:144
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
      at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
      at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#handleCocoonRedirect:300
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#access$000:49
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector#cocoonRedirect:348
      at org.apache.cocoon.environment.ForwardRedirector#redirect:60
      at org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINode#invoke:70
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
      at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
      at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#handleCocoonRedirect:300
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#access$000:49
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector#cocoonRedirect:348
      at org.apache.cocoon.environment.ForwardRedirector#redirect:60
      at org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINode#invoke:70
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
      at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
      at org.apache.cocoon.components.treeprocessor.sitemap.MountNode#invoke:118
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:47
      at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode#invoke:108
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode#invoke:143
      at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode#invokeNodes:69
      at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode#invoke:93
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:236
      at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor#process:178
      at org.apache.cocoon.components.treeprocessor.TreeProcessor#process:254
      at org.apache.cocoon.Cocoon#process:699
      at org.ametys.runtime.servlet.RuntimeServlet#service:717
      at javax.servlet.http.HttpServlet#service:623
      at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:209
      at org.apache.catalina.core.ApplicationFilterChain#doFilter:153
      at org.apache.tomcat.websocket.server.WsFilter#doFilter:51
      at org.apache.catalina.core.ApplicationFilterChain#internalDoFilter:178
      at org.apache.catalina.core.ApplicationFilterChain#doFilter:153
      at org.apache.catalina.core.StandardWrapperValve#invoke:167
      at org.apache.catalina.core.StandardContextValve#invoke:90
      at org.apache.catalina.authenticator.AuthenticatorBase#invoke:481
      at org.apache.catalina.core.StandardHostValve#invoke:130
      at org.apache.catalina.valves.ErrorReportValve#invoke:93
      at org.apache.catalina.valves.AbstractAccessLogValve#invoke:673
      at org.apache.catalina.core.StandardEngineValve#invoke:74
      at org.apache.catalina.connector.CoyoteAdapter#service:343
      at org.apache.coyote.http11.Http11Processor#service:390
      at org.apache.coyote.AbstractProcessorLight#process:63
      at org.apache.coyote.AbstractProtocol$ConnectionHandler#process:926
      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor#doRun:1791
      at org.apache.tomcat.util.net.SocketProcessorBase#run:52
      at org.apache.tomcat.util.threads.ThreadPoolExecutor#runWorker:1191
      at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker#run:659
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable#run:61
      at java.base/java.lang.Thread#run:833
      Caused by: org.apache.excalibur.source.SourceException: Exception during processing of [cocoon://_plugins/front-edition/content/get-server-values.json?contentId=content://1412606b-726c-45da-98d2-44e524372c77&workflowIds=42&isEditionMetadataSet=true&metadataPaths=illustration/image&validateContent=true&]
      at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:277
      at org.ametys.core.ui.dispatcher.DispatchGenerator#dispatching:_157
      ... 93 more
      Caused by: org.apache.cocoon.ProcessingException: Failed to process reader
      at <map:read type="json"> - [resource://org/ametys/plugins/front-edition/sitemap.xmap:56:56]
      at org.apache.cocoon.ProcessingException#throwLocated:113
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#handleException:959
      at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processReader:940
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:475
      at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:267
      ... 94 more
      Caused by: java.lang.IllegalArgumentException: The object can not be converted to json string
      at org.ametys.core.util.JSONUtils#convertObjectToJson:213
      at org.ametys.core.cocoon.JSonReader#generate:61
      at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processReader:921
      ... 96 more
      Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class java.io.BufferedInputStream and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.HashMap["data"]>java.util.HashMap["illustration/image"]>java.util.HashMap["value"]->org.ametys.cms.data.Binary["inputStream"])
      at com.fasterxml.jackson.databind.exc.InvalidDefinitionException#from:77
      at com.fasterxml.jackson.databind.SerializerProvider#reportBadDefinition:1308
      at com.fasterxml.jackson.databind.DatabindContext#reportBadDefinition:414
      at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer#failForEmpty:53
      at com.fasterxml.jackson.databind.ser.impl.UnknownSerializer#serialize:30
      at com.fasterxml.jackson.databind.ser.BeanPropertyWriter#serializeAsField:732
      at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase#serializeFields:772
      at com.fasterxml.jackson.databind.ser.BeanSerializer#serialize:178
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serializeFields:808
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serializeWithoutTypeInfo:764
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serialize:720
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serialize:35
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serializeFields:808
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serializeWithoutTypeInfo:764
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serialize:720
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serialize:35
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serializeFields:808
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serializeWithoutTypeInfo:764
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serialize:720
      at com.fasterxml.jackson.databind.ser.std.MapSerializer#serialize:35
      at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider#serialize:479{_}
      at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider#serializeValue:318
      at com.fasterxml.jackson.databind.ObjectMapper#writeValue:3303
      at org.ametys.core.util.JSONUtils#convertObjectToJson:209

            cbayle Caroline Bayle
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: