Uploaded image for project: 'Mobile App'
  1. Mobile App
  2. MOBILEAPP-26

Exception when adding a new calendar in projects or adding a task...

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.0.0
    • None
    • None
    • None
    • 4.4 RC3

      Date:			Mon Mar 08 09:12:53 CET 2021 (1615191173872)
      Thread:		ametys-async-observe-4
      Message #:	2125
      Level:		ERROR
      NDC:			
      Category:	org.ametys.core.observation.ObservationManager
      Message:		Unable to dispatch event: event[id: calendar.event.created, issuer: UserIdentity [login=fravetier, population=utilisateurs], args: [calendar = '/ametys:plugins/workspaces/projects/sans-blague/ametys-internal:resources/calendars/Principal' (calendar://7be9eee7-ca46-479a-bfe4-6c8dcbd1fe0b), calendar.event = '/ametys:plugins/workspaces/projects/sans-blague/ametys-internal:resources/calendars/Principal/ametys:calendar-event' (calendar-event://14338913-9b43-4e74-9063-4e069aacc222), object.parent = calendar://7be9eee7-ca46-479a-bfe4-6c8dcbd1fe0b, projectName = sans-blague, object.id = calendar-event://14338913-9b43-4e74-9063-4e069aacc222, projectTitle = Sans blague]] to asynchronous observers
      Location:	org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)
      Thrown:
      java.lang.IllegalStateException: Duplicate key fr (attempted merging values [ExponentPushToken[YDd1JkIXXqsH_ccWIA5UWz]] and [ExponentPushToken[DRloRXBUw69Cz4le2ZoFaU]])
      	at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:133)
      	at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180)
      	at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
      	at java.base/java.util.HashMap$EntrySpliterator.forEachRemaining(HashMap.java:1746)
      	at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658)
      	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274)
      	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
      	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
      	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
      	at org.ametys.plugins.mobileapp.observer.ProjectEventObserver.observe(ProjectEventObserver.java:161)
      	at org.ametys.core.observation.ObservationManager$ParallelAsyncObserve._observe(ObservationManager.java:496)
      	at org.ametys.core.observation.ObservationManager$AbstractAsyncObserve.call(ObservationManager.java:442)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      

      Please also add a log to know when the notification is sent please, with the pushtoken and at least the title in INFO.

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: