Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to read data from paper book after app upgrade #72

Closed
aashreys opened this issue Apr 22, 2017 · 1 comment
Closed

Unable to read data from paper book after app upgrade #72

aashreys opened this issue Apr 22, 2017 · 1 comment

Comments

@aashreys
Copy link

aashreys commented Apr 22, 2017

Here's the unobfuscated stack trace. Could you offer any insight into why this might be happening?

Process: com.aashreys.walls.release, PID: 10063
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aashreys.walls.release/com.aashreys.walls.ui.StreamActivity}: io.paperdb.PaperDbException: Couldn't read/deserialize file /data/user/0/com.aashreys.walls.release/files/collections_book/type_unsplash_collection767186.pt for table type_unsplash_collection767186
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
        at android.app.ActivityThread.-wrap12(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6119)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
     Caused by: io.paperdb.PaperDbException: Couldn't read/deserialize file /data/user/0/com.aashreys.walls.release/files/collections_book/type_unsplash_collection767186.pt for table type_unsplash_collection767186
        at io.paperdb.DbStoragePlainFile.readTableFile(DbStoragePlainFile.java:268)
        at io.paperdb.DbStoragePlainFile.readTableFile(DbStoragePlainFile.java:257)
        at io.paperdb.DbStoragePlainFile.readTableFile(DbStoragePlainFile.java:235)
        at io.paperdb.DbStoragePlainFile.select(DbStoragePlainFile.java:147)
        at io.paperdb.Book.read(Book.java:67)
        at com.aashreys.walls.persistence.a.b.b(CollectionRepositoryImpl.java:82)
        at com.aashreys.walls.ui.q.a(StreamActivityModel.java:67)
        at com.aashreys.walls.ui.StreamActivity.j(StreamActivity.java:108)
        at com.aashreys.walls.ui.StreamActivity.o(StreamActivity.java:40)
        at com.aashreys.walls.ui.d.onCreate(BaseActivity.java:54)
        at com.aashreys.walls.ui.StreamActivity.onCreate(StreamActivity.java:61)
        at android.app.Activity.performCreate(Activity.java:6679)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) 
        at android.app.ActivityThread.-wrap12(ActivityThread.java) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:154) 
        at android.app.ActivityThread.main(ActivityThread.java:6119) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 
     Caused by: com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: field com.aashreys.walls.domain.display.collections.UnsplashCollection.id has type com.aashreys.walls.domain.c.b, got com.aashreys.walls.domain.c.a
    Serialization trace:
    id (com.aashreys.walls.domain.display.collections.UnsplashCollection)
    mContent (io.paperdb.PaperTable)
        at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:144)
        at com.esotericsoftware.kryo.serializers.CompatibleFieldSerializer.read(CompatibleFieldSerializer.java:147)
        at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:734)
        at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:125)
        at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:540)
        at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:712)
        at io.paperdb.DbStoragePlainFile.readTableFile(DbStoragePlainFile.java:248)
        	... 22 more
     Caused by: java.lang.IllegalArgumentException: field com.aashreys.walls.domain.display.collections.UnsplashCollection.id has type com.aashreys.walls.domain.c.b, got com.aashreys.walls.domain.c.a
        at java.lang.reflect.Field.set(Native Method)
        at com.esotericsoftware.kryo.serializers.ObjectField.setField(ObjectField.java:54)
        at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:137)
        	... 28 more
@aashreys
Copy link
Author

Nvm, I've fixed this. I had not configured proguard properly due to which Paper was unable to find the proper classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant