connection « Load « JPA Q&A





1. To many connections on load    forum.hibernate.org

public class DatosListaBean { private List listaDatos; private static SessionFactory sessionFactory; public void cargarLista(){ sessionFactory=new Configuration().configure().buildSessionFactory(); Session sesion=sessionFactory.openSession(); listaDatos= (List)(sesion.createQuery("from Casos_soporte").list()); sesion.close(); } public List getListaDatos() { cargarLista(); return listaDatos; } ...

2. With high load Hibennate cannot open connection    forum.hibernate.org

Author Message hibernateuser71 Post subject: With high load Hibennate cannot open connection Posted: Wed Apr 27, 2011 4:42 pm Newbie Joined: Tue Jan 11, 2011 12:35 am Posts: 5 Hi All, I am using Hibernate 3.6.0 with JBoss 6.0-Final release and my Database is MS-SQL Server 2008. I have to fetch employee data from LDAP server and insert those ...

3. Intermittent errors , on load,operating on closed connection    forum.hibernate.org

Hi, I get the follwoing different types of errors "intermittently" with Hibernate version 3,mysql 3.23 on linux fedora 2. 1.org.hibernate.exception.GenericJDBCException: could not load an entity: [com.harmot.school.University#stanford] at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92) at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.loader.Loader.loadEntity(Loader.java:1359) at org.hibernate.loader.entity.EntityLoader.load(EntityLoader.java:116) etc. 2.Caused by: java.sql.SQLException: You can't operate on a closed connection!!! at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:68) at com.mchange.v2.c3p0.impl.NewProxyConnection.prepareStatement(NewProxyConnection.java:198) at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:396) at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:334) at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:88) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1162) at org.hibernate.loader.Loader.doQuery(Loader.java:390) ...