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.

[Edited] DatabaseObjectNotClosedException from executeUpdateDelete

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
agrosnercommented, Dec 28, 2017

fixed in develop. you can try it by replacing version 4.1.2 with 3f3d0b437e

0reactions
agrosnercommented, Dec 28, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

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