It seems the error has to do with a resultset that I use. If I comment all references from the rs.next on, I don't get the NullPointerException. Even if I leave just the rs.next in there (actually its a while (rs4.next()) ), I get the NullPointerException. I've defined the rs as:
<%!String dbURL;
Connection dbCon=null;
Statement stmt=null;
ResultSet rs4=null;
String password=null;
%>
<% Class.forName("oracle.jdbc.driver.OracleDriver"

;
try {
dbCon=DriverManager.getConnection("jdbc

racle:thin:uid/pw@beta:1521:lroldev"

;
}
catch (SQLException e) {
dbCon=DriverManager.getConnection("jdbc

racle:thin:uid/pw@beta:1521:lrol"

;
}
stmt=dbCon.createStatement();
CallableStatement call = null;
rs=null;
int rtnval;
call =
dbCon.prepareCall ("{ call pkgmnt_product.spmnt_collect_tc_products (?, ?, ?, ?)}"

;
call.registerOutParameter (3, OracleTypes.CURSOR);
call.registerOutParameter (4, java.sql.Types.INTEGER);
call.setString (1, idLender);
call.setString (2, idSeries);
call.execute ();
rs = (ResultSet)call.getObject (3);
rtnval=call.getInt(4);
The code works until the button is clicked causing the code to be re-used.
Still stumped.