apple apn2 using netty
black-bamboo / apns2-netty Goto Github PK
View Code? Open in Web Editor NEWapple apn2 using netty
License: Apache License 2.0
apple apn2 using netty
License: Apache License 2.0
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
我这边的错误信息如下:
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
帮忙看看是什么问题导致的,谢谢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.