As soon as my code gets to my while(rs.next()) loop it produces the ResultSet is closed exception. What causes this exception and how can I correct
while(rs.next())
ResultSet
Check whether you have declared the method where this code is executing as static. If it is static there may be some other thread resetting the ResultSet.
static