question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

io.objectbox.exception.DbException: Schema entity could not be verified for key 2

See original GitHub issue

Version:1.2.1

Exception: FATAL EXCEPTION: main Process: philm.vilo.im, PID: 18973 java.lang.RuntimeException: Unable to create application com.android.APP: io.objectbox.exception.DbException: Schema entity could not be verified for key 2 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4812) at android.app.ActivityThread.access$1700(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:157) at android.app.ActivityThread.main(ActivityThread.java:5637) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) Caused by: io.objectbox.exception.DbException: Schema entity could not be verified for key 2 at io.objectbox.BoxStore.nativeCreate(Native Method) at io.objectbox.BoxStore.<init>(BoxStore.java:190) at io.objectbox.BoxStoreBuilder.build(BoxStoreBuilder.java:270) at com.objectbox.manager.ObjectBoxManager.init(ObjectBoxManager.java:51) at com.android.App.onCreate(App.java:154) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4809) at android.app.ActivityThread.access$1700(ActivityThread.java:156)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1470)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:157)  at android.app.ActivityThread.main(ActivityThread.java:5637)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) 

Exception Line:

BoxStoreBuilder builder = MyObjectBox.builder().baseDirectory(new File(TietieFileSystem2.sLocalRoot)); boxStore = builder.build(); if (BuildConfig.DEBUG) { new AndroidObjectBrowser(boxStore).start(context); }

I try to specify the location of where the DB files should be stored, when open app next time , this Exception will be happen. And I can find the mdb file in the dir, This cannot use in this way?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
greenrobotcommented, Nov 30, 2017

Do I understand correctly that it fails only if you try to access a mdb file that you previously copied there? Where does this file originate from?

0reactions
greenrobotcommented, Dec 12, 2017

Closing this, it’s now tracked via #310

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - ObjectBox Docs
Solutions for common issues with ObjectBox db for Java, Kotlin and Android. ... DbSchemaException: incoming ID does not match existing UID.
Read more >
Viewing online file analysis results for 'Droidbooru.apk'
Data model could not be verified, does it originate from another version? Ansi based on Memory/File Scan ( ...
Read more >
ObjectBox - DBException coming due to UID mismatching
ObjectBox version: v1.2.0. Logs Caused by: io.objectbox.exception.DbException: Incoming entity ID 8:7509306813647547019 does not match ...
Read more >
Modelling entities - Open Source by greenrobot
Modelling entities with greenDAO is easy. Follow this tutorial to create a entity model representing the persistent data used in your application.
Read more >
io.objectbox.exception.DbException java code examples
Best Java code snippets using io.objectbox.exception.DbException (Showing ... catch (IOException e) { throw new DbException("Could not verify dir", e); } }.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found