-->
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: Double requests problem with- OPEN SESSION IN VIEW
PostPosted: Fri May 21, 2010 3:46 am 
Newbie

Joined: Fri May 21, 2010 3:23 am
Posts: 1
Hi all,
We have problem with OPEN SESSION IN VIEW pattern. we configured servlet filter like in HIbernate documentation -http://community.jboss.org/wiki/OpenSessioninView;
Now everything works fine until user clicks on submit buttons or just links several times, it seems that hibernate use the same connection for all this requests.
different type of exceptions thrown after clicks Like:

1.Caused by: org.hibernate.HibernateException: Found shared references to a collection: com.essentialsln.clp.cpol.entity.CountryEntity.states
2.Caused by: org.hibernate.AssertionFailure: collection was processed twice by flush()
3.Caused by: org.hibernate.SessionException: Session is closed!

May be hibernate do not use connection pool and the first request close connection that also used by another requests?

here is c3p0 connection pool configs in our xml.
<!-- hibernate.cfg.xml -->
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
<property name="c3p0.min_size">5</property>
<property name="c3p0.max_size">20</property>
<property name="c3p0.timeout">1800</property>
<property name="c3p0.max_statements">50</property>


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.