org.hibernate.AssertionFailure: possible non-threadsafe access to the session

Hibernate JIRA | Christian Bauer | 10 years 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

    HibernateCursorItemReader thread safety - Spring Forum

    spring.io | 10 months ago
    org.hibernate.AssertionFailure: possible non-threadsafe access to the session
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. org.hibernate.AssertionFailure

      possible non-threadsafe access to the session

      at org.hibernate.engine.TwoPhaseLoad.initializeEntity()
    2. Hibernate
      AbstractEntityPersister.load
      1. org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:100)
      2. org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:854)
      3. org.hibernate.loader.Loader.doQuery(Loader.java:729)
      4. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
      5. org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
      6. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
      7. org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
      8. org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3042)
      8 frames
    3. Hibernate
      StatelessSessionImpl.get
      1. org.hibernate.impl.StatelessSessionImpl.get(StatelessSessionImpl.java:158)
      2. org.hibernate.impl.StatelessSessionImpl.get(StatelessSessionImpl.java:153)
      3. org.hibernate.impl.StatelessSessionImpl.get(StatelessSessionImpl.java:145)
      3 frames