pilgr / Paper

Paper is a fast NoSQL-like storage for Java/Kotlin objects on Android with automatic schema migration support.
Apache License 2.0
2.35k stars 234 forks source link

Is Paper still being worked on? The ObjectStream-Issue was opened multiple times, but so far nothing has happened #74

Closed SennaGehenna closed 7 years ago

SennaGehenna commented 7 years ago

The ObjectStream-Issue has me worried, as I'm getting weird bugs that I can't reproduce, that seem to be related to Paper.

I will have to switch to a different solution, if the issue is not resolved

dmedov commented 7 years ago

seems we have same issue. i had this on some devices ava.lang.UnsupportedOperationException: ObjectStreamClass.getConstructorId(Class<?>) is not supported on SDK 25

SennaGehenna commented 7 years ago

@dmedov It's probably best to switch soon, seeing how the issue was first opened in October 2016 :/

pilgr commented 7 years ago

For sure! :) Sometimes it's hard to get time to work on the lib. Especially to dive again into the context after a long time. But long story short - fix is available. Use version 2.1-rc1 for now, more details in the original issue https://github.com/pilgr/Paper/issues/58

dmedov commented 7 years ago

@pilgr i will try to test it! thank you very much! cool library!

Weava commented 7 years ago

I'm still getting this error after updating to 2.1-rc1

pilgr commented 7 years ago

@Weava make sure you clean the project after updating dependency

Weava commented 7 years ago

@pilgr I ran ./gradlew clean ass, a clean through Android Studio UI, as well as clearing app data and uninstalling then re-installing, and I'm still getting this error.

pilgr commented 7 years ago

@Weava tell me which objenesis library version is actually used in your project? run gradle dependencies or look at dependency list in AS.

Weava commented 7 years ago
+--- io.paperdb:paperdb:2.1-rc1
|    +--- com.esotericsoftware:kryo:4.0.0
|    |    +--- com.esotericsoftware:reflectasm:1.11.3
|    |    |    \--- org.ow2.asm:asm:5.0.4
|    |    +--- com.esotericsoftware:minlog:1.3.0
|    |    \--- org.objenesis:objenesis:2.2 -> 2.1
|    +--- de.javakaffee:kryo-serializers:0.40
|    |    \--- com.esotericsoftware:kryo:4.0.0 (*)
|    \--- org.objenesis:objenesis:2.3 -> 2.1

Looks like kryo is maintaining both dependencies. just need to exclude the 2.2

Weava commented 7 years ago

Ahh nevermind, I had a resolution strategy forcing objenesis to an older version. Sorry for wasting your time

pilgr commented 7 years ago

@Weava you owe me a ☕️ ;)

Weava commented 7 years ago

Hahahaha, sure do @pilgr