I can’t work with Backendless anymore. My android application keep crashing because no response is coming from Backendless. When I tried to connect with backenless site, there was an error with a red message " No Connection with Server" for a while. It disappear now but still I can’t work by my android App…
Hello,
Could you please provide a sample Android request/code that demonstrates the issue?
Regards,
Mark
My code is ordinary Authentication and Validation instruction and I worked with it without any problem problem an hour ago. until this message appeared in your site on my a
ccount …
There was a brief outage that lasted about 2 minutes. It has been a long while since we had one till now. I suspect you got that error exactly during that time.
It is strange because some times the error is from the null response from validation instruction and some times from working with tables. response is null
But I still have this problem…
code snippet:
Backendless.UserService.isValidLogin(new AsyncCallback() {
@Override
public void handleResponse(Boolean response) {
Log.d(TAG, "SplashScreenActivity Backendless handleResponse = " + response);
if (response) {
Error:
java.lang.NullPointerException: Attempt to invoke virtual method ‘boolean java.lang.Boolean.booleanValue()’ on a null object reference
response is null (not true nor false but null)
but sometimes I have no problem too!
this is the first time I deal with such a problem during two years using Backendless
Backendless.Persistence.of(countryNameCode + “_Users_Scenarios_Table”).find(queryBuilder, new AsyncCallback<List>() {
@Override
public void handleResponse(List response) {
Log.d(TAG, "ScenarioFragment handleResponse: response size = " + response.size());
if (response.size() != 0){
Error:
java.lang.NullPointerException: Attempt to invoke interface method ‘int java.util.List.size()’ on a null object reference
it seems everything has come back to normal now! It works as before
But apparently we need to consider receiving the “null” situation beside true or false Boolean response or List<> response from Backendless APIs in android!