sqlite中的超时异常

时间:2017-03-29 11:53:35

标签: java android sqlite android-database

错误:java.util.concurrent.TimeoutException:android.database.sqlite.SQLiteConnection.finalize()在10秒后超时

我收到此错误但未在project.Below中找到任何特定行。我的logcat输出:

    java.util.concurrent.TimeoutException: android.database.sqlite.SQLiteConnection.finalize() timed out after 10 seconds
    at android.database.sqlite.SQLiteConnection.nativeClose(Native Method)
    at android.database.sqlite.SQLiteConnection.dispose(SQLiteConnection.java:238)
    at android.database.sqlite.SQLiteConnection.finalize(SQLiteConnection.java:178)
    at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:202)
    at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:185)
    at java.lang.Thread.run(Thread.java:818)

1 个答案:

答案 0 :(得分:1)

垃圾收集器尝试清除您忘记自行关闭的SQLiteConnection实例。照顾close()数据库实例。