Git Product home page Git Product logo

apns2-netty's Introduction

apns2-netty

apple apn2 using netty

apns2-netty's People

Contributors

black-bamboo avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

apns2-netty's Issues

MissingProviderToken issue

2023-06-06 17:58:13.857 [pool-2-thread-1] INFO com.blackbamboo.apns2.core.service.NettyApnsConnection - conn-0 send payload {"aps":{"alert":"test","sound":"default.caf"}} token e7f3c7835a12fb14a41945e62ac0eeb8b6206504d4370024ef47edea4c81630a
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/Users/vinay.parida/.m2/repository/io/netty/netty-all/4.1.1.Final/netty-all-4.1.1.Final.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Jun 06, 2023 5:58:13 PM io.netty.util.internal.PlatformDependent
INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system unstability.
2023-06-06 17:58:13.963 [pool-2-thread-1] DEBUG com.blackbamboo.apns2.core.service.NettyApnsConnection - conn-0 connecting to api.push.apple.com
2023-06-06 17:58:14.354 [pool-2-thread-1] DEBUG com.blackbamboo.apns2.core.service.NettyApnsConnection - conn-0 connected
2023-06-06 17:58:14.354 [pool-2-thread-1] DEBUG com.blackbamboo.apns2.core.service.NettyApnsConnection - conn-0 await setting
2023-06-06 17:58:14.995 [pool-2-thread-1] DEBUG com.blackbamboo.apns2.core.service.NettyApnsConnection - conn-0 setting success
2023-06-06 17:58:15.006 [pool-2-thread-1] DEBUG com.blackbamboo.apns2.core.service.HttpResponseHandler - conn-0 put streamIdMap:
2023-06-06 17:58:15.006 [pool-2-thread-1] DEBUG com.blackbamboo.apns2.core.service.HttpResponseHandler - conn-0 awaitResponses streamIdMap: 3
2023-06-06 17:58:15.350 [nioEventLoopGroup-2-1] DEBUG com.blackbamboo.apns2.core.service.HttpResponseHandler - conn-0 channelRead0 streamIdMap: 3
2023-06-06 17:58:15.351 [nioEventLoopGroup-2-1] DEBUG com.blackbamboo.apns2.core.service.HttpResponseHandler - conn-0 {"reason":"MissingProviderToken"}
2023-06-06 17:58:15.351 [pool-2-thread-1] DEBUG com.blackbamboo.apns2.core.service.HttpResponseHandler - conn-0 stream id: 3 received
2023-06-06 17:58:15.351 [pool-2-thread-1] INFO com.blackbamboo.apns2.core.service.NettyApnsConnection - conn-0 send success token e7f3c7835a12fb14a41945e62ac0eeb8b6206504d4370024ef47edea4c81630a

com.blackbamboo.apns2.core.service.NettyApnsConnectionPool - createKeyManagerFactory

我这边的错误信息如下:
2019-05-10 15:57:06.005 [main] ERROR com.blackbamboo.apns2.core.service.NettyApnsConnectionPool - createKeyManagerFactory
java.io.IOException: Short read of DER length
at java.base/sun.security.util.DerInputStream.getLength(DerInputStream.java:588) ~[?:?]
at java.base/sun.security.util.DerValue.init(DerValue.java:390) ~[?:?]
at java.base/sun.security.util.DerValue.(DerValue.java:331) ~[?:?]
at java.base/sun.security.util.DerValue.(DerValue.java:344) ~[?:?]
at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1993) ~[?:?]
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222) ~[?:?]
at java.base/java.security.KeyStore.load(KeyStore.java:1479) ~[?:?]
at com.blackbamboo.apns2.core.service.NettyApnsConnectionPool.createKeyManagerFactory(NettyApnsConnectionPool.java:50) [classes/:?]
at com.blackbamboo.apns2.core.service.NettyApnsConnectionPool.(NettyApnsConnectionPool.java:37) [classes/:?]
at com.blackbamboo.apns2.core.service.NettyApnsService.(NettyApnsService.java:12) [classes/:?]
at com.blackbamboo.apns2.core.service.NettyApnsService.create(NettyApnsService.java:16) [classes/:?]
at com.blackbamboo.apns.sample.ApnsClient.main(ApnsClient.java:27) [classes/:?]
Exception in thread "main" java.lang.IllegalStateException: create key manager factory failed
at com.blackbamboo.apns2.core.service.NettyApnsConnectionPool.createKeyManagerFactory(NettyApnsConnectionPool.java:56)
at com.blackbamboo.apns2.core.service.NettyApnsConnectionPool.(NettyApnsConnectionPool.java:37)
at com.blackbamboo.apns2.core.service.NettyApnsService.(NettyApnsService.java:12)
at com.blackbamboo.apns2.core.service.NettyApnsService.create(NettyApnsService.java:16)
at com.blackbamboo.apns.sample.ApnsClient.main(ApnsClient.java:27)

补充一下苹果的apns keytore上传的p12文件生成步骤为:https://www.cnblogs.com/Kingly/p/5210196.html

帮忙看看是什么问题导致的,谢谢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.