i am connecting berkely database through sqlitejdbc-v056.jar & i got the following error and not performing insert ,update ,delete opration
java.sql.SQLException: database is locked
at org.sqlite.NativeDB.prepare(Native Method)
download jar from following link http://www.zentus.com/sqlitejdbc/
1) If your application doesn't run under multi-process scenarios
This kind of locking issue is usually caused by other progresses/applications, which still opening/writing your database. e.g.: a database shell is opening and writing the target database. So please use tools to find which processes/applications is operating on the target database unexpectedly.
2) If your application does run under multi-process scenarios
Your code need to catch and handle such kind of database lock exception, which is a normal event in multi-process scenarios.