com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.brueller.model.PostModel

Stack Overflow | Hannes | 11 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    Firebase Parsing Error

    Stack Overflow | 11 months ago | Hannes
    com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.brueller.model.PostModel
  2. 0

    Can't convert object of type java.util.ArrayList to type model

    Stack Overflow | 11 months ago | Isuru
    com.google.firebase.database.DatabaseException: Can't convert object of type java.util.ArrayList to type uk.co.stableweb.kithunugee.model.Hymn
  3. 0

    App crash on Feed

    GitHub | 10 months ago | MrThiago
    com.google.firebase.database.DatabaseException: Can't convert object of type java.lang.String to type com.google.firebase.samples.apps.friendlypixx.Models.Author
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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.
  6. 0

    DatabaseException: Found two getters or fields with conflicting case sensitivity

    Stack Overflow | 11 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

    Can't convert object of type java.lang.String to type com.brueller.model.PostModel

    at com.google.android.gms.internal.zzaix.zzd()
  2. com.google.android
    zzaix.zza
    1. com.google.android.gms.internal.zzaix.zzd(Unknown Source)
    2. com.google.android.gms.internal.zzaix.zzb(Unknown Source)
    3. com.google.android.gms.internal.zzaix.zza(Unknown Source)
    3 frames
  3. com.google.firebase
    DataSnapshot.getValue
    1. com.google.firebase.database.DataSnapshot.getValue(Unknown Source)
    1 frame
  4. com.firebase.ui
    FirebaseRecyclerAdapter.onBindViewHolder
    1. com.firebase.ui.database.FirebaseRecyclerAdapter.parseSnapshot(FirebaseRecyclerAdapter.java:147)
    2. com.firebase.ui.database.FirebaseRecyclerAdapter.getItem(FirebaseRecyclerAdapter.java:136)
    3. com.firebase.ui.database.FirebaseRecyclerAdapter.onBindViewHolder(FirebaseRecyclerAdapter.java:176)
    3 frames
  5. Android v7
    RecyclerView$ViewFlinger.run
    1. android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5471)
    2. android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5504)
    3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4741)
    4. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4617)
    5. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1994)
    6. android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1390)
    7. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1353)
    8. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
    9. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3028)
    10. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2906)
    11. android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1482)
    12. android.support.v7.widget.RecyclerView.access$400(RecyclerView.java:147)
    13. android.support.v7.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:4037)
    13 frames
  6. Android Platform
    ActivityThread.main
    1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:886)
    2. android.view.Choreographer.doCallbacks(Choreographer.java:698)
    3. android.view.Choreographer.doFrame(Choreographer.java:630)
    4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:872)
    5. android.os.Handler.handleCallback(Handler.java:743)
    6. android.os.Handler.dispatchMessage(Handler.java:95)
    7. android.os.Looper.loop(Looper.java:150)
    8. android.app.ActivityThread.main(ActivityThread.java:5639)
    8 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:805)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:695)
    2 frames