'Internal client exception'

Hello! I try to use Android Data API. Init Backendless app and Call simple Backendless.Persistence.save(w);
this call throw an exception BackendlessException{ code: ‘Internal client exception’, message: ‘null’ }
What kind of problem it may be?

  1. in my manifest i have a line: <service android:name="com.backendless.AndroidService"/>
  2. i call it like this: Backendless.initApp(this, APP_ID, APP_KEY, APP_VERSION);
  3. object is simple.
public class Word {
    String word;
    String locale;

    public Word() {
    }

    public Word(String w, String l) {
        this.word = w;
        this.locale = l;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String mWord) {
        this.word = mWord;
    }

    public String getLocale() {
        return locale;
    }

    public void setLocale(String mLocale) {
        this.locale = mLocale;
    }
}

I think important note that i call save() synchronously from UI Thread. When i try to do this async - all will be ok.
So, i resolve my problem, but i think i found a bug in synchronous api

Thank you.

Hi, Alexandr!
Could you please provide more details. The interesting things are:

  1. How did you specify Backendless Service and needed permissions in your AnroidManifest.xml
  2. How do you call Backendless.initApp
  3. What is your object structure, which you need to save in persistence

I have the same problem but for different reasons.

i was using the async API and everything was ok but keep getting “E/RecyclerView: No adapter attached; skipping layout” (that happens before the async callback is runned) so Im trying to change to sync call to see if that fix it.

Im also getting code: ‘Internal client exception’, message: ‘null’

That is because you cannot make database calls synchronously on the UI thread, it has to be done on a separate thread. Doing in background uses a built in async task, you can create your own using androids async task and run on a separate thread then pass the data back to the UI thread to display, that shouldn’t fail. Shouldn’t…