question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RejectedExecutionException because of sendDegradedPingLater

See original GitHub issue

Hello,

Since we have updated our Android app DAVx⁵ from okhttp 3.12.5 to 3.12.7, we start receiving these exceptions:

java.util.concurrent.RejectedExecutionException: 
  at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution (ThreadPoolExecutor.java:2104)
  at java.util.concurrent.ThreadPoolExecutor.reject (ThreadPoolExecutor.java:848)
  at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute (ScheduledThreadPoolExecutor.java:334)
  at java.util.concurrent.ScheduledThreadPoolExecutor.schedule (ScheduledThreadPoolExecutor.java:562)
  at java.util.concurrent.ScheduledThreadPoolExecutor.execute (ScheduledThreadPoolExecutor.java:654)
  at okhttp3.internal.http2.Http2Connection.sendDegradedPingLater (Http2Connection.java:598)
  at okhttp3.internal.http2.Http2Stream$StreamTimeout.timedOut (Http2Stream.java:668)
  at okio.AsyncTimeout$Watchdog.run (AsyncTimeout.kt:198)

It’s not that often, but this exception was not there before. I think it occurs when

  • a thread with okhttp I/O is interrupt()ed (because the user cancels the action), and
  • okhttp tries to send a delayed HTTP/2 ping on such an interrupted channel later.

Unfortunately, I can’t provide reliable steps to reproduce yet. Is this however a problem you can imagine to happen or do you need more information?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
swankjessecommented, Jan 10, 2020

Can fix!

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - What could be the cause of RejectedExecutionException
New tasks submitted in method execute(java.lang.Runnable) will be rejected when the Executor has been shut down, and also when the Executor uses ...
Read more >
RejectedExecutionException (Java SE 17 & JDK 17)
Constructs a RejectedExecutionException with the specified detail message and cause. RejectedExecutionException(Throwable cause).
Read more >
RejectedExecutionException Class (Java.Util.Concurrent)
Constructs a RejectedExecutionException with the specified cause. Fields. is_generated, (Inherited from Throwable). Properties. Cause.
Read more >
RejectedExecutionException | Bitbucket Data Center and ...
Cause. The error message RejectedExecutionException indicates events are being raised faster than they can be handled by listeners.
Read more >
How to deal with java.util.concurrent ...
RejectedExecutionException: ThreadPoolExecutor did not accept within 30000 MILLISECONDS and your batch job stopped processing records.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found