schimanski Well-Known Member Licensed User Longtime User Jan 17, 2011 #1 what is the meaning of the following Error? java.util.concurrent. RejectedExecutionException in this line: Code: If HttpClient1.Execute(request,IDs) = false then Return Thanks for help....
what is the meaning of the following Error? java.util.concurrent. RejectedExecutionException in this line: Code: If HttpClient1.Execute(request,IDs) = false then Return Thanks for help....
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2011 #2 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. Upvote 0
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.
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2011 #3 I've increased the limit to 20 concurrent tasks in the next update. Upvote 0
schimanski Well-Known Member Licensed User Longtime User Jan 18, 2011 #4 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
Thanks, Erel! The problem exists by downloading maptiles from the server. Now I can handle it with your information about limited threads... Thanks....
I Inman Well-Known Member Licensed User Longtime User Mar 19, 2011 #5 Erel said: 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. Click to expand... 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
Erel said: 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. Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Mar 19, 2011 #6 It was not implemented as it is not possible to queue the tasks. Instead you should make sure not to send more than 20 requests concurrently. You can use the task ids to make sure that no more than 10 or 15 requests are sent. IsBackgroundTaskRunning method tests whether there is a running task. Upvote 0
It was not implemented as it is not possible to queue the tasks. Instead you should make sure not to send more than 20 requests concurrently. You can use the task ids to make sure that no more than 10 or 15 requests are sent. IsBackgroundTaskRunning method tests whether there is a running task.