Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-1758

Error when removing a project member whithout profile image

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.14.0
    • 2.14.0
    • None
    • None
    • 4.9.0 M3
    • Oui

      • Configure preferences to receive a mail for each new activity
      • Open for instance "projet d'exemple public". 
      • Go to member module. 
      • Remove a member who doesn't have avatar. 

      => Following error is encountered and mail is not sent : 

       

      Date : 05/12 14:23:04.672
      Utilisateur : contrib#ametys_demo_users
      ThreadThread[#14921,ametys-async-observe-2,5,main]
      Niveau : ERROR
      Catégorie : org.ametys.core.observation.ObservationManager
      URI de la requête : /cms/plugins/core-ui/servercomm/messages.xml
      Message : 
      
      Unable to dispatch event: event[id: member.deleted, issuer: UserIdentity [login=admin, population=ametys_demo_users], args: [project.member.identity.type = USER, project = '/ametys:plugins/workspaces/projects/projet-d-exemple-public' (project://3b0957c0-75b9-44d4-831f-d02a6aee6ce3), project.member.identity = hmanitou#membres-espaces-projets, projectId = project://3b0957c0-75b9-44d4-831f-d02a6aee6ce3]] to asynchronous observers
      
      Emplacement : org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)
      
      Pile d'appels :
      
      java.lang.RuntimeException: Failed to create mail body
      at org.ametys.plugins.workspaces.project.notification.AbstractMemberMailNotifierObserver#observe:162
      at org.ametys.core.observation.ObservationManager$ParallelAsyncObserve#_observe:510
      at org.ametys.core.observation.ObservationManager$AbstractAsyncObserve#call:447
      at java.base/java.util.concurrent.FutureTask#run:317
      at java.base/java.util.concurrent.ThreadPoolExecutor#runWorker:1144
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker#run:642
      at java.base/java.lang.Thread#run:1583 Caused by: org.apache.excalibur.source.SourceException: Exception during processing of cocoon://_plugins/workspaces/notification-mail-member-removed-manager
      at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:277
      at org.ametys.plugins.workspaces.project.notification.AbstractMemberMailNotifierObserver#observe:152
      ... 6 more Caused by: org.apache.cocoon.ProcessingException: Failed to process pipeline
      at <map:serialize type="xhtml-mail"> - resource://org/ametys/plugins/workspaces/sitemap.xmap:228:51
      at <map:transform type="i18n"> - resource://org/ametys/plugins/workspaces/sitemap.xmap:224:44
      at <map:transform type="xslt"> - resource://org/ametys/plugins/workspaces/sitemap.xmap:221:100
      at <map:transform type="i18n"> - resource://org/ametys/plugins/workspaces/sitemap.xmap:217:44
      at <map:transform type="xslt"> - resource://org/ametys/plugins/workspaces/sitemap.xmap:216:111
      at <map:generate type="member-event-mail-notifier"> - resource://org/ametys/plugins/workspaces/sitemap.xmap:215:66
      at org.apache.cocoon.ProcessingException#throwLocated:145
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#handleException:955
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:585
      at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline#processXMLPipeline:301
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#process:483
      at org.apache.cocoon.components.source.impl.SitemapSource#getInputStream:267
      ... 7 more Caused by: java.lang.NullPointerException: Cannot invoke "org.ametys.plugins.core.ui.user.DefaultProfileImageProvider$ProfileImageSource.ordinal()" because "profileImageSource" is null
      at org.ametys.plugins.core.ui.user.DefaultProfileImageProvider#_extractSourceParameters:205
      at org.ametys.plugins.core.ui.user.DefaultProfileImageProvider#getImage:122
      at org.ametys.plugins.core.ui.user.ProfileImageResolverHelper#getProfileImage:84
      at org.ametys.plugins.userdirectory.transformation.xslt.ProfileImageResolverHelper#getProfileImage:63
      at org.ametys.plugins.core.ui.user.ProfileImageResolverHelper#resolveAsBase64:181
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor#invoke:103
      at java.base/java.lang.reflect.Method#invoke:580
      at org.apache.xalan.extensions.ExtensionHandlerJavaClass#callFunction:367
      at org.apache.xalan.extensions.ExtensionHandlerJavaClass#callFunction:440
      at org.apache.xalan.extensions.ExtensionsTable#extFunction:222
      at org.apache.xalan.transformer.TransformerImpl#extFunction:475
      at org.apache.xpath.functions.FuncExtFunction#execute:208
      at org.apache.xpath.Expression#executeCharsToContentHandler:313
      at org.apache.xalan.templates.ElemValueOf#execute:274
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemChoose#execute:128
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.transformer.TransformerImpl#transformToRTF:1990
      at org.apache.xalan.transformer.TransformerImpl#transformToRTF:1912
      at org.apache.xalan.templates.ElemVariable#getValue:312
      at org.apache.xalan.templates.ElemVariable#execute:248
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395
      at org.apache.xalan.templates.ElemApplyTemplates#execute:178
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395
      at org.apache.xalan.templates.ElemApplyTemplates#execute:178
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395
      at org.apache.xalan.templates.ElemApplyTemplates#execute:178
      at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395
      at org.apache.xalan.templates.ElemApplyTemplates#execute:178
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.transformer.TransformerImpl#transformToRTF:1990
      at org.apache.xalan.transformer.TransformerImpl#transformToRTF:1912
      at org.apache.xalan.templates.ElemWithParam#getValue:219
      at org.apache.xalan.templates.ElemCallTemplate#execute:226
      at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395
      at org.apache.xalan.templates.ElemApplyTemplates#execute:178
      at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395
      at org.apache.xalan.templates.ElemApplyTemplates#execute:178
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemChoose#execute:141
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemTemplate#execute:394
      at org.apache.xalan.templates.ElemCallTemplate#execute:248
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemTemplate#execute:394
      at org.apache.xalan.templates.ElemCallTemplate#execute:248
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemTemplate#execute:394
      at org.apache.xalan.templates.ElemCallTemplate#execute:248
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemLiteralResult#execute:1376
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.templates.ElemTemplate#execute:394
      at org.apache.xalan.templates.ElemCallTemplate#execute:248
      at org.apache.xalan.templates.ElemApplyTemplates#transformSelectedNodes:395
      at org.apache.xalan.templates.ElemApplyTemplates#execute:178
      at org.apache.xalan.transformer.TransformerImpl#executeChildTemplates:2402
      at org.apache.xalan.transformer.TransformerImpl#applyTemplateToNode:2272
      at org.apache.xalan.transformer.TransformerImpl#transformNode:1358
      at org.apache.xalan.transformer.TransformerImpl#run:3449
      at org.apache.xalan.transformer.TransformerHandlerImpl#endDocument:408
      at org.apache.cocoon.xml.AbstractXMLPipe#endDocument:56
      at org.apache.cocoon.transformation.TraxTransformer#endDocument:586
      at org.apache.cocoon.xml.AbstractXMLPipe#endDocument:56
      at org.apache.xml.serializer.ToXMLSAXHandler#endDocument:186
      at org.apache.xalan.transformer.TransformerImpl#transformNode:1369
      at org.apache.xalan.transformer.TransformerImpl#run:3449
      at org.apache.xalan.transformer.TransformerHandlerImpl#endDocument:408
      at org.apache.cocoon.xml.AbstractXMLPipe#endDocument:56
      at org.apache.cocoon.transformation.TraxTransformer#endDocument:586
      at org.ametys.plugins.workspaces.project.generators.MemberEventMailNotifierGenerator#generate:73
      at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline#processXMLPipeline:581
      ... 10 more 

       

            tcorre Thalya Corré
            mfranchet Magali Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: