-->
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: AbstractBatcher: exception clearing maxRows/queryTimeout
PostPosted: Mon Feb 19, 2007 11:50 am 
Newbie

Joined: Sat Sep 09, 2006 11:01 am
Posts: 6
Hi all. I'm getting the following exception:

java.sql.SQLException: 'Statement' already closed.
at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:373)
at com.informix.jdbc.IfxStatement.getMaxRows(IfxStatement.java:575)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.getMaxRows(NewProxyPreparedStatement.java:1200)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:272)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(AbstractBatcher.java:209)
at org.hibernate.loader.Loader.doQuery(Loader.java:714)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
at org.hibernate.loader.Loader.doList(Loader.java:2211)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
at org.hibernate.loader.Loader.list(Loader.java:2090)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)


Hibernate version: 3.2.1
Database: informix 10

Idea what this exception means?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 24, 2007 2:00 pm 
Newbie

Joined: Mon Sep 24, 2007 1:52 pm
Posts: 1
I am also getting the same exception when I try to close the session.

java.sql.SQLException: Statement has already been closed
at weblogic.jdbc.wrapper.Statement.checkStatement()V(Statement.java:231)
at weblogic.jdbc.wrapper.Statement.preInvocationHandler(Ljava/lang/String;[Ljava/lang/Object;)V(Statement.java:77)
at weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement.getMaxRows()I(Unknown Source)
at org.hibernate.jdbc.AbstractBatcher.closeQueryStatement(Ljava/sql/PreparedStatement;)V(AbstractBatcher.java:272)
at org.hibernate.jdbc.AbstractBatcher.closeStatements()V(AbstractBatcher.java:322)
at org.hibernate.jdbc.ConnectionManager.cleanup()Ljava/sql/Connection;(ConnectionManager.java:376)
at org.hibernate.jdbc.ConnectionManager.close()Ljava/sql/Connection;(ConnectionManager.java:318)
at org.hibernate.impl.SessionImpl.close()Ljava/sql/Connection;(SessionImpl.java:298)

Database is Oracle 10g and hibernate version is 3.2.1

Is this a bug with hibernate code ?

Thanks,
Venkat Jegadeesan.


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.