This week's book giveaway is in the Java in General forum. We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line! See this thread for details.
Unrelated to the question: Why you execute two SELECT statements which you don't seems to use the results for anything? And why you use jdbc/odbc driver here?
Is there any other errors in the stack trace (full stack trace)? I suggest you test with only one statement against database and see what happens.