We have an Java web application built using Hibernate3.0 and Spring framework running on JBoss 4.0.1. We use the Hibernate Interceptor to do the audit loggigng. We later migrated the application to Jboss 4.0.2.
Whenever the audit logging is enabled we get the following exception
org.hibernate.HibernateException: identifier of an instance of .... altered from 21311 to -1
We ran a test case outside the Jboss and every thing worked fine. Can you help us in finding out what could be the issue for this.
The application is working fine Jboss 4.0.1 and only in Jboss 4.0.2 we face this issue.