-->
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.  [ 9 posts ] 
Author Message
 Post subject: Idle time Closed Connection
PostPosted: Fri Jan 09, 2009 5:46 am 
Newbie

Joined: Fri Jan 09, 2009 5:26 am
Posts: 5
Hi,

The following is the exception that i get when i use hibernate 3.0 to connect to Oracle 10G using the ojdbc14.jar.

i get this error when i run my eclipse plugin based application on windows vista. This happens when i keep the system idle for prolonged hours apprx 8 hours or more. But the same is not reproduced when i keep it idle on the windows xp system.

The Oracle server is present on another system which is a windows XP system but not on the same system where iam running the appliation.

So i need to know whether it is the Vista problem or the hibernate problem.

org.hibernate.TransactionException: JDBC rollback failed
at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:170)
at <exceptions trace from the code>

Caused by: java.sql.SQLException: Closed Connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.rollback(OracleConnection.java:1439)
at org.hibernate.transaction.JDBCTransaction.rollbackAndResetAutoCommit(JDBCTransaction.java:183)
at org.hibernate.transaction.JDBCTransaction.rollback(JDBCTransaction.java:162)
... 9 more


Thanks
Jagadish Suri


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 5:59 am 
Regular
Regular

Joined: Wed Oct 15, 2008 6:59 am
Posts: 103
Location: Chennai
set timeout property as u want in hibernate.cfg.xml.

_________________
If u feel it will help you, don't forget to rate me....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 6:00 am 
Regular
Regular

Joined: Wed Oct 15, 2008 6:59 am
Posts: 103
Location: Chennai
set timeout property as u want in hibernate.cfg.xml.

it's not a problem, connection r closed after some time if it is in ideal .

_________________
If u feel it will help you, don't forget to rate me....


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 6:21 am 
Newbie

Joined: Fri Jan 09, 2009 5:26 am
Posts: 5
if its a problem with the hibernate then why is it not occuring with xp but rather happening only on vista system?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 6:25 am 
Regular
Regular

Joined: Wed Oct 15, 2008 6:59 am
Posts: 103
Location: Chennai
it's all abt ur misconfiguration in connection pool cp3 in hibernate.

_________________
If u feel it will help you, don't forget to rate me....


Last edited by Madan_Prabhu on Fri Jan 09, 2009 6:35 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 6:29 am 
Newbie

Joined: Fri Jan 09, 2009 5:26 am
Posts: 5
.....

Thanks
jagadish suri


Last edited by jagadishsuri on Mon Jan 12, 2009 2:40 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 6:46 am 
Expert
Expert

Joined: Thu Jan 08, 2009 6:16 am
Posts: 661
Location: Germany
It seems to me that this is a vista problem. See here.

You can reconfigure session idle time like this.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 09, 2009 7:03 am 
Newbie

Joined: Fri Jan 09, 2009 5:26 am
Posts: 5
Not quite sure whether this applies to the hibernate and db problem. but any way thanks for your reply.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2009 2:18 am 
Newbie

Joined: Fri Jan 09, 2009 5:26 am
Posts: 5
The timeout property did not solve the problem. how do we make sure that the connections are reinitialized after a certain idle time? or when they are dropped?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 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.