[Edited] DatabaseObjectNotClosedException from executeUpdateDelete
See original GitHub issueHi i am using dbflow with sqlcipher `
def dbflow_version = “4.1.2” def sqlcipher_version = “3.5.4”
annotationProcessor "com.github.Raizlabs.DBFlow:dbflow-processor:${dbflow_version}"
implementation "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
implementation "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}"
implementation "com.github.Raizlabs.DBFlow:dbflow-sqlcipher:${dbflow_version}"
implementation "net.zetetic:android-database-sqlcipher:${sqlcipher_version}@aar"
and my application class when as following app crash,i found helperListener is always null
public class iApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
try {
FlowManager.init(new FlowConfig.Builder(this)
.addDatabaseConfig(
new DatabaseConfig.Builder(dDataBase.class)
.openHelper(new DatabaseConfig.OpenHelperCreator() {
@Override
public OpenHelper createHelper(DatabaseDefinition databaseDefinition, DatabaseHelperListener helperListener) {
return new SQLCipherHelperImpl(databaseDefinition, helperListener,iApplication.this);
}
})
.build())
.build());
}
catch (Exception e)
{
Log.d(dbFlowTag,e.getMessage());
}
}
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
}
when i use this,work
public class iApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
FlowManager.init(this);
}
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
} `
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Issue #1497 · agrosner/DBFlow · GitHub
Hi i am using dbflow with sqlcipher ` def dbflow_version = "4.1.2" def sqlcipher_version = "3.5.4" annotationProcessor "com.github.Raizlabs.
Read more >SQLiteDatabase.java - Android Code Search
the constraint violation is not inserted or changed. * But the command continues executing normally. Other rows before and.
Read more >Android DatabaseObjectNotClosedException - Stack Overflow
I'm getting error of SQLite Database when update query and i don't understand where is to DatabaseObjectNotClosedException: Application did ...
Read more >core/java/android/database/sqlite/SQLiteDatabase.java
the constraint violation is not inserted or changed. ... executeUpdateDelete();. } ... mStackTrace = new DatabaseObjectNotClosedException().fillInStackTrace();.
Read more >SQLite Android Bindings: Check-in [bd482c8af6]
This value can be changed dynamically while the system is running. ... some reason */ public int executeUpdateDelete() { acquireReference(); ...
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 FreeTop 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
Top GitHub Comments
fixed in
develop
. you can try it by replacing version4.1.2
with3f3d0b437e
the bug appears to be something else entirely. It would have been more helpful to specify that stacktrace with proper title. I will modify title of this ticket since its something completely different.