java.lang.Object[] cannot be cast to com.backendless.geo.GeoCategory[]

Hi,

I download the example RestaurantApp code generator, and tried to run the Maps package. I keep getting the error:
java.lang.Object[] cannot be cast to com.backendless.geo.GeoCategory[]. As this is the advertised backendless example, it would nice if I could get it to run. More specifically, the monitor says:

FATAL EXCEPTION: main
Process: com.backendless.restaurauntapp.geo, PID: 2955
java.lang.ClassCastException: java.lang.Object[] cannot be cast to com.backendless.geo.GeoCategory[]
at com.backendless.Geo$5.handleResponse(Geo.java:392)
at com.backendless.async.message.AsyncMessage$ResponseHandler.handle(AsyncMessage.java:64)
at com.backendless.async.message.AsyncMessage.handleCallback(AsyncMessage.java:41)
at com.backendless.core.AndroidCarrier$1.handleMessage(AndroidCarrier.java:37)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Thanks,
Shila

Hi Shila,

Thanks for reporting, we will look into that.

Are you talking about RestaurantToGo sample? I can’t find any “Maps” package here.

No, I was referring to your blog feature #15 (client code generation based on defined tables). The feature refers to the RestaurantToGo sample, and so I assumed the code generation for the Maps option for it was correct. I guess that’s not the case…

Code generation for Geo Service should also work fine, but it is not used in RestaurantToGo sample.