net.sf.hibernate.AssertionFailure: possible nonthreadsafe access to session

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via runawfe by nobody
, 1 year ago
possible nonthreadsafe access to session
via hibernate.org by Unknown author, 1 year ago
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.