Hello, I downloaded the J2SE 1.4.1_02 from the Sun's site. The following piece of code in JDBC gives me an ArrayIndexOutOfBoundsException, especially the line, uprs.beforeFirst(). If I try running it without that line, it gives no error, I am getting the original rows, I mean the already existing rows. The new rows aren't inserted.
Also the same code works in Sun ONE Studio 4CE that I downloaded. And again, inserting the rows without the ResultSet cursor concepts gives no problems. What could be the reason?
try { con = DriverManager.getConnection(url, "myLogin", "myPassword"); stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE ); ResultSet uprs = stmt.executeQuery("SELECT COF_NAME, SUP_ID, PRICE, SALES, TOTAL FROM COFFEES");