com.google.firebase.database.DatabaseException: Converting to Arrays is not supported, please use Listsinstead

Stack Overflow | Kushagr Jolly | 1 month ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Firebase Database considers public fields and JavaBean-like getters and setters when serializing/deserializing JSON. A public field with a getter and a setter may cause this exception. Try to change to private or removing getter and setter.
  2. 0

    How to convert Array to Lists instead for Firebase?

    Stack Overflow | 1 month ago | Kushagr Jolly
    com.google.firebase.database.DatabaseException: Converting to Arrays is not supported, please use Listsinstead
  3. 0
    samebug tip
    Firebase requires your Pojo to have public getters and setters, check if you created getters and setters and if your variables are public!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Got this error when implementing Firebase chat application from the given link

    Stack Overflow | 3 months ago | shubham sanware
    com.google.firebase.database.DatabaseException: Class com.chatt.demo.model.Conversation is missing a constructor with no arguments
  6. 0

    DatabaseException: Found two getters or fields with conflicting case sensitivity

    Stack Overflow | 9 months ago | user6462035
    com.google.firebase.database.DatabaseException: Found two getters or fields with conflicting case sensitivity for property: n
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.google.firebase.database.DatabaseException

    Converting to Arrays is not supported, please use Listsinstead

    at com.google.android.gms.internal.zzaix.zzb()
  2. com.google.android
    zzaix.zza
    1. com.google.android.gms.internal.zzaix.zzb(Unknown Source)
    2. com.google.android.gms.internal.zzaix.zza(Unknown Source)
    3. com.google.android.gms.internal.zzaix.zzb(Unknown Source)
    4. com.google.android.gms.internal.zzaix$zza.zze(Unknown Source)
    5. com.google.android.gms.internal.zzaix$zza.zzaC(Unknown Source)
    6. com.google.android.gms.internal.zzaix.zzd(Unknown Source)
    7. com.google.android.gms.internal.zzaix.zzb(Unknown Source)
    8. com.google.android.gms.internal.zzaix.zza(Unknown Source)
    8 frames
  3. com.google.firebase
    DataSnapshot.getValue
    1. com.google.firebase.database.DataSnapshot.getValue(Unknown Source)
    1 frame
  4. com.potenza_pvt_ltd.AAPS
    ExitReceipt$7.onChildAdded
    1. com.potenza_pvt_ltd.AAPS.ExitReceipt$7.onChildAdded(ExitReceipt.java:322)
    1 frame
  5. com.google.android
    zzags$1.run
    1. com.google.android.gms.internal.zzaer.zza(Unknown Source)
    2. com.google.android.gms.internal.zzagp.zzSu(Unknown Source)
    3. com.google.android.gms.internal.zzags$1.run(Unknown Source)
    3 frames
  6. Android Platform
    ActivityThread.main
    1. android.os.Handler.handleCallback(Handler.java:739)
    2. android.os.Handler.dispatchMessage(Handler.java:95)
    3. android.os.Looper.loop(Looper.java:148)
    4. android.app.ActivityThread.main(ActivityThread.java:5461)
    4 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames