Giter VIP home page Giter VIP logo

Comments (11)

tomxor avatar tomxor commented on June 8, 2024

Can you please post the entire stacktrace?

from vault.

tomxor avatar tomxor commented on June 8, 2024

This probably happens due to #97 - since the upgrade process fails (at runtime), the generated code does not correspond to your schema.

from vault.

barteo avatar barteo commented on June 8, 2024

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.

barteo avatar barteo commented on June 8, 2024

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.

tomxor avatar tomxor commented on June 8, 2024

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.

barteo avatar barteo commented on June 8, 2024

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.

tomxor avatar tomxor commented on June 8, 2024

Can you provide a sample project where this issue reproduces?

from vault.

barteo avatar barteo commented on June 8, 2024

We probably need to work on the same contentful dataset. Maybe it will be easier if we move discussion to the priv?

from vault.

tomxor avatar tomxor commented on June 8, 2024

👍 please ping [email protected], I'll pull the ticket once you do. Thanks!

from vault.

barteo avatar barteo commented on June 8, 2024

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.

tomxor avatar tomxor commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.