On 15-04-2008 08:04:20 -0700, sateesh wrote:
Hi,
When i try to execute a Query using Prepared Statement some times i am getting the below listed Error.
It seems like when no rows are returned it throws this Exception..
I am hoping that it is a safely ignorable one.. When i use Statement i don't get this Error!!
What is the query you use? (Is it a SELECT query, and hence should it return a ResultSet?) The code is complaining about getting a non-ResultSet result when executing the query. If you don't know what query you're executing use the execute() method. If you're sure you have SELECT queries, please create a debug-log such that we can see what exactly goes on. Anonymisation of the data and queries is fine here, I only need to see what the client (JDBC) gets back from the server after the PreparedQuery is executed.