notnoop / java-apns

Java Apple Push Notification Service Provider
notnoop.github.com/java-apns
BSD 3-Clause "New" or "Revised" License
1.79k stars 656 forks source link

DEADLOCK in send and monithor threads #310

Open tarun14691 opened 8 years ago

tarun14691 commented 8 years ago

Env:

jvm : 1.7.0._45

notnoop: 1.0.0.Beta6

Monitor-thread-1: Received error for message that wasn't in the cache.....

Such error happened with our production system. And after that everything goes in a deadlock for apns send thread.

There was a similar error raised in year 2014 and it was closed. But i think the issue is not resolved yet.

superalex88 commented 8 years ago

I'm sometimes facing same problem in our production system. send method is called but never ends nor a timeout happens

ecalissendorff commented 8 years ago

Noticed this issue also with all my threads stuck trying to send a message also, and found in the end that the problem was that we used the Executor for the APNS service to also queue the push messages.

The solution was simply not to reuse the executor for anything else.