Exception while load data

Hello.
I have got an exception while load data on to server using DataService API in Android.
This request throws exception after 20-30 cycles executions of


for (Word w : words) {
    if (!mWordsDataSourceHelper.exists(w)) {
        mCloudSyncedCount++;
        Backendless.Persistence.of(Word.class).save(w, new AsyncCallback<Word>() {
            @Override
            public void handleResponse(Word word) {
                mWordsDataSourceHelper.addWord(word);
                mCloudSyncedCount--;
                syncCompleted();
            }

            @Override
            public void handleFault(BackendlessFault backendlessFault) {
                Log.e(TAG, getString(R.string.error_cloud_save));
                Log.e(TAG, backendlessFault.getCode());
                Log.e(TAG, backendlessFault.getMessage());
                mCloudSyncedCount--;
                syncCompleted();
            }
        });
    }
}

[spoiler=Stack trace]688-688/com.solo12zw74.dicsy E/SynchronizationProvider: error while try to save word in cloud08-07 23:04:50.677 688-688/com.solo12zw74.dicsy E/SynchronizationProvider: IllegalArgumentException08-07 23:04:50.677 688-688/com.solo12zw74.dicsy E/SynchronizationProvider: Task com.backendless.Invoker$1@4250f8d0 rejected from java.util.concurrent.ThreadPoolExecutor@4235dfc0[Running, pool size = 10, active threads = 9, queued tasks = 10, completed tasks = 3]08-07 23:04:50.708 688-688/com.solo12zw74.dicsy E/SynchronizationProvider: error while try to save word in cloud08-07 23:04:50.708 688-688/com.solo12zw74.dicsy E/SynchronizationProvider: IllegalArgumentException08-07 23:04:50.708 688-688/com.solo12zw74.dicsy E/SynchronizationProvider: Task com.backendless.Invoker$1@42515158 rejected from java.util.concurrent.ThreadPoolExecutor@4235dfc0[Running, pool size = 10, active threads = 10, queued tasks = 10, completed tasks = 3]08-07 23:04:50.755 688-688/com.solo12zw74.dicsy E/SynchronizationProvider: error while try to save word in cloud08-07 23:04:50.755 688-688/com.solo12zw74.dicsy E/SynchronizationProvider: IllegalArgumentException08-07 23:04:50.755 688-688/com.solo12zw74.dicsy E/SynchronizationProvider: Task com.backendless.Invoker$1@4251cdd0 rejected from java.util.concurrent.ThreadPoolExecutor@4235dfc0[Running, pool size = 10, active threads = 10, queued tasks = 10, completed tasks = 3[/spoiler]

Hi Alexandr,

Could you please let us know how you load the data? Any sample client code would be very helpful.

Regards,
Mark

Sorry, have a problem with message editor. Add info to my first post

What does the Word class look like? Could you also post a screenshot of the Word table schema from our console?

Thanks,Mark

Oh sure.
Word class is simple:

Thank you.

When did the problem start happening?
Does it happen with every word or only sometimes?

Regards,Mark

it happens after load 20-30 words. more precisely 23-24 loaded

You mean the exception happens after you save 23-24 words? Does the number of records grow every time you run the app?

yes every 23-24 words. Number of records grow every time i run app.

i found similar post abut this exception on stackoverflow

May be you have some recommendations about bulk insert entities with DataService API?

We suspect it might be something with a thread pool configuration. Any chance you could add

Thread.sleep(500); 

after you call:

Backendless.Persistence.of(Word.class).save

This is not a solution, simply a test to check our hypothesis.

Thanks,
Mark

Thanks, it temporary helps

Thank you for helping us in diagnosing the problem. We will make a change in the SDK and upload a new build to the website as fast as we can.