pushtorefresh / storio

Reactive API for SQLiteDatabase and ContentResolver.
Apache License 2.0
2.55k stars 182 forks source link

com.pushtorefresh.storio.StorIOException: java.lang.IllegalStateException: Object does not have type mapping #536

Closed Rainer-Lang closed 9 years ago

Rainer-Lang commented 9 years ago

I get this error: com.pushtorefresh.storio.StorIOException: java.lang.IllegalStateException: Object does not have type mapping ... db was not affected by this operation, please add type mapping for this type

But I have added the 3 resolvers for this class in DbModule.java (addTypeMapping). I this class I have different other classes which also have resolvers registered. I also use AutoParcel. But I have other classes which have also inner classes, also AutoParcel, and there all work. The error happens in PreparedPutObject. The SQLiteTypeMapping putResult = exception.typeMapping(this.object.getClass()); is missing not only this class but also other. There should be about 8 but there are only 5.

Is there some logging I could switch on?

Rainer-Lang commented 9 years ago

Found it.

artem-zinnatullin commented 9 years ago

Just wrote long comment and then saw "Found it" :)

What was the problem?

Rainer-Lang commented 9 years ago

I have a test-base-class and there is a separate mapping only for tests - but I looked and also inserted the new mappings in my production environment. Sorry about this, Artem.

artem-zinnatullin commented 9 years ago

Ah, cool, no problems!