Hi,
I'm using next code on my DAO, when I force a broke accessing DB, my JSP shows no errors and Hibernate won't says nothing. I don't know why my 'catch (Exception e)' doesn't work.
try {
session.beginTransaction();
Query query = session.createQuery("FROM Articulos WHERE cod = " + iCodArt);
result = query.list();
sessionFactory.close();
}
catch (Exception e) {
StringWriter wr = new StringWriter();
e.printStackTrace(new PrintWriter(wr));
}
Thank you for your help.
Hibernate version: 3
Name and version of the database you are using: Oracle XE 10
|