In my opinion,
Try putting the column name within double qoutes, in
stead of numbers 1-3.
For example if your SQL goes like this.
select name,roll,address from table_name;
Then the the code goes like this,
rs.getString("name");
rs.getString("roll");
rs.getString("address");
Try this.
http://techtips.ontheweb.com