Thread « Connection « JPA Q&A





1. Exception in thread "main" org.hibernate.exception.GenericJDBCException: Cannot open connection    coderanch.com

many thanks for your response. Here you go! My Hibernate Client program. EmployeeDetailsClient.java. import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import com.myhibernate.hp.util.HibernateUtil; public class EmployeeDetailsClient { public static void main(String[] args) { Session session = null; try{ // This step will read hibernate.cfg.xml and prepare hibernate for use session = HibernateUtil.getSessionFactory().openSession(); //Transaction transaction = null; //SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); //session =sessionFactory.openSession(); ...

2. Connection handle, no Managed Connection, and Threading    forum.hibernate.org

Hi, Any help on this one would be greatly appreciated... We can reproduce this problem every time by stopping two threads right before making the EJB call and restarting them both at basically the same time. My best guess is there's some sort of threading problem in SessionFactoryUtils...but I'm more than open to the possibility of an error on our part. ...

3. Hibernate connection pool problem in Thread pool    forum.hibernate.org

Hi, We are using Hibernate 3.1 with Oracle 10g in a WAS environment for a web application using STRUTS. We use connection pooling provided by WAS and have implemented Thread pooling using edu.emory.mathcs.backport.java.util.concurrent Api. The problem we face is that whenever the connection pool limit is reached the thread which calls hibernate opensession hangs. we use session-per-operation pattern and the session ...

5. c3p0 threads waiting for connections    forum.hibernate.org

Author Message thomers Post subject: c3p0 threads waiting for connections Posted: Mon Feb 23, 2009 8:24 am Newbie Joined: Wed Oct 29, 2008 8:54 am Posts: 13 hello, we just started our production setup with real beta user traffic, and i'm facing regular (1-2 times a day) lock-ups of c3p0, with stack traces like these: Code: INFO ...