Title: NullPointerException when using cloud messaging · Issue #1081 · firebase/firebase-admin-java · GitHub
Open Graph Title: NullPointerException when using cloud messaging · Issue #1081 · firebase/firebase-admin-java
X Title: NullPointerException when using cloud messaging · Issue #1081 · firebase/firebase-admin-java
Description: Library version: 9.4.3 Firebase Product: cloud messaging When we are sending messages in bulk to devices using device specific tokens, we randomly get the error below: java.util.concurrent.ExecutionException: java.lang.NullPointerExcepti...
Open Graph Description: Library version: 9.4.3 Firebase Product: cloud messaging When we are sending messages in bulk to devices using device specific tokens, we randomly get the error below: java.util.concurrent.Executio...
X Description: Library version: 9.4.3 Firebase Product: cloud messaging When we are sending messages in bulk to devices using device specific tokens, we randomly get the error below: java.util.concurrent.Executio...
Opengraph URL: https://github.com/firebase/firebase-admin-java/issues/1081
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NullPointerException when using cloud messaging","articleBody":" * Library version: 9.4.3\n * Firebase Product: cloud messaging\n\nWhen we are sending messages in bulk to devices using device specific tokens, we randomly get the error below:\n\n```\njava.util.concurrent.ExecutionException: java.lang.NullPointerException\n\tat com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:595)\n\tat com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:574)\n\tat com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:91)\n\tat com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:67)\n\tat businessLayer.Messaging.sendPush(Messaging.java:777)\n...\n```\n\nWe are using the method sendEachAsync:\n`BatchResponse firebaseResponse = FirebaseMessaging.getInstance(firebaseApp).sendEachAsync(firebaseMessages, pushDryRun).get();`\n\nBesides the error showing up randomly when we are sending the messages, it seems that in older version of the library (\u003c= 9.3.0), that the error is:\n\n```\njava.util.concurrent.ExecutionException: com.google.firebase.messaging.FirebaseMessagingException: com.google.firebase.messaging.FirebaseMessaging\n\tat com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:594)\n\tat com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:573)\n\tat com.google.common.util.concurrent.FluentFuture$TrustedFuture.get(FluentFuture.java:91)\n\tat com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:67)\n\tat businessLayer.Messaging.sendPush(Messaging.java:777)\n...\n```\n\nThe problem for us is that it seems that this error started showing up randomly last month. \nAt least some messages seem to be sent, because we have info that users are seeing and clicking on the notifications.\nSo, it seems that we are correctly calling the procedure.\nAny help would be welcomed.","author":{"url":"https://github.com/oaxoh","@type":"Person","name":"oaxoh"},"datePublished":"2025-02-28T09:15:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1081/firebase-admin-java/issues/1081"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:56fadb95-1a75-3693-ba83-bfbd01bc4e3c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4FC:E1F85:A9032:DCFC9:698E5FB7 |
| html-safe-nonce | dcb215eb0cc584ec25f33ffe2d475268af8505fce7255570a136beac29fabe03 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEZDOkUxRjg1OkE5MDMyOkRDRkM5OjY5OEU1RkI3IiwidmlzaXRvcl9pZCI6IjIzOTY5NDg0NDEzODI5MzY1MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bd49c30993b317b6a9d0f239c2325fd0f2616f11fc5b07424874b63d6decf464 |
| hovercard-subject-tag | issue:2886622138 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/firebase/firebase-admin-java/1081/issue_layout |
| twitter:image | https://opengraph.githubassets.com/801241a2a273841d14379ed481be3d15380f765638b0939eaec3bbe9d7c28d78/firebase/firebase-admin-java/issues/1081 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/801241a2a273841d14379ed481be3d15380f765638b0939eaec3bbe9d7c28d78/firebase/firebase-admin-java/issues/1081 |
| og:image:alt | Library version: 9.4.3 Firebase Product: cloud messaging When we are sending messages in bulk to devices using device specific tokens, we randomly get the error below: java.util.concurrent.Executio... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oaxoh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 666e30cc1de8ebdf458084bf731e95deba4f074a5008f91b50803aa9a71e3725 |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/firebase-admin-java git https://github.com/firebase/firebase-admin-java.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 84979119 |
| octolytics-dimension-repository_nwo | firebase/firebase-admin-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84979119 |
| octolytics-dimension-repository_network_root_nwo | firebase/firebase-admin-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f2d67bd549813f8aceb31f205ebdb434e9d46d38 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width