You're using
select * - are you sure the query returns (at least) six integer columns? Selecting - and accessing - the columns by name would be much more readable.
I might be wrong, but some really old
JDBC drivers required you to read values of the columns from the resultset in the order in which they were selected by the query, and only once. This might also be the case. I'd suggest using a specific JDBC driver for your database - JDBC/ODBC bridge you're using now is known to be inefficient, buggy and will be discontinued in next version of Java.