Hi, i am having a feature in my application where i need to fetch an object and update its property. I am having the id of the object so i am trying to fetch the object by id. But it has been a nightmare, i don’t know what i am doing wrong here, i get the following exception:
E/AndroidRuntime: FATAL EXCEPTION: pool-7-thread-3
Process: com.beyondseek.ServicesAroundMe, PID: 18732
java.lang.StackOverflowError: stack size 1036KB
at java.util.HashMap.newEntryIterator(HashMap.java:890)
at java.util.HashMap$EntrySet.iterator(HashMap.java:935)
at java.util.AbstractMap.hashCode(AbstractMap.java:309)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(AbstractMap.java:311)
at com.backendless.geo.GeoPoint.hashCode(GeoPoint.java:192)
at java.util.HashMap$HashMapEntry.hashCode(HashMap.java:755)
at java.util.AbstractMap.hashCode(Abstrac
After this i get the following exception:
E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!
E/AndroidRuntime: Error reporting crash
android.os.TransactionTooLargeException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:496)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:4200)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:89)
at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:249)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
Here is the code snippet responsible for this:
//The crash happens as soon as control reaches line #2, the application closes and i get those exceptions..
Backendless.Data.of(ServiceProviders.class).findById("The object ID", new AsyncCallback<ServiceProviders>() {
@Override
public void handleResponse(ServiceProviders response) {
//Ok fetched the object
}
@Override
public void handleFault(BackendlessFault fault) {
//There was some issue..
}
});
I’ve spent hours trying alternative methods, but it doesn’t work. Somebody please tell what i am doing wrong here! Thank you.