java 服务器通知,java-生产服务器的推送通知问题

我已创建启用了推送通知的开发和生产证书.一切在测试环境中都可以正常工作,但是当我尝试在生产环境中测试开发证书时,它会给我以下来自Java服务器的错误消息.

06:56:47,054 WARN ~ APNS push FAILED to 7ccd6139db05e657cedf27e00b93c71851cc779489474e4cede40d66182e4b26

06:56:47,054 WARN ~ Here's the problem: javapns.notification.exceptions.ErrorResponsePacketReceivedException: An error response packe

t was received from the APNS server: APNS: [1] Invalid token

06:56:47,055 ERROR ~ javapns.notification.exceptions.ErrorResponsePacketReceivedException: An error response packet was received from

the APNS server: APNS: [1] Invalid token

at javapns.notification.PushedNotification.setResponse(PushedNotification.java:173)

at javapns.notification.ResponsePacket.linkToPushedNotification(ResponsePacket.java:31)

at javapns.notification.ResponsePacketReader.handleResponses(ResponsePacketReader.java:75)

at javapns.notification.ResponsePacketReader.processResponses(ResponsePacketReader.java:27)

at javapns.notification.PushNotificationManager.processedFailedNotifications(PushNotificationManager.java:223)

at javapns.notification.PushNotificationManager.stopConnection(PushNotificationManager.java:198)

at javapns.Push.sendPayload(Push.java:185)

at javapns.Push.payload(Push.java:149)

at jobs.APNSPushEvent.doJob(APNSPushEvent.java:46)

at play.jobs.Job.doJobWithResult(Job.java:50)

at play.jobs.Job.call(Job.java:146)

at play.jobs.Job$1.call(Job.java:66)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值