Sunday 15 August 2010

java - What are the causes of RejctedExecutionException? -



java - What are the causes of RejctedExecutionException? -

are there other causes rejectedexecutionexception beingness thrown besides shutdown() beingness called on executor (i'm using singlethreadexecutor)? have crash reports below. rare , can't reproduce on devices. code complex post, i'm not seeing how it's logically possible tasks beingness submitted after shutdown() called.

are there other reasons rejectedexecutionexception thrown here?

java.util.concurrent.rejectedexecutionexception: task java.util.concurrent.futuretask@4194a5f0 rejected java.util.concurrent.threadpoolexecutor@41a36e90[terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 9813] @ java.util.concurrent.threadpoolexecutor$abortpolicy.rejectedexecution(threadpoolexecutor.java:1979) @ java.util.concurrent.threadpoolexecutor.reject(threadpoolexecutor.java:786) @ java.util.concurrent.threadpoolexecutor.execute(threadpoolexecutor.java:1307) @ java.util.concurrent.abstractexecutorservice.submit(abstractexecutorservice.java:81) @ java.util.concurrent.executors$delegatedexecutorservice.submit(executors.java:562) @ com.smp.soundtouchandroid.aacfileaudiosink.write(aacfileaudiosink.java:28) @ com.smp.soundtouchandroid.soundstreamrunnable.processchunk(soundstreamrunnable.java:469) @ com.smp.soundtouchandroid.soundstreamrunnable.processfile(soundstreamrunnable.java:406) @ com.smp.soundtouchandroid.soundstreamrunnable.run(soundstreamrunnable.java:223) @ java.lang.thread.run(thread.java:856)

see http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/threadpoolexecutor.html

your threadpoolexecutor shutdown, or

threadpoolexecutor has finite number of threads, or work queue has finite capacity , total (e.g., linkedblockingqueue of finite capacity passed in threadpoolexecutor constructor).

java android multithreading

No comments:

Post a Comment