firestream-android
firestream-android copied to clipboard
RuntimeException on Fire.stream().loadMoreMessagesBefore()
-
Is the bug present in the demo Chat SDK project?
-
What modifications have you made to the Chat SDK?
-
Android Version: 8.0
-
Steps taken to reproduce the problem:
Fire.stream().loadMoreMessagesBefore(), or any otherloadMoreMessagesmethod -
Expected result: List of messages before this time
-
Actual result:
java.lang.RuntimeException: Class firestream.chat.message.Body has multiple setter overloads with name setType
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper$BeanMapper.<init>(CustomClassMapper.java:677)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper.loadOrCreateBeanMapperForClass(CustomClassMapper.java:377)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper.convertBean(CustomClassMapper.java:540)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper.deserializeToClass(CustomClassMapper.java:253)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper.deserializeToType(CustomClassMapper.java:189)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper.access$300(CustomClassMapper.java:54)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper$BeanMapper.deserialize(CustomClassMapper.java:770)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper$BeanMapper.deserialize(CustomClassMapper.java:741)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper.convertBean(CustomClassMapper.java:542)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper.deserializeToClass(CustomClassMapper.java:253)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.util.CustomClassMapper.convertToCustomClass(CustomClassMapper.java:100)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.DocumentSnapshot.toObject(DocumentSnapshot.java:187)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.QueryDocumentSnapshot.toObject(QueryDocumentSnapshot.java:116)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.DocumentSnapshot.toObject(DocumentSnapshot.java:165)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.firebase.firestore.QueryDocumentSnapshot.toObject(QueryDocumentSnapshot.java:97)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at firestream.chat.firestore.FirestoreCoreHandler.a(SourceFile:54)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at firestream.chat.firestore.FirestoreCoreHandler.lambda$fvdTVDNMCp74GxQBEW_GnxPT6Uk(Unknown Source:0)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at firestream.chat.firestore.-$$Lambda$FirestoreCoreHandler$fvdTVDNMCp74GxQBEW_GnxPT6Uk.apply(Unknown Source:2)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at io.reactivex.internal.operators.single.SingleMap$MapSingleObserver.onSuccess(SingleMap.java:57)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at io.reactivex.internal.operators.single.SingleFlatMap$SingleFlatMapCallback$FlatMapSingleObserver.onSuccess(SingleFlatMap.java:111)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.onSuccess(SingleSubscribeOn.java:68)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at io.reactivex.internal.operators.single.SingleCreate$Emitter.onSuccess(SingleCreate.java:67)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at sdk.guru.firestore.RXFirestore.a(SourceFile:31)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at sdk.guru.firestore.RXFirestore.lambda$KlpjBpkMJI0b4MAl-9mqXmvry_U(Unknown Source:0)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at sdk.guru.firestore.-$$Lambda$RXFirestore$KlpjBpkMJI0b4MAl-9mqXmvry_U.onSuccess(Unknown Source:4)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.android.gms.tasks.zzm.run(com.google.android.gms:play-services-tasks@@17.0.2:4)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at android.os.Handler.handleCallback(Handler.java:789)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.google.android.gms.internal.tasks.zzb.dispatchMessage(com.google.android.gms:play-services-tasks@@17.0.2:6)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at android.os.Looper.loop(Looper.java:164)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6541)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
2020-09-02 15:12:50.567 9302-9302/panda.contest.earn.dailycash.debug W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
- Comments: I like this library but its lacking docs, so I have to go through source code to implement firestream in my app.