Caused by: io.objectbox.exception.DbException: Could not open env for DB (-30793) (error code -30793)
See original GitHub issueBoxStoreBuilder builder = MyObjectBox.builder();
Factory<InputStream> is = new Factory<InputStream>() {
@Override
public InputStream provide() throws Exception {
Log.e("db", "inputStream");
InputStream is = context.getResources().getAssets().open(DB_NAME);
return is;
}
};
boxStore = builder.name(DB_NAME).initialDbFile(is).androidContext(context).build();
DB_NAME="data.db"
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
ObjectBox Java
Fix error handling if ObjectBox can't create a Java entity (the proper exception is now thrown). Support setting an alias after combining conditions...
Read more >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 >ObjectBox Docs (Java, Kotlin, Dart) - ObjectBox Docs
This release includes breaking changes to generated code. If you encounter build errors, make sure to clean and build your project (e.g. Build...
Read more >DbMaxReadersExceededExcepti...
RuntimeException. io.objectbox.exception.DbException. io.objectbox.exception.DbMaxReadersExceededException. All Implemented Interfaces: java.io.Serializable ...
Read more >ObjectBox Queries
With ObjectBox DB you use the QueryBuilder class to specify criteria and create Query objects. The Query class will actually run the query...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can read only database files created by ObjectBox. I do not think that Navicat can read ObjectBox DBs yet, so I would guess you are trying to feed ObjectBox with an alien DB.
Having 230,000 objects is not a challenge. It rather depends on how complex the query is.
No, SQLite DBs cannot be read. We might provide a tool that helps migrating at some point.