Hello,
I'm migrating to 3.0.5 from 2.1.8 and am having some problems with ScrollableResults. I have one view and several models that share the same session. Periodically when I switch between models I get a null pointer exception.
Quote:
12:09:07,012 WARN AbstractBatcher:208 - exception clearing maxRows/queryTimeout
java.lang.NullPointerException
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.maybeDirtyTransaction(NewProxyPreparedStatement.java:2064)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.getMaxRows(NewProxyPreparedStatement.java:1195)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:204)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:143)
at org.hibernate.impl.ScrollableResultsImpl.close(ScrollableResultsImpl.java:358)
I'm also having prioblems obtaining a connection which is strange because I'm using C3P0 connection pooling which I would expect (and have seen in the past) would block until a connection became available.
Quote:
org.hibernate.HibernateException: Not able to obtain connection
at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:113)
at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:88)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1162)
at org.hibernate.loader.Loader.scroll(Loader.java:1634)
at org.hibernate.loader.hql.QueryLoader.scroll(QueryLoader.java:443)
at org.hibernate.hql.ast.QueryTranslatorImpl.scroll(QueryTranslatorImpl.java:291)
at org.hibernate.impl.SessionImpl.scroll(SessionImpl.java:960)
at org.hibernate.impl.QueryImpl.scroll(QueryImpl.java:62)
Thanks in advance for any suggestions you can provide