I have some classes that extend HibernateDaoSupport. When I run certain types of queries using inner classes like this:
I see output in the logs like this:Code:public List findBySomething(final Something aSomething) { return (List)getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session aSession) throws HibernateException { net.sf.hibernate.Query query = getHibernateTemplate().createQuery( getSession(true), "from Something s " + "where s.something = :something "); query.setString("something", aSomething); return query.list(); } }); }
Any ideas on what could be the cause here? I'd post mapping files and so forth, but it's happening with several different mapped classes.Code:10 Feb 2005 10:09:31,118 [DEBUG] SessionFactoryUtils:311 - Opening Hibernate session 10 Feb 2005 10:09:31,118 [DEBUG] SessionFactoryUtils:311 - Opening Hibernate session Hibernate: ... select statement redacted ... 10 Feb 2005 10:09:31,448 [ WARN] SessionImpl:3435 - unclosed connection, forgot to call close() on your session? 10 Feb 2005 10:09:31,458 [ WARN] SessionImpl:3435 - unclosed connection, forgot to call close() on your session? 10 Feb 2005 10:09:31,458 [ WARN] SessionImpl:3435 - unclosed connection, forgot to call close() on your session? 10 Feb 2005 10:09:31,458 [ WARN] SessionImpl:3435 - unclosed connection, forgot to call close() on your session? 10 Feb 2005 10:09:31,458 [ WARN] SessionImpl:3435 - unclosed connection, forgot to call close() on your session? 10 Feb 2005 10:09:31,458 [ WARN] SessionImpl:3435 - unclosed connection, forgot to call close() on your session?


Reply With Quote