Testing Hibernate with JUnit: "session is closed" exception
Posted
by Marco
on Stack Overflow
See other posts from Stack Overflow
or by Marco
Published on 2010-04-04T04:26:13Z
Indexed on
2010/04/04
4:33 UTC
Read the original article
Hit count: 427
Hi,
sometimes when testing some CRUD operations in my DAO classes using JUnit 4.5, Hibernate throws an exception:
org.hibernate.SessionException: Session is closed!
The session is not closed explicitly, so what happens?
Thanks
© Stack Overflow or respective owner