-->
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.  [ 1 post ] 
Author Message
 Post subject: Sometime it throw exception when execute query. SOS
PostPosted: Tue Oct 18, 2005 5:25 am 
Newbie

Joined: Tue Oct 18, 2005 4:59 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:2.1

Mapping documents:

<session-factory>

<property name="hibernate.connection.datasource">jdbc/ds_test</property>
<property name="hibernate.dialect">net.sf.hibernate.dialect.OracleDialect</property>

<property name="hibernate.transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">net.sf.hibernate.transaction.WebSphereExtendedJTATransactionLookup</property>
<property name="jta.UserTransaction">java:comp/UserTransaction</property>
<!--
<property name="show_sql">false</property>
<property name="hibernate.jdbc.batch_size">20</property>
<property name="hibernate.jdbc.use_scrollable_resultset">false</property>
-->


<mapping resource="*.hbm.xml"/>
.
.
.
</session-factory>
Code between sessionFactory.openSession() and session.close():

Session session = openSession();// Reget a new if session or connection is null.

Query query = session.createQuery(fromClause);
List list = query.list();

Full stack trace of any exception that occurs:

[18.10.05 09:53:02:872 CEST] 3f8b56a0 JDBCException W net.sf.hibernate.util.JDBCExceptionReporter SQL Error: 0, SQLState: null
[18.10.05 09:53:02:919 CEST] 3f8b56a0 JDBCException E net.sf.hibernate.util.JDBCExceptionReporter DSRA9110E: Statement is Closed.
[18.10.05 09:53:02:935 CEST] 3f8b56a0 BatcherImpl W net.sf.hibernate.impl.BatcherImpl exception clearing maxRows/queryTimeout
[18.10.05 09:53:02:935 CEST] 3f8b56a0 BatcherImpl W net.sf.hibernate.impl.BatcherImpl TRAS0014I: Die folgende Ausnahmebedingung wurde protokolliert: com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is Closed.
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:952)
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.getMaxRows(WSJdbcStatement.java:608)
at net.sf.hibernate.impl.BatcherImpl.closeQueryStatement(BatcherImpl.java:149)
at net.sf.hibernate.impl.BatcherImpl.closeQueryStatement(BatcherImpl.java:105)
at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:889)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java(Compiled Code))
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Loader.java:1054)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java(Inlined Compiled Code))
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java(Compiled Code))
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531)
.
.
.
[18.10.05 09:53:02:966 CEST] 3f8b56a0 JDBCException W net.sf.hibernate.util.JDBCExceptionReporter SQL Error: 0, SQLState: null
[18.10.05 09:53:02:966 CEST] 3f8b56a0 JDBCException E net.sf.hibernate.util.JDBCExceptionReporter DSRA9110E: Statement is closed.

Name and version of the database you are using:Oracle 8.1.7

Server you are using:WSAD 5.1 test environment


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

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.