Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why? #992

Open
androiddk1 opened this issue Sep 12, 2019 · 1 comment
Open

why? #992

androiddk1 opened this issue Sep 12, 2019 · 1 comment

Comments

@androiddk1
Copy link

androiddk1 commented Sep 12, 2019

Caused by: android.database.sqlite.SQLiteException: table MODEL_INFO_ENTITY has no column named _id (Sqlite code 1 SQLITE_ERROR): , while compiling: INSERT INTO "MODEL_INFO_ENTITY" ("_id","MACHINE_ID","NAME","TYPE","IS_SELECT","IMG_URL","COUNT","DATE","CHILDREN_LIST") VALUES (?,?,?,?,?,?,?,?,?), (OS error - 2:No such file or directory)
at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:948)
at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:559)
at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:603)
at android.database.sqlite.SQLiteProgram.(SQLiteProgram.java:63)
at android.database.sqlite.SQLiteStatement.(SQLiteStatement.java:31)
at android.database.sqlite.SQLiteDatabase.compileStatement(SQLiteDatabase.java:1166)
at org.greenrobot.greendao.database.StandardDatabase.compileStatement(StandardDatabase.java:67)
at org.greenrobot.greendao.internal.TableStatements.getInsertStatement(TableStatements.java:52)
at org.greenrobot.greendao.AbstractDao.insertInTx(AbstractDao.java:236)
at org.greenrobot.greendao.AbstractDao.insertInTx(AbstractDao.java:215)

image

@greenrobot-team
Copy link
Collaborator

The stack trace includes OS error - 2:No such file or directory. Was the database file maybe deleted in the meantime?

Also, if you are using SQLcipher #634 may have a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants