Is this exception okay. Do anybody else get this problem. I am installing RUNAWFE on JBOSS AS 3.2.7 and Oracle 9i.
I found this on forums.hibernate.org Gavin King says we should Call flush() between save() and evict(). This should fix the problem.
16:58:10,237 ERROR [AssertionFailure] an assertion failure occured (this may indicate a bug in Hibernate, but is more li
kely due to unsafe use of the session)
net.sf.hibernate.AssertionFailure: possible nonthreadsafe access to session
at net.sf.hibernate.impl.SessionImpl.postInsert(SessionImpl.java:2407)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:38)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2449)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2435)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
at net.sf.hibernate.transaction.JTATransaction.commit(JTATransaction.java:52)
at ru.runa.commons.hibernate.HibernateSessionFactory.closeSession(HibernateSessionFactory.java:105)
at ru.runa.af.dao.impl.HibernateSessionFactory.closeSession(HibernateSessionFactory.java:54)
at ru.runa.af.dao.impl.DAOHibernateImpl.close(DAOHibernateImpl.java:56)
at ru.runa.af.dao.impl.DAOHelper.close(DAOHelper.java:37)
at ru.runa.af.logic.InitializerLogic.init(InitializerLogic.java:61)
at ru.runa.af.service.impl.ejb.InitializerServiceBean.init(InitializerServiceBean.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
Thanks
Prashanth
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is this exception okay. Do anybody else get this problem. I am installing RUNAWFE on JBOSS AS 3.2.7 and Oracle 9i.
I found this on forums.hibernate.org Gavin King says we should Call flush() between save() and evict(). This should fix the problem.
16:58:10,237 ERROR [AssertionFailure] an assertion failure occured (this may indicate a bug in Hibernate, but is more li
kely due to unsafe use of the session)
net.sf.hibernate.AssertionFailure: possible nonthreadsafe access to session
at net.sf.hibernate.impl.SessionImpl.postInsert(SessionImpl.java:2407)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:38)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2449)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2435)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
at net.sf.hibernate.transaction.JTATransaction.commit(JTATransaction.java:52)
at ru.runa.commons.hibernate.HibernateSessionFactory.closeSession(HibernateSessionFactory.java:105)
at ru.runa.af.dao.impl.HibernateSessionFactory.closeSession(HibernateSessionFactory.java:54)
at ru.runa.af.dao.impl.DAOHibernateImpl.close(DAOHibernateImpl.java:56)
at ru.runa.af.dao.impl.DAOHelper.close(DAOHelper.java:37)
at ru.runa.af.logic.InitializerLogic.init(InitializerLogic.java:61)
at ru.runa.af.service.impl.ejb.InitializerServiceBean.init(InitializerServiceBean.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
Thanks
Prashanth
Hi Prashanth,
Thanks for report.
I'll check this problem and make report+solution as fast as possible.
Regards,
Vitaliy S