Passing certain values to my callableStatement causes my resultset to be empty (which is to be expected sometimes). When my statement is executed (stmt.executeQuery() ) it bombs, giving me the following error message: java.sql.SQLException: unable to obtain result set row count. From {call sp_GetMainName(?,?)} Should not my executeQuery statement work, moving to the rs.next() statement, skipping the current record if it ...