Comments (11)
Can you please post the entire stacktrace?
from vault.
This probably happens due to #97 - since the upgrade process fails (at runtime), the generated code does not correspond to your schema.
from vault.
Rest of the stacktrace:
at a.b.c.Obj$$ModelHelper.fromCursor(Obj$$ModelHelper.java:49) at a.b.c.Obj$$ModelHelper.fromCursor(Obj$$ModelHelper.java:11) at com.contentful.vault.SqliteHelper.fromCursor(SqliteHelper.java:145) at com.contentful.vault.QueryResolver.all(QueryResolver.java:51) at com.contentful.vault.FetchQuery.resolveAll(FetchQuery.java:30) at com.contentful.vault.FetchQuery.resolveFirst(FetchQuery.java:37) at com.contentful.vault.LinkResolver.resourceForLink(LinkResolver.java:197) at com.contentful.vault.LinkResolver.getCachedResourceOrFetch(LinkResolver.java:96) at com.contentful.vault.LinkResolver.resolveLinksForField(LinkResolver.java:67) at com.contentful.vault.LinkResolver.resolveLinks(LinkResolver.java:55) at com.contentful.vault.LinkResolver.getCachedResourceOrFetch(LinkResolver.java:100) at com.contentful.vault.LinkResolver.resolveLinksForField(LinkResolver.java:67) at com.contentful.vault.LinkResolver.resolveLinks(LinkResolver.java:55) at com.contentful.vault.LinkResolver.getCachedResourceOrFetch(LinkResolver.java:100) at com.contentful.vault.LinkResolver.resolveLinksForField(LinkResolver.java:67) at com.contentful.vault.LinkResolver.resolveLinks(LinkResolver.java:55) at com.contentful.vault.QueryResolver.resolveLinks(QueryResolver.java:80) at com.contentful.vault.QueryResolver.all(QueryResolver.java:64) at com.contentful.vault.FetchQuery.resolveAll(FetchQuery.java:30) at com.contentful.vault.FetchQuery.resolveFirst(FetchQuery.java:37) at com.contentful.vault.FetchQuery.first(FetchQuery.java:57) at com.contentful.vault.FetchQuery.first(FetchQuery.java:53)
This is trigerred by executing the following code:
Vault.with(this, TestSpace.class).fetch(Obj.class).where("name = ?", name).first();
from vault.
This probably happens due to #97 - since the upgrade process fails (at runtime), the generated code does not correspond to your schema.
No, this problem happened with freshly downloaded schema (empty local db before sync).
from vault.
What do you mean by freshly downloaded schema? if the model existed and you've changed it, it is likely that a vault db (even though empty) existed beforehand. You can easily confirm this by simply uninstalling+reinstalling the app, and checking if the exception still happens.
from vault.
I meant app was removed on device and then freshly installed. I also just noticed this happens when there is no data from contentful synced yet.
from vault.
Can you provide a sample project where this issue reproduces?
from vault.
We probably need to work on the same contentful dataset. Maybe it will be easier if we move discussion to the priv?
from vault.
👍 please ping [email protected], I'll pull the ticket once you do. Thanks!
from vault.
It seems this problem exists when running on device with Android 6.0 prerelease version. I tried Android 5.1.1 and cannot trigger this exception anymore. I'd bet a new sqlite version on Android 6.0 is the cause.
from vault.
This turned out to be a side effect of #97, causing a state where the generated code does not correspond with the schema. Issue #99 should prevent such things from happening in the future.
from vault.
Related Issues (20)
- Kotin data class support HOT 1
- Vault without fallback language HOT 1
- How can I get Location fields with Vault? HOT 3
- Environments HOT 2
- Fetching entry without subentries HOT 1
- Use @Nullable annotation when possible HOT 2
- @Field Map in Kotlin gives unsupported type error HOT 3
- Rich text fields HOT 2
- VaultDatabaseExporter Broken in 3.2.3 HOT 2
- Android 10 SQLiteDatabaseCorruptException from vault HOT 2
- Proguard issue HOT 8
- Locale FallBack is not Proper HOT 1
- Can the parameters passed to @Space , like the list of content models and list of locale be provided at the run time
- Not getting updated data with delta sync when we republish a content model which is having relation with another content model
- There is no way to get SynchronisedSpace and see deleted assets/entries during the Vault synchronization process.
- Annotation processor is not incremental
- CDARichDocument Unsupported Type for Vault HOT 1
- Download locale specific data?
- Vault library is breaking after migrating to AGP 8.0.0 with R8 in fullmode
- Code not compiling after Gradle plugin update to 8.2 , i am using 3.2.6 version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vault.