I've gotten this code to work, mostly...Everything is fine except I keep getting null for the first field in the table. I would appriciate any help:

public void setBean(String id){
con = DriverManager.getConnection("jdbcdbc:mydb");
stm = con.createStatement();
query="select * from product";
rst = stm.executeQuery(query);
identification += rst.getString("num");
productName = rst.getString("name");
quantity = rst.getString("quan");
price = rst.getString("price");
description = rst.getString("des");

catch(Exception e){}