Could not initialize class io.netty.resolver.dns.DefaultDnsServerAddressStreamProvider at pushy.apns.ApnsChannelFactory #938
-
First of all, please let me know whether this could be written here, i am not sure, I dont usually write questions. Good morning, I am currently using pushy version 0.14.2 and I have been getting this problem in production:
Some devices work, some devices does not work, I can only find this in logs. This is what I have, and the line PushNotificationService.java:192 is the build() (last line here in pasted code)
Not really sure what to do or where to ask this, so, thanks in advance for any help (Java version 8, netty version 4.1.62.Final) I have them like this in my gradle file
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This is caused by different versions of netty on classpath. You might want to checkout your classpath to see if there are different netty versions. |
Beta Was this translation helpful? Give feedback.
-
Thanks @sunng87 , I found this taking a look at gradle dependencies: so it looks like pushy is using already a different version of netty than the one I have. Not sure whether this is what you mean, but if so, how can I fix it? using the same one as pushy's? if this is not what you mean, please let me know. thanks a lot for answering to me :) |
Beta Was this translation helpful? Give feedback.
-
You can simply change your netty-all dependency to 4.1.53. I guess you do not depend on any particular features in 4.1.62 |
Beta Was this translation helpful? Give feedback.
-
It sounds like this is a not a bug and we've identified a solution (thanks, @sunng87, for chiming in!), and so I'm going to close this issue. At the same time, I think this is something other folks may run into in the future, so I'm actually going to close this by way of turning it into a discussion. Cheers! |
Beta Was this translation helpful? Give feedback.
This is caused by different versions of netty on classpath. You might want to checkout your classpath to see if there are different netty versions.