RejectedExecutionException

schimanski

Well-Known Member
Licensed User
Longtime User
what is the meaning of the following Error?

java.util.concurrent. RejectedExecutionException

in this line:

B4X:
If HttpClient1.Execute(request,IDs) = false then Return

Thanks for help....
 

schimanski

Well-Known Member
Licensed User
Longtime User
Thanks, Erel!

The problem exists by downloading maptiles from the server. Now I can handle it with your information about limited threads...

Thanks....
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
Background tasks are executed internally using a thread pool limited to 10 threads.
This error happens when you try to submit more than 10 tasks at once.

This will be fixed in the next update by queuing the remaining tasks correctly.

Has this queuing been implemented? I have a function that needs to download about 30+ images at a time. I manually tried to limit the concurrent connections to 15 but still the rejection error comes occasionally. My app is almost ready but I am scared to upload it to Android Market in this condition and gather negative reviews from users.
 
Upvote 0
Top