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

runawfe | nobody | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    AssertionFailure possible nonthreadsafe acces

    runawfe | 1 decade ago | nobody
    net.sf.hibernate.AssertionFailure: possible nonthreadsafe access to session

    Root Cause Analysis

    1. net.sf.hibernate.AssertionFailure

      possible nonthreadsafe access to session

      at net.sf.hibernate.impl.SessionImpl.postInsert()
    2. net.sf.hibernate
      JTATransaction.commit
      1. net.sf.hibernate.impl.SessionImpl.postInsert(SessionImpl.java:2407)
      2. net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:38)
      3. net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2449)
      4. net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2435)
      5. net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2392)
      6. net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2261)
      7. net.sf.hibernate.transaction.JTATransaction.commit(JTATransaction.java:52)
      7 frames
    3. ru.runa.commons
      HibernateSessionFactory.closeSession
      1. ru.runa.commons.hibernate.HibernateSessionFactory.closeSession(HibernateSessionFactory.java:105)
      1 frame
    4. ru.runa.af
      InitializerServiceBean.init
      1. ru.runa.af.dao.impl.HibernateSessionFactory.closeSession(HibernateSessionFactory.java:54)
      2. ru.runa.af.dao.impl.DAOHibernateImpl.close(DAOHibernateImpl.java:56)
      3. ru.runa.af.dao.impl.DAOHelper.close(DAOHelper.java:37)
      4. ru.runa.af.logic.InitializerLogic.init(InitializerLogic.java:61)
      5. ru.runa.af.service.impl.ejb.InitializerServiceBean.init(InitializerServiceBean.java:68)
      5 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    6. JBoss Application Server Server
      StatelessSessionContainer$ContainerInterceptor.invoke
      1. org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
      1 frame
    7. JBoss Application Server Connector
      CachedConnectionInterceptor.invoke
      1. org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      1 frame