From: Johannes E. <web...@fb...> - 2005-03-21 18:18:08
|
Hi everyone. I am trying to use the Java port of this lib in order to access a database on my Macintosh. I get the following exception: java.lang.ArrayIndexOutOfBoundsException: 168234952 at mdbtools.libmdb.Data.mdb_read_row(Data.java:252) at mdbtools.libmdb.Data.mdb_fetch_row(Data.java:91) at mdbtools.libmdb.Catalog.mdb_read_catalog(Catalog.java:41) at mdbtools.jdbc2.MDBConnection.<init>(MDBConnection.java:23) at mdbtools.jdbc2.Driver.connect(Driver.java:45) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:193) at TestMDB.main(TestMDB.java:29) with the following code: try { Class.forName("mdbtools.jdbc.Driver"); Connection conn = DriverManager.getConnection("jdbc:mdbtools:" + FILENAME); ResultSet rset = conn.getMetaData().getTables(null,null,null,null); while (rset.next()) System.out.println(rset.getString("table_name")); rset.close(); conn.close(); } catch (Exception e) { e.printStackTrace(); } This testcode is mainly copy-paste from the examples packages. The exception is thrown in the DriverManager.getConnection() line. I had this problem with any version, I've tried, the release version, the r2-version and even with the current cvs version. If there is anything I can do or test for you, just ask ;) Kind Regards Johannes |