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

IndexOutOfBoundsException on push notification

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.0
    • 1.0.0
    • None
    • None
    • 4.4 RC2

      It can happen to have those error message on notification sending :

       

      Date: Fri Jan 29 18:16:31 CET 2021 (1611940591134)
       Thread: ametys-async-observe-3
       Message #: 4229
       Level: ERROR
       NDC: 
       Category: org.ametys.plugins.mobileapp.PushNotificationManager
       Message: Error while sending push notification
       Location: org.ametys.plugins.mobileapp.PushNotificationManager.pushNotifications(PushNotificationManager.java:107)
       Thrown:
       java.util.concurrent.ExecutionException: io.github.jav.exposerversdk.PushNotificationException
       at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
       at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
       at org.ametys.plugins.mobileapp.PushNotificationManager.pushNotifications(PushNotificationManager.java:100)
       at org.ametys.plugins.mobileapp.observer.ProjectEventObserver.observe(ProjectEventObserver.java:188)
       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)
       Caused by: io.github.jav.exposerversdk.PushNotificationException
       at io.github.jav.exposerversdk.PushClientCustomData.lambda$sendPushNotificationsAsync$0(PushClientCustomData.java:69)
       at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
       at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2073)
       at io.github.jav.exposerversdk.helpers.DefaultPushServerResolver.lambda$postAsync$0(DefaultPushServerResolver.java:55)
       ... 4 more

       

       

      and

       

      java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) at java.base/java.util.Objects.checkIndex(Objects.java:372) at java.base/java.util.ArrayList.get(ArrayList.java:458) at io.github.jav.exposerversdk.PushClientCustomData.zipMessagesTickets(PushClientCustomData.java:156) at org.ametys.plugins.mobileapp.PushNotificationManager.pushNotifications(PushNotificationManager.java:111) at org.ametys.plugins.mobileapp.observer.ProjectEventObserver.observe(ProjectEventObserver.java:188) 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)

            pgros Pierre Gros (Inactive)
            pgros Pierre Gros (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: