Android databases Ormlite Failed to open database

Source: Internet
Author: User

04-01 16:49:32.720:e/sqlitelog (1894): (+) cannot open file at line 30204 of [00bb9c9ce4]
04-01 16:49:32.720:e/sqlitelog (1894): (+) os_unix.c:30204: (2) Open (/data/data/com.xxx.test/databases/weaver_data) -
04-01 16:49:32.730:e/sqlitedatabase (1894): Failed to open database '/data/data/com.xxx.test/databases/weaver_data '.
04-01 16:49:32.730:e/sqlitedatabase (1894): Android.database.sqlite.SQLiteCantOpenDatabaseException:unknown error ( Code): Could not open database
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteConnection.nativeOpen (Native Method)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteConnection.open (Sqliteconnection.java : 212)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteConnection.open (Sqliteconnection.java : 196)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteConnectionPool.openConnectionLocked ( sqliteconnectionpool.java:464)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteConnectionPool.open ( sqliteconnectionpool.java:186)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteConnectionPool.open ( sqliteconnectionpool.java:178)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteDatabase.openInner ( sqlitedatabase.java:808)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteDatabase.open (sqlitedatabase.java:793 )
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteDatabase.openDatabase ( sqlitedatabase.java:698)
04-01 16:49:32.730:e/sqlitedatabase (1894): at Android.app.ContextImpl.openOrCreateDatabase (contextimpl.java:983)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked ( sqliteopenhelper.java:224)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Android.database.sqlite.SQLiteOpenHelper.getWritableDatabase ( sqliteopenhelper.java:164)
04-01 16:49:32.730:e/sqlitedatabase (1894): at Com.j256.ormlite.android.AndroidConnectionSource.getReadWriteConnection (androidconnectionsource.java:66)
04-01 16:49:32.730:e/sqlitedatabase (1894): at Com.j256.ormlite.android.AndroidConnectionSource.getReadOnlyConnection (androidconnectionsource.java:54)
04-01 16:49:32.730:e/sqlitedatabase (1894): at Com.j256.ormlite.dao.BaseDaoImpl.idExists (basedaoimpl.java:805)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Com.j256.ormlite.dao.BaseDaoImpl.createOrUpdate (Basedaoimpl.java : 335)
04-01 16:49:32.730:e/sqlitedatabase (1894): at Com.xxx.b.data.dataservice.createorupdate (DataService.java:175)
04-01 16:49:32.730:e/sqlitedatabase (1894): At Com.xxx.b.data.model.abstractdataitem.update (AbstractDataItem.java : 21)
04-01 16:49:32.730:e/sqlitedatabase (1894): at Com.xxx.b.data.dataservice.handledataevent (DataService.java:128)
04-01 16:49:32.730:e/sqlitedatabase (1894): at Com.xxx.b.data.dataservice.run (dataservice.java:89)
04-01 16:49:32.730:w/system.err (1894): Java.sql.SQLException:Getting A writable database from helper [email protected] F Ailed
04-01 16:49:32.730:w/system.err (1894): at Com.j256.ormlite.misc.SqlExceptionUtil.create (sqlexceptionutil.java:22)
04-01 16:49:32.730:w/system.err (1894): at Com.j256.ormlite.android.AndroidConnectionSource.getReadWriteConnection (androidconnectionsource.java:68)
04-01 16:49:32.730:w/system.err (1894): At Com.j256.ormlite.android.AndroidConnectionSource.getReadOnlyConnection ( ANDROIDCONNECTIONSOURCE.JAVA:54)
04-01 16:49:32.730:w/system.err (1894): at Com.j256.ormlite.dao.BaseDaoImpl.idExists (basedaoimpl.java:805)
04-01 16:49:32.730:w/system.err (1894): at Com.j256.ormlite.dao.BaseDaoImpl.createOrUpdate (basedaoimpl.java:335)
04-01 16:49:32.730:w/system.err (1894): at Com.xxx.b.data.dataservice.createorupdate (DataService.java:175)
04-01 16:49:32.730:w/system.err (1894): at Com.xxx.b.data.model.abstractdataitem.update (AbstractDataItem.java:21)
04-01 16:49:32.730:w/system.err (1894): at Com.xxx.b.data.dataservice.handledataevent (DataService.java:128)
04-01 16:49:32.730:w/system.err (1894): at Com.xxx.b.data.dataservice.run (dataservice.java:89)
04-01 16:49:32.730:w/system.err (1894): caused By:android.database.sqlite.SQLiteCantOpenDatabaseException:unknown Error (Code): Could not open database
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteConnection.nativeOpen (Native Method)
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteConnection.open (sqliteconnection.java:212 )
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteConnection.open (sqliteconnection.java:196 )
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteConnectionPool.openConnectionLocked ( sqliteconnectionpool.java:464)
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteConnectionPool.open ( sqliteconnectionpool.java:186)
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteConnectionPool.open ( sqliteconnectionpool.java:178)
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteDatabase.openInner (Sqlitedatabase.java : 808)
04-01 16:49:32.730:w/system.err (1894): at Android.database.sqlite.SQLiteDatabase.open (sqlitedatabase.java:793)
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteDatabase.openDatabase (Sqlitedatabase.java : 698)
04-01 16:49:32.730:w/system.err (1894): at Android.app.ContextImpl.openOrCreateDatabase (contextimpl.java:983)
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked ( sqliteopenhelper.java:224)
04-01 16:49:32.730:w/system.err (1894): At Android.database.sqlite.SQLiteOpenHelper.getWritableDatabase ( sqliteopenhelper.java:164)
04-01 16:49:32.730:w/system.err (1894): at Com.j256.ormlite.android.AndroidConnectionSource.getReadWriteConnection (androidconnectionsource.java:66)
04-01 16:49:32.730:w/system.err (1894): ... 7 more

Android databases Ormlite Failed to open database

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.