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

GitHub | bradmac | 6 months 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

    GitHub comment 2242#240627941

    GitHub | 6 months ago | bradmac
    org.hibernate.AssertionFailure: possible non-threadsafe access to the session

    Root Cause Analysis

    1. org.hibernate.AssertionFailure

      possible non-threadsafe access to the session

      at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity()
    2. Hibernate
      ScrollableResultsImpl.next
      1. org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:130)
      2. org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1112)
      3. org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:1066)
      4. org.hibernate.loader.Loader.loadSingleRow(Loader.java:404)
      5. org.hibernate.internal.ScrollableResultsImpl.prepareCurrentRow(ScrollableResultsImpl.java:240)
      6. org.hibernate.internal.ScrollableResultsImpl.next(ScrollableResultsImpl.java:117)
      6 frames
    3. io.milton.cloud
      SearchManager.lambda$reindex$6
      1. io.milton.cloud.server.apps.signup.SignupLogAppIndexer.walkItems(SignupLogAppIndexer.java:54)
      2. io.milton.cloud.server.manager.SearchManager.lambda$reindex$6(SearchManager.java:264)
      2 frames