andres
(Andrés)
June 23, 2014, 11:57am
1
Hi. I am having a problem when running a query with Android SDK. This is my code:
String whereClause = "objectId = '" + canjeId + "'";
BackendlessDataQuery dataQuery = new BackendlessDataQuery();
dataQuery.setWhereClause(whereClause);
QueryOptions queryOptions = new QueryOptions();
queryOptions.addRelated("*");
dataQuery.setQueryOptions(queryOptions);
Backendless.Data.of(Canje.class).find(dataQuery,
new AsyncCallback<BackendlessCollection<Canje>>() {
@Override
public void handleResponse(BackendlessCollection<Canje> canjes) {
if (canjes != null) {
...
...
...
}
}
@Override
public void handleFault(BackendlessFault fault) {
...
...
...
}
});
I have checked the query is correctly build (canjeId has a valid value), but handleFault is always called with this:
BackendlessFault{ code: ‘Internal client exception’, message; ‘null’ }
I am using other querys in my app, and this is the only one i am getting errors.
andres
(Andrés)
July 7, 2014, 9:32am
2
Hi.
Could you check it? I am still having this problem only with Android SDK.
Regards,
Andrés
Hi Andres,
What is the APP ID where this happens?
Regards,
Mark
Could you please also provide an exception stacktrace from LogCat, if any?
andres
(Andrés)
July 7, 2014, 7:36pm
5
Hi Mark.
I will send you an email with the AppID.
Sergey, there is no error trace. All i get is this:
BackendlessFault{ code: ‘Internal client exception’, message; ‘null’ }
Regards,
Andrés
Hi, Andrés
We tried using your application and given code and couldn’t reproduce your problem. Maybe, if you give some more information (like logs from LogCat while executing your code or more code from your program), then we could investigate more.
Anyway, InternalClientException means that the problem is on your side, not server. Often it occurs when you call a synchronous method in Android in main thread, which is not allowed. So I would advise you to look through your code one more time.
andres
(Andrés)
July 14, 2014, 12:21pm
7
Thanks Sergey.
I am making several queries in my app, all asynchronous, and only this one fails.
I guess I will have to check it again. I will let you know if I find more information about the error.
Regards,
Andrés
andres
(Andrés)
July 14, 2014, 3:53pm
8
Hi Sergey.
I have downloaded the latest jar and it is working now.
Regards,
Andrés