-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: NullPointerException on ScrollableResults.close()
PostPosted: Tue Jul 05, 2005 2:56 pm 
Newbie

Joined: Tue Jan 04, 2005 4:52 pm
Posts: 13
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


Top
 Profile  
 
 Post subject: Problems resolved by upgrading to latest c3p0
PostPosted: Sat Jul 09, 2005 12:49 am 
Newbie

Joined: Tue Jan 04, 2005 4:52 pm
Posts: 13
I was able to fix these problems by upgrading to c3p0-0.9.0-pre6.jar


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.