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.

DbException for mismatching UID

See original GitHub issue

I added ObjectBox to our project and pushed to master. Another contributor added his code and merged it with master. I pulled it again and run now into the following problem (he did not changed code on ObjectBox):

java.lang.RuntimeException: Unable to create application no.ntnu.tdt4240.geoquiz9000.App: io.objectbox.exception.DbException: Incoming entity ID 1:2501900967712254997 does not match existing UID 4549294657536897732 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4731) at android.app.ActivityThread.-wrap1(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1415) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5443) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) Caused by: io.objectbox.exception.DbException: Incoming entity ID 1:2501900967712254997 does not match existing UID 4549294657536897732 at io.objectbox.BoxStore.nativeCreate(Native Method) at io.objectbox.BoxStore.<init>(BoxStore.java:201) at io.objectbox.BoxStoreBuilder.build(BoxStoreBuilder.java:157) at no.ntnu.tdt4240.geoquiz9000.App.onCreate(App.java:16) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1036) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4728) at android.app.ActivityThread.-wrap1(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1415)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5443)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
BenoitDuffezcommented, Apr 6, 2017

@greenrobot : thanks for the nuke instructions. I did that several times to no avail.

Then I remembered that android:allowBackup="true"'s favorite job is to restore a buggy database file before the first start even after an uninstall. Set to false during development!

1reaction
FabianTerhorstcommented, Apr 6, 2017

What about an option that is deleting and creating an new file if such a exception is happening.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ObjectBox - DBException coming due to UID mismatching
I am using Objectbox as an ORM in my application and getting dbexception due to mismatching UID, when I added some extra properties...
Read more >
PowerHA: UID and GID Mismatch and the Impact it has ... - IBM
A common cause for a UID/GID mismatch, is a lack of matching user profiles on each node in a high availability environment.
Read more >
13695 - CORBA.MARSHAL exceptions cause mismatched ...
MARSHAL: Unable to read value from underlying bridge : Mismatched serialization UIDs : Source (Rep. IDRMI:java.lang.
Read more >
Troubleshooting - ObjectBox Docs
DbSchemaException: incoming ID does not match existing UID ... This means there is a conflict between the data model defined in your code...
Read more >
Uid/GID mismatch - permissions - Ask Ubuntu
It seems that httpd is trying to run .php-fcgi-starter script using suEXEC as user web12 group client7 (uid:5015,gid:5011) and script or ...
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