woolfel / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

in 2.2: ArrayIndexOutOfBoundsException: Array index out of range: 0 #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using 2.2. We send many thousands of APNs a day, and once or twice a day we 
get this ArrayIndexOutOfBounds error. A similar error was reported fixed in 
2.1.1 but I am running 2.2

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
        at java.util.Vector.remove(Vector.java:804)
        at javapns.notification.PushedNotifications.prepareAdd(PushedNotifications.java:103)
        at javapns.notification.PushedNotifications.addAll(PushedNotifications.java:94)
        at javapns.notification.transmission.NotificationThreads.getPushedNotifications(NotificationThreads.java:402)
        at ly.cel.server.APNsManager.handlePushErrors(APNsManager.java:389)
        at ly.cel.server.APNsManager.pushCellMessageToClient(APNsManager.java:326)
        at ly.cel.notify.APNsMessageQueueManager.processCellMessage(APNsMessageQueueManager.java:90)
        at ly.cel.notify.APNsMessageQueueManager.processNewMessage(APNsMessageQueueManager.java:78)
        at ly.cel.notify.APNsMessageQueueManager.processNewMessage(APNsMessageQueueManager.java:28)
        at ly.cel.notify.HashedQueueManager.parseJSONAndExecute(HashedQueueManager.java:100)
        at ly.cel.notify.HashedQueueManager$HashedQueueConsumer.handleJSON(HashedQueueManager.java:120)
        at com.p2.alchemy.JSONConsumer$1.doTake(JSONConsumer.java:107)
        at com.p2.alchemy.JSONConsumer$1.run(JSONConsumer.java:56)
        at java.lang.Thread.run(Thread.java:679)

Original issue reported on code.google.com by gregp...@gmail.com on 25 Feb 2013 at 3:00

GoogleCodeExporter commented 9 years ago
I am using 2.3 and I am getting the same 

Original comment by gianni.s...@gmail.com on 6 Jun 2013 at 7:49

GoogleCodeExporter commented 9 years ago
Fixed in r401.

Original comment by sype...@gmail.com on 13 Oct 2014 at 3:07