java - SQLite DB is locked exception, how do I unlock it if I haven't ever toyed with it? -


java.sql.sqlexception: database locked     @ org.sqlite.db.throwex(db.java:288)     @ org.sqlite.nesteddb.prepare(nesteddb.java:115)     @ org.sqlite.db.prepare(db.java:114)     @ org.sqlite.stmt.executequery(stmt.java:89) 

when make query exception. read on on sa , google, , common conclusion started making query never finished. problem i'm having i've never made query on db on machine before. downloaded db file hosted (i created earlier) , haven't done it, don't know why locked. when query using program called sqlite database browser, works fine. help, i'll provide more info if need be, let me know.

adapter = new dbadapter(); resultset info; resultset attributes; (int = 1; < 668; i++) {     if (i%50 == 0) {         system.out.print('.');     }     info = adapter.makequery("select * vehicles id = '" + + "'");     attributes = adapter.makequery("select * vehicle_moves vehicle_id = '" + + "'");     if(info.next()) {         base = new (info, attributes);     }      vehiclearray[i] = base; } system.out.println("done."); info.close(); attributes.close(); adapter.close(); 

above code occurring. did homework throughout code , sure enough problem in code, other db queries work fine. jump out @ guys?

sqlite can handle doing query while results of query being processed. it'd terribly useless if couldn't done! what's more cause problems if you've got 2 connections database open @ once. don't know dbadapter class @ – not package in, or module provides – if assuming can open many connections (or if isn't maintaining proper connection hygiene) cause of sort of problems you're seeing. there first.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -