It seems that this part of my code is where the exception occurs:
c = dbConnection.getConnection();
q = "SELECT * FROM book WHERE nextInc<=? AND inlib=?";
s = c.prepareStatement(q);
s.setBigDecimal(1,BigDecimal.valueOf(curDate.getTime()));
s.setBoolean(2,false);
rs = s.executeQuery(); <-- Error.
I'm using "sun.jdbc.odbc.JdbcOdbcDriver".