com.google.firebase.database.DatabaseException: Can't convert object of type java.util.ArrayList to type com.rhcloud.escot.bsr.Route

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Arshad Ali
, 1 year ago
Can't convert object of type java.util.ArrayList to type com.rhcloud.escot.bsr.Route
via Stack Overflow by Isuru
, 1 year ago
Can't convert object of type java.lang.String to type uk.co.stableweb.geethika.model.DailyVerse
via Stack Overflow by rishav
, 1 year ago
Can't convert object of type java.lang.String to type com.example.shailendra.easyloadshedding.mymodel
com.google.firebase.database.DatabaseException: Can't convert object of type java.util.ArrayList to type com.rhcloud.escot.bsr.Route
at com.google.android.gms.internal.zzalq.zzd(Unknown Source)
at com.google.android.gms.internal.zzalq.zzb(Unknown Source)
at com.google.android.gms.internal.zzalq.zza(Unknown Source)
at com.google.firebase.database.DataSnapshot.getValue(Unknown Source)
at com.rhcloud.escot.bsr.MainActivity$2$2.onChildAdded(MainActivity.java:94)
at com.google.android.gms.internal.zzahh.zza(Unknown Source)
at com.google.android.gms.internal.zzajh.zzctc(Unknown Source)
at com.google.android.gms.internal.zzajk$1.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5631)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.