When I'm initializing JDBC connection using SQLiteJDBC native library
on my home PC I have no problems, but when I'm initializing the
connection using nested-vm library or using native library on some
others PCs I'm getting following exception:
>----------------------------------
my.db.ConnectionFactory::getSQLiteConnection() ERROR Connecting to
SQLite through JDBC.<br> out of memory at .........
public Connection getSQLiteConnection() throws FException {
Connection conn = null;
try {
Class.forName("org.sqlite.JDBC").newInstance();
} catch (Exception ex) {
throw new my.sys.FException(this, "getSQLiteConnection()",
"ERROR Could Not Find the SQLite Driver.\n" + ex.getMessage());
}
try {
String fileName = Settings.getSQLiteFileName();
conn =
DriverManager.getConnection("jdbc:sqlite:"+fileName);
if (conn != null) {
System.out.println("SQLite connected!");
}
} catch (SQLException e) {
throw new my.sys.FException(this, "getSQLiteConnection()",
"ERROR Connecting to SQLite through JDBC.<br>\n" + e.getMessage());
}
return conn;
}
>----------------------------------
sqlite .db file size is 6Mb, there is no difference when java.exe is
started with -Xmx128m or -Xmx1024m parameter. I'm using JDK 1.5.0.06.
SQLiteJDBC driver: 3.4.0 (with 3.3.0 I have same problem)
Where is the problem and how can I fix it?
--~--~---------~--~----~------------~-------~--~----~
Mailing List: http://groups.google.com/group/sqlitejdbc?hl=en
To unsubscribe, send email to [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---