I get the same issue with cloudscape DB.
I guess that Hibernate does not have official support for Cloudscape as well.
BatcherImpl.java:125, closeQueryStatement) - exception clearing maxRows/queryTimeout
SQL Exception: Feature not implemented: getQueryTimeout.
I didn't take this as a critical issue. Please correct me if this was a critical issue.
But when I use similar code,
Code:
The code:
//
// Retrieve data, using query
//
queryString = "from " + persistentTOClassname +
" as t1 where t1.oid = :oid";
query = getQuery(queryString);
query.setLong("oid", pk);
Iterator it = query.iterate();
if (it.hasNext())
persTO = it.next(); // fetch the record
I get a SQL Exception: Feature not implemented: getQueryTimeout
Then I get LazyInitializationException. This is when i am at line it.next()
Code:
Caused by: net.sf.hibernate.LazyInitializationException: Hibernate lazy instantiation problem: ResultSet not open, operation next not permitted. Verify that autocommit is OFF.
at net.sf.hibernate.impl.IteratorImpl.next(IteratorImpl.java:81)
Is this related with the ResultSet time out? as getQueryTimeout() and setQueryTimeout() didn't work for Cloudscape ?