java.sql.SQLException: database disk image is malformed

622 views
Skip to first unread message

plee

unread,
May 6, 2009, 11:50:42 AM5/6/09
to Xerial
Hello everybody,

I'm having this exception thrown when trying to access a SQLite DB
that was created by System.Data.Sqlite. My Java app used to work fine
before but I started getting this issue when I migrated the Java app
to Websphere 7 (64-bit OS). I copied over the sqlite database to the
new OS C: drive and I keep getting that exception. I tried opening the
database using Sqlite Manager which is an addon from Firefox and I
don't get any problems. I even tried using the "Check Integrity"
feature of Sqlite Manager and it tells me the DB is OK. BTW the
sqlitejdbc version I am using is 3.6.11.

plee

unread,
May 6, 2009, 12:26:42 PM5/6/09
to Xerial
Interesting enough, when i used the 3.6.13 release I get this:
java.lang.NullPointerException
at org.sqlite.NestedDB$CausedSQLException.fillInStackTrace
(NestedDB.java:667)
at java.lang.Throwable.<init>(Throwable.java:56)
at java.sql.SQLException.<init>(Unknown Source)
at org.sqlite.NestedDB$CausedSQLException.<init>(NestedDB.java:643)
at org.sqlite.NestedDB.call(NestedDB.java:573)
at org.sqlite.NestedDB.call(NestedDB.java:535)
at org.sqlite.NestedDB.enable_load_extension(NestedDB.java:116)
at org.sqlite.Conn.<init>(Conn.java:55)
at org.sqlite.JDBC.connect(JDBC.java:86)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)

leo

unread,
May 6, 2009, 9:47:44 PM5/6/09
to Xerial
At least the Exception in sqlite-jdbc-3.6.13 caused by a bug:
http://groups.google.com/group/xerial/browse_thread/thread/1fcb93cb4fef6b96?hl=en

Use sqltie-jdbc-3.6.13.1 instead

plee

unread,
May 7, 2009, 9:56:20 AM5/7/09
to Xerial
Hello, I'm getting this exception now:

java.lang.ClassNotFoundException: org.ibex.nestedvm.Runtime$CallJavaCB


Thanks for taking a look into this!



On May 6, 9:47 pm, leo <l...@xerial.org> wrote:
> At least the Exception in sqlite-jdbc-3.6.13 caused by a bug:http://groups.google.com/group/xerial/browse_thread/thread/1fcb93cb4f...

plee

unread,
May 7, 2009, 10:54:05 AM5/7/09
to Xerial
I've tried release 3.6.14 and I still get the "database disk image is
malformed".
Reply all
Reply to author
Forward
0 new messages