posted 6 years ago
Then perhaps the problem is you closing the QueryExecution before reading the data from the ResultSet. I don't know how this works in the library you're using, but with JDBC you cannot read anything from a ResultSet after the (Prepared)Statement that created it has been closed. So you may want to check if the ResultSet has any data before you call qe.close(). If this is the case you need to extract the data from the ResultSet before calling this method.