Hello, I'm using Hibernate with JBoss and the problem is that in cases an insert/update operation to the database fails and a BatchUpdateException is thrown, JBoss converts it to a NestedSQLException with a message that just says "Error" and does not provide any informative details, and a recursive cause! I know it's a JBoss problem and not a Hibernate one, but the question is if there is a way to catch the original exception when it's thrown and inspect it to get the error information. I believe it's a common issue people have faced with when working with JBoss, so probably someone here will be able to give me the solution. Thanks.
|