base-diskcache icon indicating copy to clipboard operation
base-diskcache copied to clipboard

在存入bean的时候有java.io.EOFException

Open e9ab98e991ab opened this issue 7 years ago • 0 comments

错误如下 09-21 16:00:51.672 7584-7584/com.51.puh.debug W/System.err: java.io.EOFException at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2342) at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2811) 09-21 16:00:51.673 7584-7584/com.51.puh.debug W/System.err: at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:805) at java.io.ObjectInputStream.(ObjectInputStream.java:302) at com.51.puh.moduler.disk.DiskLruCacheHelper.getAsSerializable(DiskLruCacheHelper.java:322) at com.51.puh.repository.GameRepository$1.loadFromDb(GameRepository.java:88) at cn.51.librepository.api.NetworkBoundResource.(NetworkBoundResource.java:41) at com.51.puh.repository.GameRepository$1.(GameRepository.java:66) at com.51.puh.repository.GameRepository.getGameList(GameRepository.java:66) at com.51.puh.viewmodel.GameListViewModel.lambda$new$0(GameListViewModel.java:53) at com.51.puh.viewmodel.-$$Lambda$GameListViewModel$z9L_su9PtP1sfN0d3gbbm4TXizM.apply(Unknown Source:4) at android.arch.lifecycle.Transformations$2.onChanged(Transformations.java:133) at android.arch.lifecycle.MediatorLiveData$Source.onChanged(MediatorLiveData.java:152) at android.arch.lifecycle.LiveData.considerNotify(LiveData.java:109) at android.arch.lifecycle.LiveData.dispatchingValue(LiveData.java:126) at android.arch.lifecycle.LiveData.setValue(LiveData.java:282) at android.arch.lifecycle.MutableLiveData.setValue(MutableLiveData.java:33) at com.51.puh.viewmodel.GameListViewModel.findGameList(GameListViewModel.java:48) 09-21 16:00:51.674 7584-7584/com.51.puh.debug W/System.err: at com.51.puh.ui.main.hotspot.HotsPotFragment$1.onChanged(HotsPotFragment.java:156) at com.51.puh.ui.main.hotspot.HotsPotFragment$1.onChanged(HotsPotFragment.java:152) at android.arch.lifecycle.LiveData.considerNotify(LiveData.java:109) at android.arch.lifecycle.LiveData.dispatchingValue(LiveData.java:126) at android.arch.lifecycle.LiveData.setValue(LiveData.java:282) at android.arch.lifecycle.MutableLiveData.setValue(MutableLiveData.java:33) at com.51.puh.MainActivity$1.onItemSelected(MainActivity.java:128) at com.51.libcommon.library.buttom.BottomBarLayout$MyOnClickListener.onClick(BottomBarLayout.java:128) at android.view.View.performClick(View.java:6273) at android.view.View$PerformClick.run(View.java:24760) at android.os.Handler.handleCallback(Handler.java:789) at android.os.Handler.dispatchMessage(Handler.java:98) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6694) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:780)

我的bean里包含list

e9ab98e991ab avatar Sep 21 '18 08:09 e9ab98e991ab